summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-08-19 01:15:23 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-08-19 01:15:23 +0200
commit78f689ceed7819943b85e6c63e1c96396ca0e386 (patch)
tree4d98756fa463b30e4c3c3c00dc52ab57570880f4 /src/shared/struct
parent7a1686695e70b68b2d4ad49c0f5bc967fa6d1013 (diff)
Adds naive collection generator.
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) ->