patchFreeciv - Patches: patch #3941, Building obsolescense requirement...

 
 
Show feedback again

patch #3941: Building obsolescense requirement vector

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Sat 15 Jun 2013 05:20:27 AM UTC  
 
Category: generalPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.6.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 25 Jun 2013 11:59:39 PM UTC, SVN revision 22975:

Made building "obsolete_by" requirement vector. If any of these
obsoleting requirements is fulfilled, building is obsolete.

See patch #3941

(Browse SVN revision 22975)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Wed 19 Jun 2013 05:40:52 PM UTC, comment #1:

I was interested to make Great wonders obsolete by techs with range "Player" (instead of default "World"). I guess it will possible with this patch, thank you.

David Fernandez <bardo>
Sat 15 Jun 2013 05:20:27 AM UTC, original submission:

Make building "obsolete_by" vector of requirements. If any of these requirements is fulfilled, building is obsolete.

The original use-case I made this for could be achieved with much less flexible solution, but I see no reason not to go all the way to full requirement vector. Old code with single tech requirement had "range" behavior hardcoded so that for Great Wonders anybody having the tech obsoleted the wonder (range "World"), and for Small Wonders and normal buildings it was owner having the tech (range "Player"). I wanted to have specific wonder as Small Wonder so that all players could have their own, but it getting obsoleted globally when first player gets relevant tech.

All supplied rulesets should give identical behavior to old. This includes the fact that wonders in multiplayer ruleset, where they all are Small Wonders, do not get globally obsoleted. I leave it to future tickets if that should be changed or not.

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
file #18090:  ObsoleteReqVec.patch.bz2 added by cazfi (11kB - application/x-bzip)

 

Depends on the following items: None found

Digest:
   patch dependencies.

 

Carbon-Copy List
  • -unavailable- added by bardo (Posted a comment)
  • -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
    Thu 02 Jan 2014 05:11:31 PM UTCjtnDependencies-=>patch #1341 is dependent
    Tue 25 Jun 2013 11:59:54 PM UTCcazfiStatusReady For Test=>Done
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Sat 15 Jun 2013 05:20:27 AM UTCcazfiAttached File-=>Added ObsoleteReqVec.patch.bz2, #18090
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup