Golden Trident v2 60
lvl: 0
|
ID: 249
Author: Boekie
Rarity: unique
Status: Approved
|
Golden Hit
Grants 2 gold for each multicrit on a critical attack. Gold gain is base attack speed adjusted and scales with bounty received.
|
Download
Toggle Triggers Header
goldcost: 0
globals
MultiboardValues MB
endglobals
//Do not remove or rename this function!
//Put your initialization tasks here, this function will be called on map init
private function init takes nothing returns nothing
set MB = MultiboardValues.create( 0 )
call MB.setKey( 1, "Golden Trident" )
endfunction
On Attack
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
goldcost: 60
function onAttack takes Item itm returns nothing
local Tower tower = itm.getCarrier()
local real goldBonus = 2.0
if tower.getNumberOfCrits() > 0 then
set goldBonus = goldBonus * tower.getNumberOfCrits() * tower.getBaseAttackspeed() * tower.getProp_BountyReceived()
call tower.getOwner().giveGold(goldBonus, tower.getUnit(), true, true)
set itm.userReal = itm.userReal + goldBonus
endif
endfunction
On Item Creation
goldcost: 0
function onCreate takes Item itm returns nothing
set itm.userReal = 0.00
endfunction
On Tower Details
goldcost: 0
function onTowerDetails takes Item itm returns MultiboardValues
call MB.setValue( 0, formatFloat( itm.userReal, 1 ) )
return MB
endfunction
|
Description:
Latest Upload Comment: