Summary: Remove multiplication by 3 from
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 26 Jun 2013 03:28:30 PM EEST
                Category: ai
                Priority: 5 - Normal
                  Status: In Progress
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 



There's defense value multiplication by three in base_assess_defense_unit()
with no clue what it tries to represent. It's next to some code handling city
walls, and (previously hardcoded) defense bonus from city walls was that it
multiplied defense by 3. However, current multiplication happens
unconditionally (no matter if walls are present or if attacker is subject to
them) and walls are handled separately anyway. It could also be magic
balancing value, but in that case it's very much broken nowadays.
At the same time AI considers its defense strength way too high in comparison
to dangers - when it has single warrior defending and there's 5 archers
approaching, it sees no need to add to its defenses.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to