URL:
  <http://gna.org/patch/?3941>

                 Summary: Building obsolescense requirement vector
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sat 15 Jun 2013 08:20:27 AM EEST
                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.6.0

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 15 Jun 2013 08:20:27 AM EEST  Name: ObsoleteReqVec.patch.bz2  Size:
11kB   By: cazfi

<http://gna.org/patch/download.php?file_id=18090>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3941>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to