summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-04-26 15:05:44 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-04-26 15:05:44 +0200 |
commit | ec6eec260d6383ae948505c3d42b3055ae3dd94c (patch) | |
tree | 1d9ab2b09ab0a534fc6c09b62b940d9f1c7e139f /src/shared/struct/inventory/shr_glyph_board.erl.m4 | |
parent | 7d428bac2f9d62c5a0e704eb32be869c10fec72e (diff) |
Makes Dialyzer validate shared & battle.
Diffstat (limited to 'src/shared/struct/inventory/shr_glyph_board.erl.m4')
-rw-r--r-- | src/shared/struct/inventory/shr_glyph_board.erl.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shared/struct/inventory/shr_glyph_board.erl.m4 b/src/shared/struct/inventory/shr_glyph_board.erl.m4 index c2128a9..3324997 100644 --- a/src/shared/struct/inventory/shr_glyph_board.erl.m4 +++ b/src/shared/struct/inventory/shr_glyph_board.erl.m4 @@ -58,7 +58,7 @@ list(shr_glyph:type()), list(integer()) ) - -> ({'ok', shr_omnimods:type()} | 'error'). + -> ('error' | {'ok', shr_omnimods:type()}). get_omnimods_with_glyphs_internals (Omnimods, [], []) -> {ok, Omnimods}; get_omnimods_with_glyphs_internals (_Omnimods, [], _) -> @@ -102,12 +102,15 @@ default () -> from_id(<<"0">>). list(shr_glyph:type()), type() ) - -> ({'ok', shr_omnimods:type()} | 'error'). + -> shr_omnimods:type(). get_omnimods_with_glyphs (Glyphs, GlyphBoard) -> BoardOmnimods = GlyphBoard#glyph_board.omnimods, BoardSlots = GlyphBoard#glyph_board.slots, - get_omnimods_with_glyphs_internals(BoardOmnimods, Glyphs, BoardSlots). + {ok, Omnimods} = + get_omnimods_with_glyphs_internals(BoardOmnimods, Glyphs, BoardSlots), + + Omnimods. -spec default_id () -> id(). default_id () -> <<"0">>. |