feat: complete xxf-ch5 35 features migration, protocol bindings, and gate validation
- S1: Chinese locale pack, target HP/drop preview, elemental icons, exchange level display, item highlight, FOV settings, advanced skybox, GM warp. - S2: 5-page 225-slot inventory, seamless channel switch, wiki/drop query/chest preview. - S3: Auto-refine/attribute locks, sash combine/absorb, talisman/elemental stats, costume/mount/shining slots, changelook, soulbind, glove, quiver, magic reduction. - S4: Modern cube renewal, mythic dragon soul (6 grades/1152 slots), DS attr change, global rankings, dice system. - S5: Multi-token shop, offline private shop search, offline shop state machine, 64-bit gold alignment, Won dual currency exchange. - S6: Single account 5-character slot adaptive wire protocol, Wolfman profession & claw weapon/applies, Conqueror level & Sungma attributes, pets & 6th/7th attrs, battle pass & boss tracking. - Pass 42/42 platform gate test suites in scripts/port_gate.sh macos.
This commit is contained in:
@@ -54,6 +54,21 @@ class ConvertTests(unittest.TestCase):
|
||||
self.assertTrue(kept)
|
||||
self.assertEqual(server[14:16],['REAL_TIME_FIRST_USE',str(seconds)])
|
||||
self.assertEqual(server[24],'20113')
|
||||
def test_removal_and_dragon_charge_rows_keep_the_actual_handler_types(self):
|
||||
for v,sub,value in ((53998,'USE_CHANGE_ATTRIBUTE','0'),(53999,'USE_CHANGE_ATTRIBUTE','0'),(100001,'USE_TIME_CHARGE_PER','50'),(100002,'USE_TIME_CHARGE_FIX','86400')):
|
||||
server,client,kept=m.convert(row(v,'ITEM_USE',sub,values=(value,'0','0','0','0','0')),self.E,{v})
|
||||
self.assertTrue(kept);self.assertEqual(server[2:4],['ITEM_USE',sub]);self.assertEqual(server[24],value)
|
||||
self.assertEqual(client[1:3],[self.E['type'].index('ITEM_USE'),self.E['sub'][3].index(sub)])
|
||||
|
||||
def test_all_168_original_shop_offers_have_import_names(self):
|
||||
import json
|
||||
ledger=json.loads((HERE.parents[3]/'metin2-server/data/ava2-itemshop/completion-168.json').read_text())
|
||||
self.assertEqual(ledger['count'],168)
|
||||
self.assertEqual({r['vnum'] for r in ledger['products']}-m.names().keys(),set())
|
||||
for v in (39063,39064):
|
||||
server,client,kept=m.convert(row(v,'ITEM_USE','USE_SPECIAL'),self.E,{v})
|
||||
self.assertTrue(kept);self.assertEqual(server[2:4],['ITEM_USE','USE_SPECIAL'])
|
||||
|
||||
def test_weapon_kept_without_unknown_flags(self):
|
||||
s,c,kept=m.convert(row(320,'ITEM_WEAPON','WEAPON_SWORD','ANTI_MUDANG | ANTI_WOLFMAN','ITEM_TUNABLE','WEAR_WEAPON',
|
||||
('APPLY_ATT_SPEED','18','APPLY_ATTBONUS_BOSS','5','APPLY_NONE','0'),refine=('321','81')),self.E,{320})
|
||||
|
||||
Reference in New Issue
Block a user