summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/roster-editor/src/Struct/Model.elm')
-rw-r--r--src/roster-editor/src/Struct/Model.elm13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/roster-editor/src/Struct/Model.elm b/src/roster-editor/src/Struct/Model.elm
index 0f49d2f..b205004 100644
--- a/src/roster-editor/src/Struct/Model.elm
+++ b/src/roster-editor/src/Struct/Model.elm
@@ -56,6 +56,7 @@ type alias Type =
glyph_boards: (Dict.Dict Struct.GlyphBoard.Ref Struct.GlyphBoard.Type),
portraits: (Dict.Dict Struct.Portrait.Ref Struct.Portrait.Type),
error: (Maybe Struct.Error.Type),
+ used_indices: (Array.Array Bool),
player_id: String,
roster_id: String,
edited_char: (Maybe Struct.Character.Type),
@@ -142,6 +143,18 @@ new flags =
then "0"
else flags.user_id
),
+ used_indices =
+ (Array.repeat
+ (
+ case (Struct.Flags.maybe_get_param "s" flags) of
+ Nothing -> 0
+ (Just "s") -> 8
+ (Just "m") -> 16
+ (Just "l") -> 24
+ (Just _) -> 0
+ )
+ False
+ ),
session_token = flags.token,
edited_char = Nothing,
inventory = (Struct.Inventory.empty),