feature was meant for e3a, not eressea

This commit is contained in:
Enno 2010-09-12 04:12:04 +02:00
parent be2d7d203d
commit 02b89b7d50
3 changed files with 6 additions and 4 deletions

View File

@ -9,6 +9,7 @@ local function freeze(r)
for i, rn in ipairs(r.adj) do
-- each region has a chance to freeze
if rn.terrain=="ocean" and math.mod(rng_int(), 100)<20 then
print("terraforming .. " .. tostring(rn))
rn.terrain = "iceberg_sleep"
end
end
@ -21,12 +22,13 @@ end
function update()
local turn = get_turn()
if is_winter(turn) then
print "it is winter"
for r in regions() do
if r.terrain=="glacier" then
freeze(r)
end
end
else if is_winter(turn-1) then
elseif is_winter(turn-1) then
for r in regions() do
if r.terrain=="iceberg_sleep" then
thaw(r)

View File

@ -1,4 +1,5 @@
require "multis"
require "e3a.frost"
function process(orders)
local confirmed_multis = { }
@ -45,6 +46,7 @@ function process(orders)
-- post-turn updates:
update_guards()
update_scores()
frost.update()
local localechange = { de = { "ii" } }
change_locales(localechange)

View File

@ -1,5 +1,4 @@
require "multis"
require "e3a.frost"
function apply_fixes()
local turn = get_turn()
@ -49,7 +48,6 @@ function process(orders)
update_embassies()
update_guards()
update_scores()
frost.update()
local localechange = { de = { "ii" } }
change_locales(localechange)