Soul Collector's Scythe v1
1000
lvl: 28

ID:

252

Author:

hokkei

Rarity:

unique

Status:

Approved

Description:

This scythe absorbs the souls of units slain by its wielder.

Latest Upload Comment:

Restored from 1.10
Soul Power
After each kill, the scythe's critical strike damage is increased by x0.005. Maximum of x3 bonus crit. The bonus is bound to the item.
Download

Toggle Triggers

Header

goldcost: 0
    globals
        MultiboardValues hokkei_critbonusMB
    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 hokkei_critbonusMB = MultiboardValues.create(1)
        call hokkei_critbonusMB.setKey(0,"Crit Bonus")
    endfunction

On Item Creation

goldcost: 0
function onCreate takes Item itm returns nothing
    set itm.userReal = 0
endfunction

On Item Drop

goldcost: 0
function onDrop takes Item itm returns nothing
    call itm.getCarrier().modifyProperty(MOD_ATK_CRIT_DAMAGE, -itm.userReal)
endfunction

On Item Pickup

goldcost: 0
function onPickup  takes Item itm returns nothing
    call itm.getCarrier().modifyProperty(MOD_ATK_CRIT_DAMAGE, itm.userReal)
endfunction

On Kill

goldcost: 1000
function onKill takes Item itm returns nothing
    if itm.userReal < 3 then
        call itm.getCarrier().modifyProperty(MOD_ATK_CRIT_DAMAGE, 0.005)
        set itm.userReal = itm.userReal + 0.005
    endif
endfunction

On Tower Details

goldcost: 0
function onTowerDetails takes Item itm returns MultiboardValues
    call hokkei_critbonusMB.setValue(0, "x" + R2S(itm.userReal))
    return hokkei_critbonusMB
endfunction