Felweed v1
55
ID:
405
Family ID:
Author:
SirCoqaLot.
Rarity:
common
Element:
fire
Attack Type:
Decay
Attack Range:
750
Attack CD:
1
Damage:
49-49
Abil. Factor:
0.85
Status:
Approved

Description:

Basic Tower that sometimes deals more damage.

Latest Upload Comment:

Restored from 1.10
Fireblossom
Every 7th attack deals 10% bonus damage.
Every 8th attack deals 20% bonus damage.
Every 9th attack deals 30% bonus damage.
Every 10th attack deals 40% bonus damage. 

Level Bonus:
+0.2% bonus damage every 7th attack.
+0.4% bonus damage every 8th attack.
+0.6% bonus damage every 9th attack.
+0.8% bonus damage every 10th attack.
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local real damage = Event.damage
local integer level = tower.getLevel()

set tower.userInt = tower.userInt +1
set tower.userInt2 = tower.userInt2 +1
set tower.userInt3 = tower.userInt3 +1
set tower.userReal = tower.userReal +1

if tower.userInt >= 7 then
    set Event.damage = Event.damage * (1.1 + level * 0.002)
    set tower.userInt = 0
endif
if tower.userInt2 >= 8 then
    set Event.damage = Event.damage * (1.2 + level * 0.004)
    set tower.userInt2 = 0
endif
if tower.userInt3 >= 9 then
    set Event.damage = Event.damage * (1.3 + level * 0.006)
    set tower.userInt3 = 0
endif
if tower.userReal >= 10 then
    set Event.damage = Event.damage * (1.4 +level * 0.008)
    set tower.userReal = 0
endif
if Event.damage > damage then
    call tower.getOwner().displaySmallFloatingText(I2S(R2I(Event.damage)),tower,255,150,150,0)
endif
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
set tower.userInt = 0
set tower.userInt2 = 0
set tower.userInt3 = 0
set tower.userReal = 0
endfunction