| summaryrefslogtreecommitdiff | 
diff options
Diffstat (limited to 'src/shared/shr_roll.erl')
| -rw-r--r-- | src/shared/shr_roll.erl | 8 | 
1 files changed, 1 insertions, 7 deletions
| diff --git a/src/shared/shr_roll.erl b/src/shared/shr_roll.erl index b2aca29..eb0f21e 100644 --- a/src/shared/shr_roll.erl +++ b/src/shared/shr_roll.erl @@ -61,15 +61,9 @@ percentage_with_luck (Chance, Luck) ->     ModedRoll = max(0, min((Roll - Luck), 100)),     IsSuccess = (Roll =< ModedChance), -   BadLuckBonus = -      case (Luck < 0) of -         true -> 1; -         false -> 0 -      end, -     {        ModedRoll,        IsSuccess, -      (BadLuckBonus + calculate_costs(IsSuccess, Roll, Chance)), +      calculate_costs(IsSuccess, Roll, Chance),        calculate_costs((not IsSuccess), (100 - Roll), (100 - ModedChance))     }. | 


