summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-02-23 22:35:50 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-02-23 22:35:50 +0100
commit3a2c3e43f956d5452b30f724f9d0ca29b2b18e26 (patch)
treeff145256a87eb55a79801116b34c636d8ebb2e5d
parente1191f3070de7faa1bb53e29be5cd009c8a14bc4 (diff)
Woops, should have compiled first.
-rw-r--r--src/battlemap/src/Struct/Statistics.elm24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/battlemap/src/Struct/Statistics.elm b/src/battlemap/src/Struct/Statistics.elm
index 03e42bc..aad1411 100644
--- a/src/battlemap/src/Struct/Statistics.elm
+++ b/src/battlemap/src/Struct/Statistics.elm
@@ -50,9 +50,15 @@ float_to_int f =
gentle_squared_growth : Int -> Int
gentle_squared_growth v = (float_to_int (((toFloat v)^1.8)/20.0))
+gentle_squared_growth_f : Float -> Int
+gentle_squared_growth_f v = (float_to_int ((v^1.8)/20.0))
+
sudden_squared_growth : Int -> Int
sudden_squared_growth v = (float_to_int (((toFloat v)^2.5)/1000.0))
+sudden_squared_growth_f : Float -> Int
+sudden_squared_growth_f v = (float_to_int ((v^2.5)/1000.0))
+
sudden_exp_growth : Int -> Int
sudden_exp_growth v = (float_to_int (4.0^((toFloat v)/25.0)))
@@ -111,21 +117,21 @@ new att wp_set =
let
active_weapon = (Struct.WeaponSet.get_active_weapon wp_set)
actual_att = (Struct.Weapon.apply_to_attributes active_weapon att)
- constitution = (Struct,Attributes.get_constitution actual_att)
- dexterity = (Struct,Attributes.get_dexterity actual_att)
- intelligence = (Struct,Attributes.get_intelligence actual_att)
- mind = (Struct,Attributes.get_mind actual_att)
- speed = (Struct,Attributes.get_speed actual_att)
- strength = (Struct,Attributes.get_strength actual_att)
+ constitution = (Struct.Attributes.get_constitution actual_att)
+ dexterity = (Struct.Attributes.get_dexterity actual_att)
+ intelligence = (Struct.Attributes.get_intelligence actual_att)
+ mind = (Struct.Attributes.get_mind actual_att)
+ speed = (Struct.Attributes.get_speed actual_att)
+ strength = (Struct.Attributes.get_strength actual_att)
dmg_bmod = (damage_base_mod (toFloat strength))
in
{
movement_points =
- (gentle_squared_growth
+ (gentle_squared_growth_f
(average [mind, constitution, constitution, speed, speed, speed])
),
max_health =
- (gentle_squared_growth
+ (gentle_squared_growth_f
(average [mind, constitution, constitution])
),
dodges =
@@ -158,7 +164,7 @@ new att wp_set =
),
accuracy = (sudden_squared_growth dexterity),
double_hits =
- (clamp 0 100 (sudden_squared_growth (average [mind, speed]))),
+ (clamp 0 100 (sudden_squared_growth_f (average [mind, speed]))),
critical_hits =
(clamp 0 100 (sudden_squared_growth intelligence))
}