local function is_winter(turn) local season = get_season(turn) return season == "winter" end local function is_spring(turn) local season = get_season(turn) return season == "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 (chance>=100 or math.fmod(rng_int(), 100)=100 or math.fmod(rng_int(), 100)