#78 change ownership of contested territories that are abandoned to the enemy

Unstable (example)
closed-accepted
None
5
2014-01-11
2013-09-25
No

If a territory is contested, and then the current player moves all units out of this territory, leaving only enemy units, the territory's ownership must change. This patch looks for all territories owned by the current player, with only enemy units (plus possibly friendly infrastructure units), and changes ownership to that enemy player.

If multiple (allied) enemies are in the territory, the players are supposed to mutually agree who should take ownership, but for this change just choose one arbitrarily.

1 Attachments

Discussion

  • Chris Duncan

    Chris Duncan - 2014-01-11

    Accepted and committed, but with big changes.

    The check you were doing was not stringent enough, so I heavily modified your patch before committing.

     
  • Chris Duncan

    Chris Duncan - 2014-01-11
    • status: open --> closed-accepted
    • assigned_to: Chris Duncan
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks