The penultimate funtion updates the hero. Note the use of the cooldown timer so we don't fire too fast. This is called when Call Sprite is called in the main game loop. CALLIDX has your sprite id. The max thing is just so I don't have negative cooldown which may not matter unless you leave the game idle for hours and the counter wraps around. We create new shovels to throw here.
0そうだね プレイ済み