Aurora 4x

VB6 Aurora => VB6 Mechanics => Topic started by: SerBeardian on August 18, 2018, 07:15:59 AM

Title: A clarification request for Shock Damage
Post by: SerBeardian on August 18, 2018, 07:15:59 AM
Hey, hoping to clarify something if it hasn't been answered before:

In the 6. 3 changelog, Steve provided the following numbers as the chances to deal at least 1 point of shock damage for a given hit:

Quote
1: 0%
2: 0%
3: 0. 03%
4: 1. 25%
5: 2. 8%
6: 4. 5%
7: 6. 3%
8: 8. 1%
9: 10. 7%
10: 12. 6%
12: 18. 0%
16: 28. 4%
20: 40. 1%
24: 53. 4%
30: 73. 8%
36: 95. 3%

But throwing the damage values into the Shock Chance equation of Damage^1. 3 yields chances significantly higher than the ones given.  As an example:

12: 25. 2%
16: 36. 7%
20: 49. 1%
reaching 100% at 35.

At first I thought it was related to the "at least one point of damage", but unless the "random percentage" includes 0%, any hit above about 9 damage should yield at least 1 damage reasonably consistently.  A 16-damage hit would yield base Shock of 16/3=5. 3, which would need to allow the random percentage to go as low as 18% to fall below 1, and does not account for disparity in chances of Shock damage.

What am I missing here?

On a related note, what IS the range of that "random percentage"?
Title: Re: A clarification request for Shock Damage
Post by: Steve Walmsley on September 04, 2018, 12:43:42 PM
I've checked the code and the chance is simply rounded, not rounded down, which leads to the numbers you quoted.
Title: Re: A clarification request for Shock Damage
Post by: SerBeardian on September 04, 2018, 04:07:18 PM
Ok, so my percentages are correct then? Excellent, that makes shock damage even more viable :)

Also, are there any numbers for the range of the "random percentage" for the damage roll?