summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/struct')
-rw-r--r--src/shared/struct/shr_attributes.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/shared/struct/shr_attributes.erl b/src/shared/struct/shr_attributes.erl
index 44d2e04..7928862 100644
--- a/src/shared/struct/shr_attributes.erl
+++ b/src/shared/struct/shr_attributes.erl
@@ -98,11 +98,17 @@ mod_accuracy (Mod, Atts) ->
-spec mod_double_hit_chance (integer(), type()) -> type().
mod_double_hit_chance (Mod, Atts) ->
- Atts#attributes{ double_hit_chance = (Atts#attributes.double_hit_chance + Mod) }.
+ Atts#attributes
+ {
+ double_hit_chance = (Atts#attributes.double_hit_chance + Mod)
+ }.
-spec mod_critical_hit_chance (integer(), type()) -> type().
mod_critical_hit_chance (Mod, Atts) ->
- Atts#attributes{ critical_hit_chance = (Atts#attributes.critical_hit_chance + Mod) }.
+ Atts#attributes
+ {
+ critical_hit_chance = (Atts#attributes.critical_hit_chance + Mod)
+ }.
-spec mod_damage_modifier (integer(), type()) -> type().
mod_damage_modifier (Mod, Atts) ->