Variable Max Units Per Territory
-
I've added bunkers into the game I'm working on. They are in the game, can be bought and defend, etc. There might be a better way to have them repair, but that's not my main concern. What I would like is for the maximum number of Bunkers per territory to be dependent on the IPC value of the territory, with territories worth 0 still being able to have a maximum of 1. Is this possible?
<attachment name="unitAttachment" attachTo="bunker" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType"> <option name="defense" value="3"/> <option name="hitPoints" value="2"/> <option name="isConstruction" value="true"/> <option name="constructionType" value="bunker_structure"/> <option name="constructionsPerTerrPerTypePerTurn" value="1"/> <option name="maxConstructionsPerTypePerTerr" value="2"/> <option name="repairsUnits" value="bunker"/> <option name="canBeCapturedOnEnteringBy" value="French:Americans:British:Russians:Germans:Italians:Japanese:ANZAC:Chinese"/> <option name="canBeGivenByTerritoryTo" value="British:French"/> </attachment>
-
Hi Elf
I don't remember exactly how I did it. This is what I have
<option name="isConstruction" value="true"/>
<option name="constructionType" value="bunker"/>
<option name="constructionsPerTerrPerTypePerTurn" value="1"/>
<option name="maxConstructionsPerTypePerTerr" value="1"/>
<option name="canDieFromReachingMaxDamage" value="true"/>and I think you need this property too
<property name="Place in Any Territory" value="true" editable="false">
<boolean/>
</property>there might be some others needed too