TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Why does all aa attack values must divide into attackAAmaxDieSides?

    Scheduled Pinned Locked Moved Development
    5 Posts 3 Posters 864 Views 3 Watching
    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 Offline
      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 Offline
        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
        • LaFayetteL Offline
          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
          • alkexrA Offline
            alkexr
            last edited by

            Some more archeological findings, from my memory.

            "For the world is changing: I feel it in the water, I feel it in the earth, and I smell it in the air."

            1 Reply Last reply Reply Quote 0
            • T Offline
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums