Summary: city:inspire_partisans() for lua scripting
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 28 Feb 2013 06:56:21 AM 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



Add C-code side function api_methods_city_inspire_partisans() accessible as
City:inspire_partisans() in lua-script. Partisans creation checks for player
being original owner of the city and "Inspires_Partisans" effect being active
moved from default.lua to that function.

Immediate improvements to ruleset flexibility:
"Inspires_Partisans" considered only player and above level requirements, now
it can have city specific, or even city center tile specific requirements.
There's a caveat that city has already changed hands when the effect is
checked, so buildings that used to exist before the conquest might be
destroyed etc.


File Attachments:

Date: Thu 28 Feb 2013 06:56:21 AM EET  Name: CityInspirePartisans.patch  Size:
6kB   By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to