canary/data/scripts/movements/cake.lua
Marco 2c6b196444
chore: adjusting file locations (#2798)
Removing several duplicate scripts and adjusting the logic of others.
Also added missing achievements.
2024-08-19 11:13:05 -03:00

16 lines
293 B
Lua

local cake = MoveEvent()
function cake.onAddItem(moveitem, tileitem, position)
if moveitem.itemid ~= 2918 then
return true
end
moveitem:remove()
tileitem:transform(6279)
position:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
cake:type("additem")
cake:id(6278)
cake:register()