Hey all,
So I'm trying to work on an armada dice calculator. X-wing has an online one and its super helpful so I've been slowly building one. I started with just a basic enter number of dice and it will return expected damage, expected crits, expected accuracy results, chance of at least 1 crit, chance of at least 1 accuracy, and the individual chance of a crit on each color die.
My next step is accounting for brace tokens and ECM. I'm not 100% sure how to implement this since its been a while since I've done any probabilty.
What I currently has is Expected Damage - (Expected damage/2*(1-Odds of rolling at least 1 accuracy)).
So for example:
Expected damage from 3 red and 4 blue: 5.25
Odds of rolling at least 1 crit on 3 red and 4 blues is 78.80%
Expected damage with a brace token is 2.625
So 5.25-(2.65*(1-.7880)) = 4.69 expected damage.
Am I implementing this correctly?