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"/> </attachment>
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 ofrulesAttachment
in bothname
andjavaClass
. -
Thank you
-
@alkexr said in Negating the loss of capital:
Try
playerAttachment
instead ofrulesAttachment
in bothname
andjavaClass
.mcdvoiceThank you for the explanation. It is clear for me.