summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-01-29 18:42:18 +0100
committernsensfel <SpamShield0@noot-noot.org>2019-01-29 18:42:18 +0100
commita78b67db4dfbed793b3b62ce5c47a1afaaa6c6d1 (patch)
tree62f0b15c0e066d099b42bb28bacb8bf691d021a3 /src/shared
parent5f08adbfe0dea0acd832f8ff8dddbc6fe5234200 (diff)
Looks good.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/shr_roll.erl2
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))
}.