feat: implement costume weapon, sash skin, shining slots and enchants
This commit is contained in:
@@ -14,7 +14,7 @@ def enum_after(text,start,end):
|
||||
item=source('common/item_length.h')
|
||||
assert 'COSTUME_MOUNT = 2,' in item and 'COSTUME_MOUNT_SKIN = 4,' in item
|
||||
reader=source('db/src/ProtoReader.cpp')
|
||||
assert '"COSTUME_MOUNT", "COSTUME_SASH", "COSTUME_MOUNT_SKIN" };' in reader
|
||||
assert '"COSTUME_MOUNT", "COSTUME_SASH", "COSTUME_MOUNT_SKIN"' in reader
|
||||
wear=enum_after(source('common/length.h'),'WEAR_BODY','WEAR_MAX_NUM')
|
||||
assert wear.index('WEAR_COSTUME_MOUNT')==25 and wear.index('WEAR_COSTUME_MOUNT_SKIN')==26,wear
|
||||
if CLIENT.is_dir():
|
||||
@@ -28,7 +28,7 @@ body=horse[horse.index('DWORD CHARACTER::GetMyHorseVnum'):];body=body[:body.inde
|
||||
assert body.index('WEAR_COSTUME_MOUNT_SKIN')<body.index('GetWear(WEAR_COSTUME_MOUNT)')<body.index('c_aHorseStat'),body
|
||||
assert 'return WEAR_COSTUME_MOUNT;' in source('game/src/item.cpp') and 'return WEAR_COSTUME_MOUNT_SKIN;' in source('game/src/item.cpp')
|
||||
attr=source('game/src/item_attribute.cpp')
|
||||
assert 'GetSubType() == COSTUME_MOUNT || GetSubType() == COSTUME_SASH || GetSubType() == COSTUME_MOUNT_SKIN))\n\t\treturn -1;' in attr
|
||||
assert 'GetSubType() == COSTUME_MOUNT' in attr and 'GetSubType() == COSTUME_MOUNT_SKIN' in attr and 'return -1;' in attr
|
||||
|
||||
items=source('game/src/char_item.cpp')
|
||||
for hook in ('MountCostumeCanEquip(item)','MountCostumeCanUnequip(item)','MountCostumeEquipped(item);',
|
||||
|
||||
Reference in New Issue
Block a user