Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNCarrionScarabs.blp
            [dmgplus1] => 723
            [bldtm] => 1
            [goldcost] => 600
            [sides1] => 100
            [acquire] => 725
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Small Bug Nest
            [red] => 100
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Doodads\LordaeronSummer\Props\RottenHay\RottenHay2.mdl
            [uberSplat] => OSMA
            [Missileart] => Abilities\Weapons\CryptFiendMissile\CryptFiendMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 100
            [modelScale] => 0.6
            [rangeN1] => 725
            [atkType1] => siege
            [cool1] => 1.5
            [Ubertip] => A small colony of bugs.
            [blue] => 100
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.7
            [author] => Majildian
            [alpha] => 255
            [authorDisplay] => |cff87cefaMajildian|r
            [version] => 1.0
            [element] => darkness
            [rarity] => uncommon
        )

    [effects] => Array
        (
        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Kill
                    [code] => call tower.modifyProperty(MOD_DAMAGE_BASE,IMaxBJ(6 - tower.userInt/12,1))
    set tower.userInt = tower.userInt+1
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNCarrionSwarm.blp
                            [name] => Swarm of Bugs
                            [short_explain] => On kill, increases base damage. When replacing a tower of another family, counts |cffFFFF8060%|r of total kills.
                            [long_explain] => On kill, produces bugs that increase the base damage of this tower by |cffFFFF806|r. The damage gain decreases by |cffFFFF801|r for every |cffFFFF8012|r productions, down to a minimum of |cffFFFF801|r.|n|nNumber of produced bugs is retained through upgrade and applied with the upgrade's values. Replacing a tower from a different family will produce bugs from |cffFFFF8060%|r of its total kills.
                        )

                )

            [1] => Array
                (
                    [name] => On Tower Creation
                    [code] => local Tower prev = Event.getPrecedingTower()
    local integer N
    local integer mults
    if prev != 0 then
        if prev.getFamily() == tower.getFamily() then
            set tower.userInt  = prev.userInt
        else
            set tower.userInt  = R2I(prev.getKills()*0.6)
        endif
    
        //sadly, using inlined constants gives us things like 6-1 and 6+0.5 instead of 5 and 6.5
        set mults = tower.userInt /12 //full growth multiples in all kills
        if mults >= 6 then //mults until minimum of 1
            set mults = 6-1
        endif
        
        //Since the equation is linear:
        //[Average growth over N] * N + remaining growth * (total kills - N)
        set N = mults*12
        set N = R2I((6 + 0.5-mults/2.0)*N) + (tower.userInt-N)*(6-mults)
        call tower.modifyProperty(MOD_DAMAGE_BASE,N)
    else
        //if no predecessor, initialize with zeros
        set tower.userInt = 0 //counted kills
    endif
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)