summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-07-04 20:38:25 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-07-04 20:38:25 +0200 |
commit | 924c651aa7ff2470358704cd794f4ccdbbe9fa38 (patch) | |
tree | 4f8d370272a5e196f90ce2e1b570db8855fc89cd | |
parent | d3a88c205888228191141faeb085e3c67ea3ebd0 (diff) |
Should remove the stats discrepancies.
-rw-r--r-- | src/battlemap/src/Struct/Armor.elm | 4 | ||||
-rw-r--r-- | src/battlemap/src/Struct/Weapon.elm | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/battlemap/src/Struct/Armor.elm b/src/battlemap/src/Struct/Armor.elm index ccd32d7..58f27d7 100644 --- a/src/battlemap/src/Struct/Armor.elm +++ b/src/battlemap/src/Struct/Armor.elm @@ -119,8 +119,8 @@ get_resistance_to dmg_type ar = apply_to_attributes : Type -> Struct.Attributes.Type -> Struct.Attributes.Type apply_to_attributes ar atts = let - impact = (ceiling (-20.0 * ar.coef)) - half_impact = (ceiling (-10.0 * ar.coef)) + impact = (-1 * (ceiling (20.0 * ar.coef))) + half_impact = (-1 * (ceiling (10.0 * ar.coef))) in case ar.category of Kinetic -> (Struct.Attributes.mod_mind impact atts) diff --git a/src/battlemap/src/Struct/Weapon.elm b/src/battlemap/src/Struct/Weapon.elm index 6b38238..248e8f8 100644 --- a/src/battlemap/src/Struct/Weapon.elm +++ b/src/battlemap/src/Struct/Weapon.elm @@ -161,9 +161,9 @@ get_min_damage wp = wp.dmg_min apply_to_attributes : Type -> Struct.Attributes.Type -> Struct.Attributes.Type apply_to_attributes wp atts = let - impact = (-20.0 * wp.coef) - full_impact = (ceiling impact) - quarter_impact = (ceiling (impact / 4.0)) + impact = (20.0 * wp.coef) + full_impact = (-1 * (ceiling impact)) + quarter_impact = (-1 * (ceiling (impact / 4.0))) in case (wp.range_mod, wp.dmg_mod) of (Long, Heavy) -> |