summaryrefslogtreecommitdiff
path: root/evolved.py
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2023-04-06 16:31:19 +0200
committerHoraK-FDF <horak-fdf@web.de>2023-04-06 16:31:19 +0200
commit32d5f433a835d60ce82c67540382989e2a0cadb3 (patch)
treeae0cc7cedf2f8ff1fe21a9a87f515018b9bfd3ea /evolved.py
parent43275bda27806beaf1cb83ff2985116dbb465121 (diff)
downloadtools-32d5f433a835d60ce82c67540382989e2a0cadb3.tar.gz
tools-32d5f433a835d60ce82c67540382989e2a0cadb3.tar.bz2
tools-32d5f433a835d60ce82c67540382989e2a0cadb3.tar.xz
tools-32d5f433a835d60ce82c67540382989e2a0cadb3.zip
evolved.py - 2 Hand Fix
Diffstat (limited to 'evolved.py')
-rwxr-xr-xevolved.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/evolved.py b/evolved.py
index 1dcac3b..cdee105 100755
--- a/evolved.py
+++ b/evolved.py
@@ -460,18 +460,18 @@ earray<interval_t, ItemLook, ItemLook::COUNT> aspd_base_0 //=
# Loc
enum class EPOS : uint16_t
{
- ZERO = 0x0000, # 0
-
- LEGS = 0x0001, # 1 EQP_HEAD_LOW
- WEAPON = 0x0002, # 2 EQP_HAND_R = 1 Hand, [EQP_HAND_L,EQP_HAND_R] = 2 Hand
- GLOVES = 0x0004, # 4 EQP_GARMENT
- CAPE = 0x0008, # 8 EQP_ACC_L (Isis and such)
- MISC1 = 0x0010, # 16 EQP_ARMOR (Amuletts, Mana pearl and such)
- SHIELD = 0x0020, # 32 EQP_HAND_L
- SHOES = 0x0040, # 64 EQP_SHOES
- MISC2 = 0x0080, # 128 EQP_ACC_R (Rings)
- HAT = 0x0100, # 256 EQP_HEAD_TOP
- TORSO = 0x0200, # 512 EQP_HEAD_MID
+ ZERO = 0x0000, # 0
+ LEGS = 0x0001, # 1 EQP_HEAD_LOW
+ WEAPON1H = 0x0002, # 2 EQP_HAND_R = 1 Hand
+ GLOVES = 0x0004, # 4 EQP_GARMENT
+ CAPE = 0x0008, # 8 EQP_ACC_L (Isis and such)
+ MISC1 = 0x0010, # 16 EQP_ARMOR (Amuletts, Mana pearl and such)
+ SHIELD = 0x0020, # 32 EQP_HAND_L
+ WEAPON2H = 0x0022, # 34 [EQP_HAND_L,EQP_HAND_R] = 2 Hand (2(EQP_HAND_R)+32(EQP_HAND_L))
+ SHOES = 0x0040, # 64 EQP_SHOES
+ MISC2 = 0x0080, # 128 EQP_ACC_R (Rings)
+ HAT = 0x0100, # 256 EQP_HEAD_TOP
+ TORSO = 0x0200, # 512 EQP_HEAD_MID
ARROW = 0x8000, # 32768 EQP_AMMO
};
@@ -521,8 +521,10 @@ def write_item(i, f):
## Loc
if i.loc == "EQP_HEAD_LOW":
loc="1"
- elif i.loc == "[EQP_HAND_L,EQP_HAND_R]" or i.loc == "EQP_HAND_R":
+ elif i.loc == "EQP_HAND_R":
loc="2"
+ elif i.loc == "[EQP_HAND_L,EQP_HAND_R]":
+ loc="34"
elif i.loc == "EQP_GARMENT":
loc="4"
elif i.loc == "EQP_ACC_L":