summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-04-26 15:05:44 +0200
committernsensfel <SpamShield0@noot-noot.org>2019-04-26 15:05:44 +0200
commitec6eec260d6383ae948505c3d42b3055ae3dd94c (patch)
tree1d9ab2b09ab0a534fc6c09b62b940d9f1c7e139f /src/shared/struct/shr_character.erl
parent7d428bac2f9d62c5a0e704eb32be869c10fec72e (diff)
Makes Dialyzer validate shared & battle.
Diffstat (limited to 'src/shared/struct/shr_character.erl')
-rw-r--r--src/shared/struct/shr_character.erl24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/shared/struct/shr_character.erl b/src/shared/struct/shr_character.erl
index d5dec75..ea8e857 100644
--- a/src/shared/struct/shr_character.erl
+++ b/src/shared/struct/shr_character.erl
@@ -164,15 +164,15 @@ set_equipment (Eq, Char) when is_record(Char, shr_char) ->
NewAttributes =
shr_omnimods:apply_to_attributes
(
- shr_attributes:default(),
- NewOmnimods
+ NewOmnimods,
+ shr_attributes:default()
),
NewStatistics =
shr_omnimods:apply_to_statistics
(
- shr_statistics:new_raw(NewAttributes),
- NewOmnimods
+ NewOmnimods,
+ shr_statistics:new_raw(NewAttributes)
),
Char#shr_char
@@ -239,15 +239,15 @@ switch_weapons (Char) when is_record(Char, shr_char) ->
NewAttributes =
shr_omnimods:apply_to_attributes
(
- shr_attributes:default(),
- NewOmnimods
+ NewOmnimods,
+ shr_attributes:default()
),
NewStatistics =
shr_omnimods:apply_to_statistics
(
- shr_statistics:new_raw(NewAttributes),
- NewOmnimods
+ NewOmnimods,
+ shr_statistics:new_raw(NewAttributes)
),
Char#shr_char
@@ -325,15 +325,15 @@ set_extra_omnimods (O, Char) ->
NewAttributes =
shr_omnimods:apply_to_attributes
(
- shr_attributes:default(),
- NewOmnimods
+ NewOmnimods,
+ shr_attributes:default()
),
NewStatistics =
shr_omnimods:apply_to_statistics
(
- shr_statistics:new_raw(NewAttributes),
- NewOmnimods
+ NewOmnimods,
+ shr_statistics:new_raw(NewAttributes)
),
Char#shr_char