From b51de36af2a3728b70aaad81710d6a575f140abc Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 10 Sep 2019 21:51:49 +0200 Subject: Sets correct values as base attributes. --- src/shared/struct/shr_attributes.erl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/shared/struct/shr_attributes.erl b/src/shared/struct/shr_attributes.erl index 7928862..95ded98 100644 --- a/src/shared/struct/shr_attributes.erl +++ b/src/shared/struct/shr_attributes.erl @@ -152,14 +152,14 @@ get_damage_multiplier (Atts) -> (get_damage_modifier(Atts) / 100). default () -> #attributes { - movement_points = 0, - health = 1, - dodge_chance = 0, - parry_chance = 0, - accuracy = 0, - double_hit_chance = 0, - critical_hit_chance = 0, - damage_modifier = 100 + movement_points = ?ATTRIBUTE_MOVEMENT_POINTS_MIN, + health = ?ATTRIBUTE_HEALTH_MIN, + dodge_chance = ?ATTRIBUTE_DODGE_CHANCE_MIN, + parry_chance = ?ATTRIBUTE_PARRY_CHANCE_MIN, + accuracy = ?ATTRIBUTE_ACCURACY_MIN, + double_hit_chance = ?ATTRIBUTE_DOUBLE_HIT_CHANCE_MIN, + critical_hit_chance = ?ATTRIBUTE_CRITICAL_HIT_CHANCE_MIN, + damage_modifier = ?ATTRIBUTE_DAMAGE_MODIFIER_MIN }. -spec apply_mod (enum(), integer(), type()) -> type(). -- cgit v1.2.3-70-g09d2