patchFreeciv - Patches: patch #3763, city:inspire_partisans() for lua...

 
 
Show feedback again

patch #3763: city:inspire_partisans() for lua scripting

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Thu 28 Feb 2013 04:56:21 AM UTC  
 
Category: generalPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.5.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 08 Mar 2013 06:13:26 AM UTC, SVN revision 22502:

Add C-code side function api_methods_city_inspire_partisans() accessible as
City:inspire_partisans() from 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

See patch #3763

(Browse SVN revision 22502)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Thu 28 Feb 2013 04:56:21 AM UTC, original submission:

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.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Digest:
   patch dependencies.

 

Carbon-Copy List
  • -unavailable- added by cazfi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Mar 2013 06:13:42 AM UTCcazfiStatusReady For Test=>Done
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Thu 28 Feb 2013 04:57:21 AM UTCcazfiDependencies-=>patch #3762 is dependent
    Thu 28 Feb 2013 04:56:21 AM UTCcazfiAttached File-=>Added CityInspirePartisans.patch, #17373
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup