summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/shared/shr_roll.erl')
-rw-r--r-- | src/shared/shr_roll.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/shr_roll.erl b/src/shared/shr_roll.erl index 0e44d63..b2aca29 100644 --- a/src/shared/shr_roll.erl +++ b/src/shared/shr_roll.erl @@ -71,5 +71,5 @@ percentage_with_luck (Chance, Luck) -> ModedRoll, IsSuccess, (BadLuckBonus + calculate_costs(IsSuccess, Roll, Chance)), - (-1 * calculate_costs(IsSuccess, Roll, ModedChance)) + calculate_costs((not IsSuccess), (100 - Roll), (100 - ModedChance)) }. |