summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-04-23 18:26:09 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-04-23 18:26:09 +0200 |
commit | e39c44eabaea7bafa58aa85593b80a6c55f907a3 (patch) | |
tree | a358e52c72285351fd099e512176048818df1f4f /src/shared/struct/shr_character.erl | |
parent | 459a954c58e1bf9cb7359b617713f2057ceb024f (diff) |
...
Diffstat (limited to 'src/shared/struct/shr_character.erl')
-rw-r--r-- | src/shared/struct/shr_character.erl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/shared/struct/shr_character.erl b/src/shared/struct/shr_character.erl index 133a6c2..09ad10b 100644 --- a/src/shared/struct/shr_character.erl +++ b/src/shared/struct/shr_character.erl @@ -56,6 +56,7 @@ ataxia_set_name/2, set_equipment/2, + ataxia_set_equipment/2, ataxia_set_equipment/3, set_extra_omnimods/2, @@ -139,6 +140,19 @@ set_equipment (EqRef, CharRef) when is_record(CharRef, shr_char_ref) -> CharRef#shr_char_ref{ equipment = EqRef }. -spec ataxia_set_equipment + (shr_equipment:type(), type()) -> {type(), ataxic:basic()}; + ( + shr_equipment:unresolved(), + unresolved() + ) + -> {unresolved(), ataxic:basic()}. +ataxia_set_equipment (Eq, Char) -> + { + set_equipment(Eq, Char), + ataxic:update_field(get_equipment_field(), ataxic:constant(Eq)) + }. + +-spec ataxia_set_equipment (shr_equipment:type(), ataxic:basic(), type()) -> {type(), ataxic:basic()}; ( shr_equipment:unresolved(), |