summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/struct/sh_armor.erl')
-rw-r--r--src/shared/struct/sh_armor.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/struct/sh_armor.erl b/src/shared/struct/sh_armor.erl
index f328fdf..dcbb379 100644
--- a/src/shared/struct/sh_armor.erl
+++ b/src/shared/struct/sh_armor.erl
@@ -119,7 +119,7 @@ apply_to_attributes (Ar, Att) ->
Speed = sh_attributes:get_speed(Att),
Strength = sh_attributes:get_strength(Att),
Mind = sh_attributes:get_mind(Att),
- Impact = erlang:ceil(20.0 * Ar#armor.coef),
+ Impact = sh_math_util:ceil(20.0 * Ar#armor.coef),
Category = Ar#armor.category,
case Category of
@@ -166,4 +166,4 @@ get_resistance_to (DamageType, Armor) ->
ArmorCoefficient = Armor#armor.coef,
ActualResistance = (ArmorCoefficient * BaseResistance),
- erlang:ceil(ActualResistance).
+ sh_math_util:ceil(ActualResistance).