Summary: Random disasters module
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 15 Feb 2012 09:13:21 PM EET
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.5.0



This patch adds initial version of random disasters module. Disasters are
hardcoded, but data structures are set up in a way that loading them from
ruleset is easy to add in later patch.

- Frequency of disasters is controlled by new server setting "disasters" Once
disasters feature matures a bit, we may enable them by default and explicitly
disable from multiplayer ruleset, but for time being default value of
"disasters" is 0.
- New event type is added for disaster related messages
- There's three hardcoded disasters in this version. Earthquake and Fire
destroy random building from city, Plague reduces population by one
- Each city and each disaster is checked independently. In theory it's
possible that multiple disasters hit same city in same turn


File Attachments:

Date: Wed 15 Feb 2012 09:13:22 PM EET  Name: Disasters.diff  Size: 19kB   By:



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to