Remove SBR damage limit?
-
I am trying to remove the damage limits for strategic bombing raids, but it doesn't work. I've set the following properties:
<property name="Limit SBR Damage To Factory Production" value="false" editable="false"> <boolean/> </property> <property name="Limit SBR Damage Per Turn" value="false" editable="false"> <boolean/> </property> <property name="Use Bombing Max Dice Sides And Bonus" value="true" editable="false"> <boolean/> </property> <property name="Territory Turn Limit" value="false" editable="false"> <boolean/> </property> <property name="SBR Affects Unit Production " value="false" editable="false"> <boolean/> </property>
This is the territory attachment:
<attachment name="territoryAttachment" attachTo="Leningrad" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory"> <option name="production" value="1"/> <option name="originalFactory" value="true"/> <option name="changeUnitOwners" value="Russians"/> </attachment>
What should happen, is that the die rolls for all bombers are added up and then that total amount of PUs is removed from the player being bombed. However, the game engine limits each roll to the production value of the territory.
-
Never mind, I found the issue
<property name="WW2V2" value="true" editable="false"> <boolean/> </property>
This property overwrote the other ones and made the limit apply, even though the other ones were below this one. I thought if you have a property that sets something to true and a couple of lines later another property that sets the same thing to false, it would be false, but that's apparently not the case.
Lol I only post these questions when I really can't figure out the issue, but I always find the solution just after I posted
-
@victoryfirst
Putting a positive spin on things, you are solving your own problems and future map-makers have posts to search and learn -
@thedog Hehe that's true. Remember kids, never set "WW2V2" to "true" if you want to remove the damage limits for SBRs
-
@victoryfirst said in Remove SBR damage limit?:
I thought if you have a property that sets something to true and a couple of lines later another property that sets the same thing to false, it would be false, but that's apparently not the case.
Not so my friend, properties default to false, if you set it to false it is ignored. So, setting cover property like "WW2V2"/"WW2V3" to true will set those to true.
Cheers...
-
@victoryfirst said in Remove SBR damage limit?:
Remember kids, never set "WW2V2" to "true" if you want to remove the damage limits for SBRs
ha ha ha !!!
-
That made me laugh lol
In case you're not aware, v2 changes some other stuff too. Technology tokens i think. Maybe some other stuff. Can't remember