Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNCarrionScarabs.blp
[dmgplus1] => 3817
[bldtm] => 1
[goldcost] => 3000
[sides1] => 100
[acquire] => 725
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Bug City
[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 huge 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
(
[0] => Array
(
[x] => 29.4197
[y] => -34.2867
[z] => 0
[scale] => 0.8
[rot] => 4.11898
[file] => Doodads\LordaeronSummer\Props\RottenHay\RottenHay3.mdl
[red] => 100
[green] => 100
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => -39.3281
[y] => -36.3231
[z] => 0
[scale] => 0.4
[rot] => 5.06145
[file] => Doodads\LordaeronSummer\Props\RottenHayCart\RottenHayCart.mdl
[red] => 100
[green] => 100
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => -28.1846
[y] => 37.593
[z] => 0
[scale] => 0.5
[rot] => 5.41052
[file] => Doodads\LordaeronSummer\Props\RottenHay\RottenHay0.mdl
[red] => 100
[green] => 100
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[3] => Array
(
[x] => 3.35543
[y] => 49.2295
[z] => 38.4
[scale] => 0.5
[rot] => 0.2618
[file] => Doodads\LordaeronSummer\Props\RottenHay\RottenHay4.mdl
[red] => 100
[green] => 100
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[4] => Array
(
[x] => -47.3546
[y] => -9.07343
[z] => 19.2
[scale] => 0.5
[rot] => 4.71239
[file] => Doodads\LordaeronSummer\Props\RottenHay\RottenHay4.mdl
[red] => 100
[green] => 100
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[5] => Array
(
[x] => 37.6218
[y] => 50.9934
[z] => 0
[scale] => 0.75
[rot] => 4.2586
[file] => Doodads\LordaeronSummer\Props\RottenHay\RottenHay3.mdl
[red] => 100
[green] => 100
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Kill
[code] => call tower.modifyProperty(MOD_DAMAGE_BASE,IMaxBJ(30 - tower.userInt/6,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 |cffFFFF8030|r. The damage gain decreases by |cffFFFF801|r for every |cffFFFF806|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 /6 //full growth multiples in all kills
if mults >= 30 then //mults until minimum of 1
set mults = 30-1
endif
//Since the equation is linear:
//[Average growth over N] * N + remaining growth * (total kills - N)
set N = mults*6
set N = R2I((30 + 0.5-mults/2.0)*N) + (tower.userInt-N)*(30-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
(
)
)