URL:
  <http://gna.org/bugs/?13600>

                 Summary: ruleset requirement option: negated
                 Project: Freeciv
            Submitted by: syntron
            Submitted on: Samstag 30.05.2009 um 22:05
                Category: rulesets
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
        Operating System: None

    _______________________________________________________

Details:

In the code there are the requirement options 'survives'
and 'negated'. I tried to use the second one as follows
(see also nreqs_impr.patch.diff):

--- start buildings.ruleset ---
[building_hydro_plant]
name            = _("Hydro Plant")
genus           = "Improvement"
reqs    =
    { "type", "name", "range", "negated"
      "Tech", "Electronics", "Player", 0
      "Building", "Factory", "City", 0
      "Special", "River", "Adjacent", 0
      "Building", "Power Plant", "City", 1
      "Building", "Nuclear Plant", "City", 1
      "Building", "Solar Plant", "City", 1
    }
graphic = "b.hydro_plant"
graphic_alt     = "-"
--- stop buildings.ruleset ---

If I understand the code right, this should restrict the
creation of a hydro plant if another power plan was build
in the city.

The rules are read OK but than an assertion failt at
requirements.c:385: universal_number (see nreqs_impr.log.txt)

For the effect this (?) is done with nreqs ...




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Samstag 30.05.2009 um 22:05  Name: nreqs_impr.patch.diff  Size: 2kB  
By: syntron

<http://gna.org/bugs/download.php?file_id=5850>
-------------------------------------------------------
Date: Samstag 30.05.2009 um 22:05  Name: nreqs_impr.log.txt  Size: 1kB   By:
syntron

<http://gna.org/bugs/download.php?file_id=5851>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13600>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


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

Reply via email to