From 92f0ba6dcf824e2d0ab6d281fc90bbbeaa65e119 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 11 Sep 2010 19:30:19 -0700 Subject: [PATCH] frost / packice --- .gitignore | 3 +++ res/e3a/ships.xml | 36 ++++++++++++------------------------ res/e3a/strings.xml | 9 +++++++++ res/e3a/terrains.xml | 16 ++-------------- scripts/e3a/frost.lua | 6 ++---- 5 files changed, 28 insertions(+), 42 deletions(-) diff --git a/.gitignore b/.gitignore index 18c434a75..fe7235a1d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ bin/ *.suo *.sdf *.bak +*.opensdf +ipch/ +*.log diff --git a/res/e3a/ships.xml b/res/e3a/ships.xml index 393479234..1174eda8e 100644 --- a/res/e3a/ships.xml +++ b/res/e3a/ships.xml @@ -3,6 +3,7 @@ + @@ -10,8 +11,6 @@ - - @@ -20,10 +19,9 @@ + - - @@ -32,6 +30,7 @@ + @@ -39,8 +38,6 @@ - - @@ -49,6 +46,7 @@ + @@ -56,8 +54,6 @@ - - @@ -67,6 +63,7 @@ + @@ -74,8 +71,6 @@ - - @@ -85,8 +80,7 @@ - - + @@ -97,8 +91,7 @@ - - + @@ -107,8 +100,7 @@ - - + @@ -119,8 +111,7 @@ - - + @@ -131,8 +122,7 @@ - - + @@ -145,8 +135,7 @@ - - + @@ -158,8 +147,7 @@ - - + diff --git a/res/e3a/strings.xml b/res/e3a/strings.xml index 3e4c3e9d1..3b368a28e 100644 --- a/res/e3a/strings.xml +++ b/res/e3a/strings.xml @@ -13,6 +13,15 @@ the third age + + Packeis + fast ice + + + %s + %s + + Urkunden Certificates diff --git a/res/e3a/terrains.xml b/res/e3a/terrains.xml index 512536c38..5312a0aad 100644 --- a/res/e3a/terrains.xml +++ b/res/e3a/terrains.xml @@ -1,6 +1,6 @@ - + @@ -44,19 +44,7 @@ - - - - - - - - - - - - - + diff --git a/scripts/e3a/frost.lua b/scripts/e3a/frost.lua index 1b653c161..235cdc77f 100644 --- a/scripts/e3a/frost.lua +++ b/scripts/e3a/frost.lua @@ -9,8 +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" + rn.terrain = "packice" end end end @@ -22,7 +21,6 @@ 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) @@ -30,7 +28,7 @@ function update() end elseif is_winter(turn-1) then for r in regions() do - if r.terrain=="iceberg_sleep" then + if r.terrain=="packice" then thaw(r) end end