diff --git a/src/scripts/eressea/embassy.lua b/src/scripts/eressea/embassy.lua index 91b8642a5..eb707e718 100644 --- a/src/scripts/eressea/embassy.lua +++ b/src/scripts/eressea/embassy.lua @@ -6,7 +6,9 @@ function use_seashell(u, amount) local msg = message("msg_event") msg:set_string("string", tostring(u) .. " erzählt den Bewohnern von " .. r.name .. " von Muschelplateau, das seine Partei vor " .. turns .. " Wochen besucht hat." ) msg:send_region(u.region) + return 0 end + return -4 end function update_embassies() diff --git a/src/scripts/eressea/xmas2004.lua b/src/scripts/eressea/xmas2004.lua index 0a6e8da95..b91e5913b 100644 --- a/src/scripts/eressea/xmas2004.lua +++ b/src/scripts/eressea/xmas2004.lua @@ -4,7 +4,9 @@ function use_snomwan(u, amount) u.race = "snowman" u.number = amount u:add_item("snowman", -amount) + return 0 end + return -4 end function xmas2004() diff --git a/src/scripts/eressea/xmas2005.lua b/src/scripts/eressea/xmas2005.lua index 21ee5b47b..51f19cb31 100644 --- a/src/scripts/eressea/xmas2005.lua +++ b/src/scripts/eressea/xmas2005.lua @@ -1,7 +1,7 @@ -function usepotion_message(u, type) +function usepotion_message(u, potion) msg = message("usepotion") msg:set_unit("unit", u) - msg:set_resource("potion", type) + msg:set_resource("potion", potion) return msg end @@ -11,6 +11,8 @@ function use_stardust(u, amount) u.region:set_resource("peasant", p) local msg = usepotion_message(u, "stardust") msg:send_region(u.region) + u:add_item("stardust", -amount) + return 0 end function xmas2005()