summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-04-27 10:36:35 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-04-27 14:09:22 -0700
commit7a9cee6ac24f5cfaaa73c97e5fef733eadba09ad (patch)
tree77120b9a83ceda3fa845cad457199de62a0a94b7 /src/common
parentd18f5bdb682a1d9c6e3a191926bfd46d36e813c1 (diff)
downloadtmwa-7a9cee6ac24f5cfaaa73c97e5fef733eadba09ad.tar.gz
tmwa-7a9cee6ac24f5cfaaa73c97e5fef733eadba09ad.tar.bz2
tmwa-7a9cee6ac24f5cfaaa73c97e5fef733eadba09ad.tar.xz
tmwa-7a9cee6ac24f5cfaaa73c97e5fef733eadba09ad.zip
Enumize ItemLook
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mmo.hpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/common/mmo.hpp b/src/common/mmo.hpp
index 34f3047..32d4285 100644
--- a/src/common/mmo.hpp
+++ b/src/common/mmo.hpp
@@ -131,6 +131,28 @@ constexpr ATTR ATTRs[6] =
ATTR::LUK,
};
+enum class ItemLook : uint16_t
+{
+ NONE = 0,
+ BLADE = 1, // or some other common weapons
+ _2,
+ SETZER_AND_SCYTHE = 3,
+ _6,
+ STAFF = 10,
+ BOW = 11,
+ _13 = 13,
+ _14 = 14,
+ _16 = 16,
+ SINGLE_HANDED_COUNT = 17,
+
+ DUAL_BLADE = 0x11,
+ DUAL_2 = 0x12,
+ DUAL_6 = 0x13,
+ DUAL_12 = 0x14,
+ DUAL_16 = 0x15,
+ DUAL_26 = 0x16,
+};
+
struct mmo_charstatus
{
int char_id;
@@ -147,7 +169,8 @@ struct mmo_charstatus
short hair, hair_color, clothes_color;
int party_id;
- short weapon, shield;
+ ItemLook weapon;
+ short shield;
short head_top, head_mid, head_bottom;
char name[24];