Merge main into feature/ava2-unlock
Conflicts resolved by keeping both sides: AVA2 attribute lock materials (50348/50349) and battle pass tickets from main alongside the unlock branch's costume enchants, talismans and new rings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -107,8 +107,17 @@ class ConvertTests(unittest.TestCase):
|
||||
del files['d:/ymir work/effect/etc/buff/light010.dds']
|
||||
with self.assertRaises(SystemExit):m.effect_files(files)
|
||||
|
||||
def test_lock_materials_and_monthly_tickets(self):
|
||||
for vnum in (50348,50349):
|
||||
server,client,kept=m.convert(row(vnum,'ITEM_USE','USE_CHANGE_ATTRIBUTE',flags='ITEM_STACKABLE'),self.E,set())
|
||||
self.assertTrue(kept);self.assertEqual(server[2:4],['ITEM_USE','USE_CHANGE_ATTRIBUTE'])
|
||||
for month in range(1,13):
|
||||
server,client,kept=m.convert(row(25149+month,'ITEM_QUEST','QUEST_NONE',values=(str(month),)+('0',)*5),self.E,set())
|
||||
self.assertTrue(kept);self.assertEqual(server[24],str(month));self.assertEqual(client[23],month)
|
||||
|
||||
|
||||
def test_names_cover_ranges(self):
|
||||
n=m.names();self.assertEqual(len(n),514+6*200+4*9);self.assertEqual(n[54100],'武器外观强化石')
|
||||
n=m.names();self.assertEqual(len(n),514+6*200+4*9+14);self.assertEqual(n[54100],'武器外观强化石')
|
||||
self.assertEqual([n[v] for v in (21210,21219,21279)],['暗龙铠甲+0','暗龙铠甲+9','神龙铠甲+9'])
|
||||
self.assertTrue(all(len(v.encode('gbk'))<=24 for v in n.values()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user