From a78b67db4dfbed793b3b62ce5c47a1afaaa6c6d1 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 29 Jan 2019 18:42:18 +0100 Subject: Looks good. --- src/shared/shr_roll.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/shr_roll.erl') 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)) }. -- cgit v1.2.3-70-g09d2