From 96c35eb8c79826fa07d2b00bbac039d9ec95eb3c Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 23 Feb 2018 22:47:43 +0100 Subject: ... --- src/struct/attributes.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/struct/attributes.erl') diff --git a/src/struct/attributes.erl b/src/struct/attributes.erl index b4395cb..022cad2 100644 --- a/src/struct/attributes.erl +++ b/src/struct/attributes.erl @@ -54,15 +54,15 @@ get_mind (Att) -> Att#attributes.mind. get_speed (Att) -> Att#attributes.speed. get_strength (Att) -> Att#attributes.strength. -set_constitution (Att, Val) -> +set_constitution (Val, Att) -> Att#attributes{ constitution = Val }. -set_dexterity (Att, Val) -> +set_dexterity (Val, Att) -> Att#attributes{ dexterity = Val }. -set_intelligence (Att, Val) -> +set_intelligence (Val, Att) -> Att#attributes{ intelligence = Val }. -set_mind (Att, Val) -> +set_mind (Val, Att) -> Att#attributes{ mind = Val }. -set_speed (Att, Val) -> +set_speed (Val, Att) -> Att#attributes{ speed = Val }. -set_strength (Att, Val) -> +set_strength (Val, Att) -> Att#attributes{ strength = Val }. -- cgit v1.2.3-70-g09d2