canary/data/scripts/movements/dough.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

21 lines
388 B
Lua

local pastries = {
[3604] = 3600,
[6276] = 6277,
}
local dough = MoveEvent()
function dough.onAddItem(moveitem, tileitem, position)
local pastryId = pastries[moveitem.itemid]
if not pastryId then
return true
end
moveitem:transform(pastryId)
position:sendMagicEffect(CONST_ME_HITBYFIRE)
return true
end
dough:type("additem")
dough:id(2535, 2537, 2539, 2541)
dough:register()