summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-02-23 22:31:55 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-02-23 22:31:55 +0100 |
commit | e1191f3070de7faa1bb53e29be5cd009c8a14bc4 (patch) | |
tree | 3826d6f52dca5650c1a783b12645874d00bfb9fb | |
parent | e8156c873d9597360e8535ffd6dd4aa9441d1c47 (diff) |
Matches the new stats calculs from the server.
-rw-r--r-- | src/battlemap/src/Struct/Statistics.elm | 57 |
1 files changed, 18 insertions, 39 deletions
diff --git a/src/battlemap/src/Struct/Statistics.elm b/src/battlemap/src/Struct/Statistics.elm index 3f705ed..03e42bc 100644 --- a/src/battlemap/src/Struct/Statistics.elm +++ b/src/battlemap/src/Struct/Statistics.elm @@ -111,29 +111,30 @@ new att wp_set = let active_weapon = (Struct.WeaponSet.get_active_weapon wp_set) actual_att = (Struct.Weapon.apply_to_attributes active_weapon att) - dmg_bmod = - (damage_base_mod - (toFloat (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 (Struct.Attributes.get_speed actual_att)), + (gentle_squared_growth + (average [mind, constitution, constitution, speed, speed, speed]) + ), max_health = (gentle_squared_growth - (Struct.Attributes.get_constitution actual_att) + (average [mind, constitution, constitution]) ), dodges = (clamp - 5 - 75 + 0 + 100 (sudden_exp_growth_f (average - [ - (Struct.Attributes.get_dexterity actual_att), - (Struct.Attributes.get_mind actual_att), - (Struct.Attributes.get_speed actual_att) - ] + [dexterity, mind, speed] ) ) ), @@ -142,13 +143,7 @@ new att wp_set = 0 75 (sudden_exp_growth_f - (average - [ - (Struct.Attributes.get_dexterity actual_att), - (Struct.Attributes.get_speed actual_att), - (Struct.Attributes.get_strength actual_att) - ] - ) + (average [dexterity, intelligence, speed, strength]) ) ), damage_min = @@ -161,25 +156,9 @@ new att wp_set = dmg_bmod (toFloat (Struct.Weapon.get_max_damage active_weapon)) ), - accuracy = - (sudden_squared_growth - (Struct.Attributes.get_dexterity actual_att) - ), + accuracy = (sudden_squared_growth dexterity), double_hits = - (clamp - 0 - 100 - (sudden_squared_growth - (Struct.Attributes.get_speed actual_att) - ) - ), - --- This should be weapon dependent + (clamp 0 100 (sudden_squared_growth (average [mind, speed]))), critical_hits = - (clamp - 0 - 100 - (sudden_squared_growth - (Struct.Attributes.get_intelligence actual_att) - ) - ) + (clamp 0 100 (sudden_squared_growth intelligence)) } |