Navigation

    TripleA Logo

    TripleA Forum

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

    Why does all aa attack values must divide into attackAAmaxDieSides?

    Development
    3
    5
    267
    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.
    • T
      Trevan last edited by

      I'm looking at fixing the aa dice code so that it can handle multiple dice sides in a single typeAA. I'm looking at pact of steel 2 and it has this message:

      attackAAmaxDieSides         values: sets the dice sides for aa guns.  defaults to whatever you chose above in diceSides (or 6 if you didn't choose).  All units with the same typeAA must have the same dice sides.
                                  Be Warned that all aa attack values (including with Radar and without Radar), MUST divide into attackAAmaxDieSides without remainders, or else there WILL be errors in LowLuck!
      

      Does anyone know what it means by "there WILL be errors in LowLuck"? What type of errors will happen?

      It feels like the remainder would just be the low luck overflow (where it rolls an extra dice) so I'm not sure why it says there will be errors.

      1 Reply Last reply Reply Quote 0
      • T
        Trevan last edited by

        My best guess based on git history is that this warning was added when low luck was calculated differently and it is no longer valid. But I don't know the history of low luck so I'm not sure.

        1 Reply Last reply Reply Quote 0
        • LaFayette
          LaFayette Admin last edited by

          That's all quite old code. @Trevan your archeological dig into it is probably about as good as it gets. The example XML had good value for some time, but it's seemingly clear it's not getting maintained properly and is frankly too complex to even still be a good example. I think we'll have to come up with a replacement to give example XML blocks to avoid such problems of out-of-sync documentation.

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

            Some more archeological findings, from my memory.

            1 Reply Last reply Reply Quote 0
            • T
              Trevan last edited by

              @alkexr , thanks for those forum posts. It does look like this warning is no longer valid.

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