From 78f689ceed7819943b85e6c63e1c96396ca0e386 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Mon, 19 Aug 2019 01:15:23 +0200 Subject: Adds naive collection generator. --- src/shared/struct/shr_attributes.erl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/shared/struct/shr_attributes.erl') 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) -> -- cgit v1.2.3-70-g09d2