samsmithnz / TurnBasedEngine

The logic for a turn-based game, to be consumed as a dependency in a Unity3d app (TBS)
MIT License
1 stars 0 forks source link

Chance to hit is backwards, need to reverse it to make it logical #186

Closed samsmithnz closed 3 years ago

samsmithnz commented 3 years ago

e.g.

Chance to hit is: 65% If I roll a 1D100 and get 70, it should hit If I roll a 1D100 and get a 64, it should miss.

But this is backwards - it means I only have a 35% chance of beating 65% - which is wrong.

The calculation should be 100-65 = 35. If 70/64 is over this - then it's a hit.