aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-09-10 21:51:49 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-09-10 21:51:49 +0200
commitb51de36af2a3728b70aaad81710d6a575f140abc (patch)
treea141493978c4a25651105444c65467402c88d890
parent37be15261c35d732e6a254b75b77654ad0ad9d97 (diff)
downloadtacticians-server-b51de36af2a3728b70aaad81710d6a575f140abc.zip
tacticians-server-b51de36af2a3728b70aaad81710d6a575f140abc.tar.bz2
Sets correct values as base attributes.
-rw-r--r--src/shared/struct/shr_attributes.erl16
1 files 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().