diff --git a/README.md b/README.md index 7d71d8df2..252f3c349 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ -# What is this? - -This repository contains an the source code for the Play-by-Mail strategy game [Eressea](http://www.eressea.de/). - -# Prerequisites - -Eressea depends on a number of external libraries. On a recent Debian-based Linux system, this is the apt-get command to install all of them: - - sudo apt-get install git cmake gcc make libxml2-dev liblua5.2-dev libtolua-dev libncurses5-dev libsqlite3-dev - -# How to check out and build the Eressea server - -This repository relies heavily on the use of submodules, and it pulls in most of the code from those. The build system being used is cmake, which can create Makefiles on Unix, or Visual Studio project files on Windows. Here's how you clone and build the source on Ubuntu: - - git clone git://github.com/eressea/server.git - cd server - git submodule update --init - ./configure - +# What is this? + +This repository contains an the source code for the Play-by-Mail strategy game [Eressea](http://www.eressea.de/). + +# Prerequisites + +Eressea depends on a number of external libraries. On a recent Debian-based Linux system, this is the apt-get command to install all of them: + + sudo apt-get install git cmake gcc make libxml2-dev liblua5.2-dev libtolua-dev libncurses5-dev libsqlite3-dev + +# How to check out and build the Eressea server + +This repository relies heavily on the use of submodules, and it pulls in most of the code from those. The build system being used is cmake, which can create Makefiles on Unix, or Visual Studio project files on Windows. Here's how you clone and build the source on Ubuntu: + + git clone git://github.com/eressea/server.git + cd server + git submodule update --init + ./configure + If you got this far and all went well, you have built a server (it is linked from the `game` subdirectory), and it will have passed some basic functionality tests. \ No newline at end of file diff --git a/scripts/e3a/frost.lua b/scripts/e3a/frost.lua index f60d557fb..ef2831cae 100644 --- a/scripts/e3a/frost.lua +++ b/scripts/e3a/frost.lua @@ -1,52 +1,52 @@ -module('frost', package.seeall) - -local function is_winter(turn) - local season = get_season(turn) - return season == "calendar::winter" -end - -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 (chance>=100 or math.fmod(rng_int(), 100)=100 or math.fmod(rng_int(), 100)=100 or math.fmod(rng_int(), 100)=100 or math.fmod(rng_int(), 100)