Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 3500
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1300
            [file] => Doodads\Dungeon\Props\AzsharaStatue\AzsharaStatue.mdl
            [modelScale] => 0.4
            [atkType1] => siege
            [weapTp1] => missile
            [acquire] => 775
            [upgrades] => Array
                (
                )

            [rangeN1] => 875
            [cool1] => 1.35
            [Ubertip] => Rare tower with a chance to turn lesser creeps into gold instantly. Gains additional gold for each kill and will do more damage the more gold you have.
            [abilList] => Array
                (
                )

            [launchZ] => 100
            [Missileart] => Abilities\Spells\Other\HealingSpray\HealBottleMissile.mdl
            [Name] => Golden Queen
            [Art] => ReplaceableTextures\CommandButtons\BTNTransmute.blp
            [buildingShadow] => Array
                (
                )

            [sides1] => 81
            [auto] => Array
                (
                )

            [dmgplus1] => 2556
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => SirCoqaLot.
            [element] => iron
            [authorDisplay] => SirCoqaLot.
            [balanceTip] => |cffFFFF00+40% |rbounty collected (|cffFFFF00+1.6%|r/lvl)
            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.5
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -53.6499
                    [y] => -21.6124
                    [z] => 0
                    [scale] => 0.48
                    [rot] => 5.48033
                    [file] => Doodads\Dungeon\Props\MineCart\MineCart.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -27.5595
                    [y] => -53.8186
                    [z] => 0
                    [scale] => 0.44
                    [rot] => 6.26573
                    [file] => Doodads\Dungeon\Props\MineCart\MineCart.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 25.1324
                    [y] => 26.848
                    [z] => 0
                    [scale] => 0.33
                    [rot] => 2.33874
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle1_Ruined\City_ColumnSingle1_Ruined.mdl
                    [red] => 54
                    [green] => 120
                    [blue] => 139
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 38.5389
                    [y] => 2.98151
                    [z] => 0
                    [scale] => 0.33
                    [rot] => 1.55334
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle1_Ruined\City_ColumnSingle1_Ruined.mdl
                    [red] => 54
                    [green] => 120
                    [blue] => 139
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 33.153
                    [y] => -31.261
                    [z] => 0
                    [scale] => 0.33
                    [rot] => 0.767945
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle1_Ruined\City_ColumnSingle1_Ruined.mdl
                    [red] => 54
                    [green] => 120
                    [blue] => 139
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -47.9146
                    [y] => 23.7989
                    [z] => 0
                    [scale] => 0.48
                    [rot] => 4.69494
                    [file] => Doodads\Dungeon\Props\MineCart\MineCart.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 31.9339
                    [y] => -30.5013
                    [z] => 51.2
                    [scale] => 0.575
                    [rot] => 6.26573
                    [file] => Objects\InventoryItems\PotofGold\PotofGold.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 41.8151
                    [y] => 4.93406
                    [z] => 57.6
                    [scale] => 0.575
                    [rot] => 3.90954
                    [file] => Objects\InventoryItems\PotofGold\PotofGold.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 28.7786
                    [y] => 32.3344
                    [z] => 64
                    [scale] => 0.575
                    [rot] => 3.90954
                    [file] => Objects\InventoryItems\PotofGold\PotofGold.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_BOUNTY_RECEIVED
                    [base] => 0.4
                    [add] => 0.016
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local Unit creep = Event.getTarget()
    set tower.userReal = 44.0*Pow(GetPlayerState(tower.getOwner().getThePlayer(), PLAYER_STATE_RESOURCE_GOLD),0.5)
    if not creep.isImmune() then
        if creep.getSize() < SIZE_CHAMPION and tower.calcChance(0.05+tower.getLevel()*0.0004) then
            call SFXAtUnit("Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl",creep.getUnit())
            call tower.killInstantly(creep)
            call tower.getOwner().giveGold(18,tower.getUnit(), true, true)
        else
            call tower.doSpellDamage(creep,tower.userReal,tower.calcSpellCritNoBonus())   
            call tower.getOwner().displayFloatingTextX(I2S(R2I(tower.getProp_SpellDmgDealt()*tower.userReal)),creep,255, 200, 0,255,0.05,0.0,2.0)
        endif
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [icon] => ReplaceableTextures\CommandButtons\BTNPillage.blp
                            [visible] => true
                            [name] => Gold Greed
                            [short_explain] => This tower does more damage the more gold you have.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => On attack this tower deals |cffFFFF80[44 x squareroot (current gold)]|r spell damage to its target.
                        )

                )

            [1] => Array
                (
                    [name] => On Tower Details
                    [code] => set tower.userReal = tower.getProp_SpellDmgDealt()*44.0*Pow(GetPlayerState(tower.getOwner().getThePlayer(), PLAYER_STATE_RESOURCE_GOLD),0.5) 
	call Sir_gold_bonus.setValue(0,I2S(R2I(tower.userReal)))
	return Sir_gold_bonus
                    [values] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [name] => Header
                    [code] => globals  
    //@import
    MultiboardValues Sir_gold_bonus
    endglobals 
    
    private function init takes nothing returns nothing
    endfunction
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNTransmute.blp
                            [visible] => true
                            [name] => Transmute
                            [short_explain] => Low chance on attack to turn a lesser target into gold immediately
                            [long_explain] => This tower has a |cffFFFF805%|r chance on attack to turn a non boss, non champion target into |cffFFFF8018|r bonus gold immediately. |n|n|cffFF8000Level Bonus:|r|n |cffFFFF80+0.04%|rchance
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => MultiboardValues
                    [name] => Sir_gold_bonus
                )

        )

)