forked from github/server
2073e8f860
repair snowmen (xmas 2004)
25 lines
542 B
Lua
25 lines
542 B
Lua
function use_snowman(u, amount)
|
|
if u.region.terrain == "glacier" then
|
|
local man = unit.create(u.faction, u.region)
|
|
man.race = "snowman"
|
|
man.number = amount
|
|
u:add_item("snowman", -amount)
|
|
return 0
|
|
end
|
|
return -4
|
|
end
|
|
|
|
function xmas2004()
|
|
if get_gamename() == "Eressea" then
|
|
if not get_key("xm04") then
|
|
print("Es weihnachtet sehr (2004)")
|
|
set_key("xm04", true)
|
|
for f in factions() do
|
|
f:add_item("speedsail", 1)
|
|
f:add_notice("santa2004")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
-- xmas2004()
|