summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-06-27 12:05:37 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-06-27 12:05:37 +0200
commit825c07c6559230f930fbe38db10cfa56d3e0747c (patch)
treedcfd2f9f073a5212cd81d830abc0125d9d8dd866 /src/shared/struct/sh_statistics.erl
parent161c7870644e8c45f741a8f33e149737ae7cdad2 (diff)
Small changes in stats calculation.
Diffstat (limited to 'src/shared/struct/sh_statistics.erl')
-rw-r--r--src/shared/struct/sh_statistics.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/struct/sh_statistics.erl b/src/shared/struct/sh_statistics.erl
index 8f273b1..497cf41 100644
--- a/src/shared/struct/sh_statistics.erl
+++ b/src/shared/struct/sh_statistics.erl
@@ -174,7 +174,11 @@ new (BaseAttributes, WeaponIDs, ArmorID) ->
(
average([Mind, Constitution, Constitution, Speed, Speed, Speed])
),
- health = gentle_squared_growth(Constitution),
+ health =
+ gentle_squared_growth
+ (
+ average([Constitution, Constitution, Constitution, Mind])
+ ),
dodges =
min_max(0, 100, sudden_exp_growth(average([Dexterity, Mind, Speed]))),
parries =