Summary: process_attacker_want() veterancy handling
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 17 Jul 2013 08:23:45 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: 2.5.0, 2.6.0



process_attacker_want() gets veterancy of the unit considered to be built as
boolean (though stored in int variable) based on if the city has building
providing EFT_VETERAN_BUILD effect for the unit. This boolean values is then
passed on as veterancy level.

Attached patch makes it to use real EFT_VETERAN_BUILD effect value. This is
more correct in several ways:
- Effect value can be other than 1, including multiple effects cancelling each
other to result of 0
- Effect can be provided by something else than building in the city (even in
supplied rulesets some wonders can provide it while positioned in *another*


File Attachments:

Date: Wed 17 Jul 2013 08:23:45 PM EEST  Name: ProcessAttackerVeterancy.patch 
Size: 2kB   By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to