Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Remove SBR damage limit?

    Map Making
    4
    7
    421
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • VictoryFirst
      VictoryFirst last edited by

      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.

      f321ab20-853a-45ff-baaa-ebc12259043e-image.png

      1 Reply Last reply Reply Quote 0
      • VictoryFirst
        VictoryFirst last edited by

        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 😅

        TheDog W 2 Replies Last reply Reply Quote 3
        • TheDog
          TheDog @VictoryFirst last edited by

          @victoryfirst
          Putting a positive spin on things, you are solving your own problems and future map-makers have posts to search and learn 🙄 😀

          VictoryFirst 1 Reply Last reply Reply Quote 4
          • VictoryFirst
            VictoryFirst @TheDog last edited by

            @thedog Hehe that's true. Remember kids, never set "WW2V2" to "true" if you want to remove the damage limits for SBRs 😁

            B 1 Reply Last reply Reply Quote 4
            • W
              wc_sumpton @VictoryFirst last edited by

              @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...

              1 Reply Last reply Reply Quote 3
              • B
                beelee @VictoryFirst last edited by

                @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 !!!

                1 Reply Last reply Reply Quote 3
                • B
                  beelee last edited by

                  @VictoryFirst

                  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

                  1 Reply Last reply Reply Quote 2
                  • 1 / 1
                  • First post
                    Last post
                  Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums