Negating the loss of capital

  • I want a power to be unaffected by the loss of a capital. I tried this code:

        <attachment name="rulesAttachment" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="retainCapitalNumber" value="0"/>
          <option name="retainCapitalProduceNumber" value="0"/>

    I received the error:

    GameParseException: map name: 'file:/C:/Users/Roger/triplea/downloadedMaps/Hypothetical_Operations/games/Operation-Dandelion.xml', game name: 'Operation Dandelion', Missing property definition for option 'retainCapitalNumber' in attachment 'rulesAttachment'

    What am I doing wrong?

  • Try playerAttachment instead of rulesAttachment in both name and javaClass.

  • Thank you

Log in to reply