Miscellany
public lua v1 · immutablefunction Player_OnDeath(killer, victim) local pos = victim:coords() if (victim:inventory_find("Bomb") >= 1) then g_arena:item_create("Bomb", 1, pos.x, pos.y) victim:inventory_modify("Bomb",-1) g_arena:message("" .. victim .. " has lost the bomb!") return trueend