toadchild / 40kdice

Statistical analysis tool for Warhammer 40,000 and Age of Sigmar
http://40k.ghostlords.com/dice/
MIT License
13 stars 7 forks source link

Saves seem to be capped at 6, can't auto-fail on base 7+ or AP #13

Closed Thrax37 closed 1 year ago

Thrax37 commented 1 year ago

It seems that the saves can't be entirely ignored even when starting from 7+ or when the armour penetration would bring the value to a number strictly superior to 6+. In every case, the formula seems to consider that damage can be saved as if the defender had a 6+ save.

Here's a screenshot (with auto-hit, auto-wound, 7+ save) : image

We can see that the expected value after save should still be "1" but it becomes "0.83", as if you had a 1/6 chance to save.

toadchild commented 1 year ago

Thanks for the report - you are correct, this is an error. It appears I accidentally introduced it when I refactored hit/wound rolls to have a variable crit target in order to support 40K 10th edition.