aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-07-16 11:03:24 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-07-16 11:03:24 +0200
commit19b7081bee9b5c9c9a56592aa2ae4ffedfd591b5 (patch)
tree320dcac351bf18a52f4b577ff6ef1122ab066b2d
parente35aeff71429bd1d3a023195e0ad6dd77d1be5a8 (diff)
downloadtacticians-server-19b7081bee9b5c9c9a56592aa2ae4ffedfd591b5.zip
tacticians-server-19b7081bee9b5c9c9a56592aa2ae4ffedfd591b5.tar.bz2
Woops, forgot comparison.
-rw-r--r--src/balancer/struct/blc_armor.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/balancer/struct/blc_armor.erl b/src/balancer/struct/blc_armor.erl
index e5664f2..fd44abb 100644
--- a/src/balancer/struct/blc_armor.erl
+++ b/src/balancer/struct/blc_armor.erl
@@ -173,7 +173,7 @@ get_maximum_movement_points_with_factors (Value, BaseValue, Factor) ->
get_maximum_factor_with_movement_points (Value, BaseValue, MovementPoints) ->
MvtPointsBaseMod = (MovementPoints - ?BASE_MOVEMENT_POINTS_ATTRIBUTE),
- case MvtPointsBaseMod of
+ case (MvtPointsBaseMod > 0) of
false -> 1.0;
true -> (Value / (MvtPointsBaseMod * (BaseValue / ?BASE_MOVEMENT_POINTS_ATTRIBUTE)))
end.