diff --git a/scripts/e3a/frost.lua b/scripts/e3a/frost.lua index d0a36e9f3..31bf9fe6f 100644 --- a/scripts/e3a/frost.lua +++ b/scripts/e3a/frost.lua @@ -5,19 +5,26 @@ local function is_winter(turn) return season == "calendar::winter" end -local function freeze(r) +local function is_spring(turn) + local season = get_season(turn) + return season == "calendar::spring" +end + +local function freeze(r, chance) 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 + if rn.terrain=="ocean" and (chance>=100 or math.mod(rng_int(), 100)=100 or math.mod(rng_int(), 100)