#72 Add Property to prevent contested territories from producing income

Unstable (example)

In 1914, contested territories do not produce income for either side. This change adds a new game property, "Contested Territories Produce Income", which controls this behaviour. The default is to produce income (as it currently does).

When determining a player's income, if this property is false, and there are enemy units present in a territory owned by this player, do not add that territory's income to the player's income.

1 Attachments


  • David Landry

    David Landry - 2013-09-25

    Uploading an updated patch. It creates new Matches for contested territories and uses one of them. The Matches will be used by upcoming code as well (e.g. to validate movement to/from contested territories).

  • Chris Duncan

    Chris Duncan - 2014-01-05

    Game option properties should always default false, so i changed the name of it so that it could be false (produce "no" income).

    Also, if there is a variable that won't change with each match test, it is good to test for it once when you create the match rather than each time the match is tested.

    accepted and committed with minor changes,

  • Chris Duncan

    Chris Duncan - 2014-01-05
    • 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