summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/struct/character.erl')
-rw-r--r--src/struct/character.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/struct/character.erl b/src/struct/character.erl
index 3ee9a31..bf6e046 100644
--- a/src/struct/character.erl
+++ b/src/struct/character.erl
@@ -3,7 +3,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--opaque id() :: integer().
+-opaque id() :: non_neg_integer().
-record
(
@@ -16,7 +16,6 @@
portrait :: binary(),
attributes :: attributes:struct(),
statistics :: statistics:struct(),
- glyphs :: list(glyph:id()),
weapon_ids :: {weapon:id(), weapon:id()}
}
).
@@ -39,7 +38,6 @@
get_attributes/1,
get_statistics/1,
get_weapon_ids/1,
- get_glyphs/1,
set_weapon_ids/2,
set_statistics/2
@@ -82,9 +80,6 @@ get_attributes (Char) -> Char#character.attributes.
-spec get_weapon_ids (struct()) -> {weapon:id(), weapon:id()}.
get_weapon_ids (Char) -> Char#character.weapon_ids.
--spec get_glyphs (struct()) -> list(glyph:id()).
-get_glyphs (Char) -> Char#character.glyphs.
-
-spec get_statistics (struct()) -> statistics:struct().
get_statistics (Char) -> Char#character.statistics.
@@ -134,6 +129,5 @@ random (ID, OwnerID) ->
portrait = IDAsBinaryString,
attributes = Attributes,
weapon_ids = WeaponIDs,
- glyphs = [],
statistics = Statistics
}.