feat: implement costume weapon, sash skin, shining slots and enchants

This commit is contained in:
shen
2026-10-19 23:58:56 -07:00
parent f8bb455d9f
commit d63781e5fd
10 changed files with 299 additions and 110 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ assert 'IsCostumeEnchant' not in source('port_switchbot.cpp') and 's_adwNormal[]
assert 'port_costume_attr.cpp' in source('Makefile')
port=source('port_costume_attr.cpp')
for text in ('COSTUME_ENCHANT_VNUM_MIN = 54001','COSTUME_ENCHANT_VNUM_MAX = 54267','COSTUME_ENCHANT_MAX_ATTR = 3',
'case COSTUME_BODY:\n\t\t\treturn 1;','case COSTUME_HAIR:\n\t\t\treturn 2;','case COSTUME_MOUNT_SKIN:\n\t\t\treturn 4;',
'case COSTUME_BODY:','case COSTUME_HAIR:','case COSTUME_WEAPON:','case COSTUME_MOUNT_SKIN:','case COSTUME_NEW_SASH:','case SHINING_WEAPON:',
'GetValue(2) & (1 << flag)','item->SetCount(item->GetCount() - 1);'):
assert text in port,text
codes=('target','none','equipped','full','has','done')