message bugfix santa 2009

This commit is contained in:
Enno Rehling 2009-12-19 23:28:21 +00:00
parent 956039d661
commit ab51cca539

View file

@ -1,16 +1,16 @@
function xmas2009() function xmas2009()
if not get_key("xm09") then if not get_key("xm09") then
print("Es weihnachtet sehr (2009)") -- print("Es weihnachtet sehr (2009)")
set_key("xm09", true) set_key("xm09", true)
for f in factions() do for f in factions() do
f:add_item("xmastree", 1) f:add_item("xmastree", 1)
local msg = message.create("msg_event") local msg = message.create("msg_event")
msg:set_string("string", "santa2006") msg:set_string("string", translate("santa2006"))
msg:send_faction(f) msg:send_faction(f)
end
end
return 0 return 0
end end
end
end
function use_xmastree(u, amount) function use_xmastree(u, amount)
if u.region.herb~=nil then if u.region.herb~=nil then