| summaryrefslogtreecommitdiff | 
diff options
| -rw-r--r-- | src/battlemap/src/Struct/Armor.elm | 33 | ||||
| -rw-r--r-- | src/battlemap/src/Struct/Statistics.elm | 5 | 
2 files changed, 28 insertions, 10 deletions
| diff --git a/src/battlemap/src/Struct/Armor.elm b/src/battlemap/src/Struct/Armor.elm index 3fb4738..f1a80cc 100644 --- a/src/battlemap/src/Struct/Armor.elm +++ b/src/battlemap/src/Struct/Armor.elm @@ -120,22 +120,37 @@ 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))     in        case ar.category of           Kinetic -> (Struct.Attributes.mod_mind impact atts) -         Leather -> (Struct.Attributes.mod_dexterity impact atts) +         Leather -> +            (Struct.Attributes.mod_constitution +               half_impact +               (Struct.Attributes.mod_dexterity +                  half_impact +                  atts +               ) +            ) +           Chain -> -            (Struct.Attributes.mod_dexterity -               impact -               (Struct.Attributes.mod_speed impact atts) +            (Struct.Attributes.mod_constitution +               half_impact +               (Struct.Attributes.mod_dexterity +                  half_impact +                  (Struct.Attributes.mod_speed impact atts) +               )              )           Plate -> -            (Struct.Attributes.mod_dexterity -               impact -               (Struct.Attributes.mod_speed -                  impact -                  (Struct.Attributes.mod_strength impact atts) +            (Struct.Attributes.mod_constitution +               half_impact +               (Struct.Attributes.mod_dexterity +                  half_impact +                  (Struct.Attributes.mod_speed +                     impact +                     (Struct.Attributes.mod_strength impact atts) +                  )                 )              ) diff --git a/src/battlemap/src/Struct/Statistics.elm b/src/battlemap/src/Struct/Statistics.elm index 5c1a08f..5b7eb87 100644 --- a/src/battlemap/src/Struct/Statistics.elm +++ b/src/battlemap/src/Struct/Statistics.elm @@ -136,7 +136,10 @@ new att wp_set ar =              (gentle_squared_growth_f                 (average [mind, constitution, constitution, speed, speed, speed])              ), -         max_health = (gentle_squared_growth constitution), +         max_health = +            (gentle_squared_growth_f +               (average [constitution, constitution, constitution, mind]) +            ),           dodges =              (clamp                 0 | 


