From 1afb69a11b0e291c7bfd6c24bdd8e55742e61889 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Wed, 5 Jun 2019 11:24:52 +0200 Subject: [Broken] Changing how actions are handled... --- src/shared/struct/shr_character.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/shared') diff --git a/src/shared/struct/shr_character.erl b/src/shared/struct/shr_character.erl index 68e6cb6..87a9be8 100644 --- a/src/shared/struct/shr_character.erl +++ b/src/shared/struct/shr_character.erl @@ -397,14 +397,15 @@ resolve (LocalOmnimods, CharRef) -> extra_omnimods = LocalOmnimods }. --spec to_unresolved (type()) -> unresolved(). -to_unresolved (Char) -> +-spec to_unresolved (either()) -> unresolved(). +to_unresolved (Char) when is_record(Char, shr_char)-> #shr_char_ref { name = Char#shr_char.name, equipment = shr_equipment:to_unresolved(Char#shr_char.equipment), is_using_secondary = Char#shr_char.is_using_secondary - }. + }; +to_unresolved (CharRef) when is_record(CharRef, shr_char_ref) -> CharRef. -spec decode (map()) -> unresolved(). decode (Map) -> -- cgit v1.2.3-70-g09d2