From 0416d506aa9d20f2b65ce0123e9c54798a00411e Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 8 Jun 2018 13:12:16 +0200 Subject: Equipment penalties should not increase attributes --- src/shared/struct/sh_statistics.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shared/struct/sh_statistics.erl') diff --git a/src/shared/struct/sh_statistics.erl b/src/shared/struct/sh_statistics.erl index e2b8543..d2dfb1c 100644 --- a/src/shared/struct/sh_statistics.erl +++ b/src/shared/struct/sh_statistics.erl @@ -72,17 +72,17 @@ average (L) -> lists:sum(L) / length(L). % V | 010 | 030 | 050 | 070 | 100 | % F | 004 | 023 | 058 | 104 | 200 | -spec gentle_squared_growth (number()) -> non_neg_integer(). -gentle_squared_growth (V) -> float_to_int(math:pow(V, 1.8) / 20). +gentle_squared_growth (V) -> float_to_int(math:pow(V, 1.8) / 20.0). % V | 010 | 030 | 050 | 070 | 100 | % F | 001 | 005 | 018 | 041 | 100 | -spec sudden_squared_growth (number()) -> non_neg_integer(). -sudden_squared_growth (V) -> float_to_int(math:pow(V, 2.5) / 1000). +sudden_squared_growth (V) -> float_to_int(math:pow(V, 2.5) / 1000.0). % V | 010 | 030 | 050 | 070 | 100 | % F | 002 | 006 | 016 | 049 | 256 | -spec sudden_exp_growth (number()) -> non_neg_integer(). -sudden_exp_growth (V) -> float_to_int(math:pow(4, V / 25)). +sudden_exp_growth (V) -> float_to_int(math:pow(4.0, V / 25.0)). % V | 010 | 030 | 050 | 070 | 100 | % F | 040 | 066 | 079 | 088 | 099 | -- cgit v1.2.3-70-g09d2