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

                 Summary: Occupying unit value
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 17 Jul 2013 09:33:43 PM EEST
                Category: ai
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 

    _______________________________________________________

Details:

Attacker unit capable of occupying a city has value based solely on its own
price.

- Unit that could also kill defenders, and value for that would be calculated
higher than city occupying value, still get the lower value. From the logging
from my test games that actually happens a lot - resulting in that those units
that *cannot* occupy and thus get assigned the defender killing value are
preferred over units capable of occupying
- Target city does not affect the value of occupying

Attached patch for TRUNK & S2_5 fixes both parts. Occupying unit value is
based on city value, and final value is higher of the occupying and defender
killing values.
To get effectively worth of any enemy city (including those running another ai
type) new functions added to ai callback interface and building advisor code
is adjusted. These changes are too intrusive for S2_4, but I'm about to make
S2_4 version that takes care of the case where defender killing value should
be used instead of low (in S2_4) occupying value.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 17 Jul 2013 09:33:43 PM EEST  Name: OccupierValue.patch  Size: 8kB  
By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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