summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-09-06 17:35:01 +0200
committernsensfel <SpamShield0@noot-noot.org>2019-09-06 17:35:01 +0200
commit9a3e0fb6c22d54bbd445e2d792a7554015acacad (patch)
tree0defd22c936bbdbcc0f6707ece15ff5e87ea10e6 /src/shared/struct/inventory
parent621505c168ec61194f3c495ec8c2d6cbbfdab781 (diff)
Removes omnimods from glyph boards.
Diffstat (limited to 'src/shared/struct/inventory')
-rw-r--r--src/shared/struct/inventory/shr_glyph_board.erl.m413
1 files changed, 6 insertions, 7 deletions
diff --git a/src/shared/struct/inventory/shr_glyph_board.erl.m4 b/src/shared/struct/inventory/shr_glyph_board.erl.m4
index 3324997..2d3311e 100644
--- a/src/shared/struct/inventory/shr_glyph_board.erl.m4
+++ b/src/shared/struct/inventory/shr_glyph_board.erl.m4
@@ -11,7 +11,6 @@
{
id :: id(),
name :: binary(),
- omnimods :: shr_omnimods:type(),
slots :: list(integer())
}
).
@@ -35,7 +34,6 @@
[
get_id/1,
get_name/1,
- get_omnimods/1,
get_slots/1
]
).
@@ -82,9 +80,6 @@ get_id (GlyphBoard) -> GlyphBoard#glyph_board.id.
-spec get_name (type()) -> binary().
get_name (GlyphBoard) -> GlyphBoard#glyph_board.name.
--spec get_omnimods (type()) -> shr_omnimods:type().
-get_omnimods (GlyphBoard) -> GlyphBoard#glyph_board.omnimods.
-
-spec get_slots (type()) -> list(non_neg_integer()).
get_slots (GlyphBoard) -> GlyphBoard#glyph_board.slots.
@@ -104,11 +99,15 @@ default () -> from_id(<<"0">>).
)
-> shr_omnimods:type().
get_omnimods_with_glyphs (Glyphs, GlyphBoard) ->
- BoardOmnimods = GlyphBoard#glyph_board.omnimods,
BoardSlots = GlyphBoard#glyph_board.slots,
{ok, Omnimods} =
- get_omnimods_with_glyphs_internals(BoardOmnimods, Glyphs, BoardSlots),
+ get_omnimods_with_glyphs_internals
+ (
+ shr_omnimods:new(),
+ Glyphs,
+ BoardSlots
+ ),
Omnimods.