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

View File

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

View File

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