Shining Rock v2
320
lvl: 10

ID:

212

Author:

Deemzul

Rarity:

rare

Status:

Approved

Description:

With this rock, you can shine like Danny.

Latest Upload Comment:

tooltip improvement
Fickle Power
Grants 100 flat experience to the holder. The experience is bound to the item and lost on drop. If the tower has less than 100 experience when the item is dropped, the item will drain experience from the next tower it is placed in, up to 100 experience.
Download

Toggle Triggers

On Item Creation

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

On Item Drop

goldcost: 0
function onDrop takes Item itm returns nothing
            
local Tower tower = itm.getCarrier()
    set itm.userReal = tower.removeExpFlat(100)
        
endfunction

On Item Pickup

goldcost: 320
function onPickup  takes Item itm returns nothing
            
local Tower tower = itm.getCarrier()
    local real r = itm.userReal
    if r > 0 then
        call tower.addExpFlat(r)
    endif
        
endfunction