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

                 Summary: AI handling of !present requirements
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sat 25 Jan 2014 11:11:16 AM EET
                Category: ai
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.4.3, 2.5.0, 2.6.0

    _______________________________________________________

Details:

This patch fixes !present (or "negated") requirement handling in AI.
For effect requirements reggression testing between nreg vector and !present
requirements there's bad news: implementation differs in such a fundamental
level, that it makes no sense to make !present results identical to nreqs.
Effects for which building is nreq, are not even in buildings effects cache,
so AI code never even sees them. !present OTOH is handled (after this patch)
inside AI code, and only when it's time to check the req. !present requirement
now work against the value of the requirement building.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 25 Jan 2014 11:11:16 AM EET  Name: AiNotPresent.patch  Size: 9kB  
By: cazfi

<http://gna.org/patch/download.php?file_id=19850>
-------------------------------------------------------
Date: Sat 25 Jan 2014 11:11:16 AM EET  Name: AiNotPresent-S2_5.patch  Size:
8kB   By: cazfi

<http://gna.org/patch/download.php?file_id=19851>
-------------------------------------------------------
Date: Sat 25 Jan 2014 11:11:16 AM EET  Name: AiNotPresent-S2_4.patch  Size:
8kB   By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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