forked from github/server
Extrem blöder Bug in Schneemann-Routine
This commit is contained in:
parent
bcac3bc47a
commit
7d856b43da
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
||||||
function use_snowman(u, amount)
|
function use_snowman(u, amount)
|
||||||
if u.region.terrain == "glacier" then
|
if u.region.terrain == "glacier" then
|
||||||
local man = add_unit(u.faction, u.region)
|
local man = add_unit(u.faction, u.region)
|
||||||
u.race = "snowman"
|
man.race = "snowman"
|
||||||
u.number = amount
|
man.number = amount
|
||||||
u:add_item("snowman", -amount)
|
man:add_item("snowman", -amount)
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
return -4
|
return -4
|
||||||
|
|
Loading…
Reference in a new issue