Summary: Let action enablers for bribing or sabotaging a unit
know it must be alone at its tile
                 Project: Freeciv
            Submitted by: sveinung
            Submitted on: Wed 12 Feb 2014 11:45:45 PM UTC
                Category: None
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: sveinung
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0



The Freeciv code assumes that the victim unit of the spy actions bribe and
sabotage is alone at its tile. Make all evaluations based on action enablers
aware of this limitation.

Existing hard coded checks that the victim is alone is kept even if action
enablers later are used. Should anyone consider to make it possible for one or
both actions to target units that aren't alone the existing checks mark areas
to pay attention to. For now they allow us to skip evaluating enablers of
bribe and sabotage if more than one unit occupies the target tile.


File Attachments:

Date: Wed 12 Feb 2014 11:45:45 PM UTC  Name: bribe_sabotage_lonely_unit.patch 
Size: 814B   By: sveinung



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to