Currency Converter v1 0
lvl: 0
|
ID: 231
Author: Finger of Destiny
Rarity: rare
Status: Approved
|
Exchange
Every 15 seconds the wielder converts a flat 2 experience into 7 gold. Level Bonus: -0.3 seconds cooldown. |
Download
Toggle Triggers Periodic
goldcost: 0
PERIODIC_period: 1
function periodic takes Item itm returns nothing
local Tower tower = itm.getCarrier()
local integer lvl = tower.getLevel()
call Event.getCurrentPeriodicEvent().enableAdvanced(15 - lvl*0.3, false)
if tower.getExp() >= 2.0 then
call SFXOnUnit("UI\\Feedback\\GoldCredit\\GoldCredit.mdl", tower.getUnit(), "head")
call tower.removeExpFlat(2)
call tower.getOwner().giveGold(7,tower.getUnit(), true, true)
else
call tower.getOwner().displayFloatingText("Not enough credits!",tower,255, 0, 0)
endif
endfunction
|
Description:
Latest Upload Comment: