summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-08-19 01:15:23 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-08-19 01:15:23 +0200 |
commit | 78f689ceed7819943b85e6c63e1c96396ca0e386 (patch) | |
tree | 4d98756fa463b30e4c3c3c00dc52ab57570880f4 /src/shared/struct/shr_attributes.erl | |
parent | 7a1686695e70b68b2d4ad49c0f5bc967fa6d1013 (diff) |
Adds naive collection generator.
Diffstat (limited to 'src/shared/struct/shr_attributes.erl')
-rw-r--r-- | src/shared/struct/shr_attributes.erl | 10 |
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) -> |