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:
@@ -73,7 +73,8 @@ DESC_SUB={('ITEM_USE','USE_CHANGE_ATTRIBUTE'):'拖到未穿戴的对应时装上
|
||||
('ITEM_COSTUME','COSTUME_MOUNT_SKIN'):'坐骑外观。需先装备坐骑时装,装备后改变坐骑外观。',
|
||||
('ITEM_ARMOR','ARMOR_PENDANT'):'护符。装备在护符栏,对相应属性的怪物伤害提高(强化等级 +1 = +1%)。可用护符强化道具重洗属性,用护符加持道具追加属性(最多 5 条)。'}
|
||||
# Per-vnum descriptions (override DESC_SUB).
|
||||
DESC_VNUM={53996:'拖到未穿戴的护符上,重新随机全部属性。',71302:'拖到未穿戴的护符上,重新随机全部属性。',
|
||||
DESC_VNUM={53998:'拖到未穿戴的时装上,移除最后一条普通属性,保留稀有属性。',53999:'拖到未穿戴的时装上,移除全部普通属性,保留稀有属性。',
|
||||
100001:'拖到龙魂石上,补充总使用时间的50%,不超过时间上限。',100002:'拖到龙魂石上,补充24小时使用时间,不超过时间上限。',53996:'拖到未穿戴的护符上,重新随机全部属性。',71302:'拖到未穿戴的护符上,重新随机全部属性。',
|
||||
53997:'拖到未穿戴的护符上,追加一条属性(最多 5 条)。',71301:'拖到未穿戴的护符上,追加一条属性(最多 5 条)。'}
|
||||
# Mount system (P5): races of the mount skins that 203 and the 40250 client lack -> (zh name, npc_mount folder).
|
||||
# Their AVA2 mob_proto rows go to mobs-server.tsv, the whole model folder into the pack; the client's mt_mount
|
||||
@@ -132,8 +133,10 @@ def convert(cols,E,imported):
|
||||
kept=t in KEEP_TYPES or (t,st) in KEEP_SUBTYPES or ((t,st)==('ITEM_USE','USE_CHANGE_ATTRIBUTE') and
|
||||
any(lo<=int(c[0])<=hi for lo,hi in ENCHANT_KEEP)) or (
|
||||
(t,st) in (('ITEM_USE','USE_CHANGE_ATTRIBUTE'),('ITEM_USE','USE_ADD_ATTRIBUTE')) and int(c[0]) in PENDANT_SCROLLS) or (
|
||||
int(c[0]) in (53998,53999) and (t,st)==('ITEM_USE','USE_CHANGE_ATTRIBUTE')) or (
|
||||
int(c[0]) in (100001,100002) and t=='ITEM_USE' and st in ('USE_TIME_CHARGE_PER','USE_TIME_CHARGE_FIX')) or (
|
||||
int(c[0]) in (50348,50349) and (t,st)==('ITEM_USE','USE_CHANGE_ATTRIBUTE')) or (
|
||||
int(c[0])==70002 and (t,st)==('ITEM_USE','USE_SPECIAL'))
|
||||
int(c[0]) in (70002,39063,39064) and (t,st)==('ITEM_USE','USE_SPECIAL'))
|
||||
if t=='ITEM_COSTUME' and st in ('COSTUME_BODY','COSTUME_HAIR') and int(c[0]) in (41119,41120,41121,41122,45005,45006,45057,45058):kept=True
|
||||
if stone_lock_reason(c,E):kept=False
|
||||
anti=tokens(c[5]);flags=tokens(c[6])
|
||||
@@ -331,14 +334,15 @@ def prepare(ava,proto_reader,locale,output,tool,packer,wrap=lambda text:text):
|
||||
if not target.exists():shutil.copy2(files[q],target);copied+=1
|
||||
# Native AVA2 BattlePassEx, event manager, encyclopedia and drop finder.
|
||||
native_prefixes=('d:/ymir work/ui/game/ishop/','d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/',
|
||||
'd:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/worldard/')
|
||||
'd:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/ui/game/offlineshop/',
|
||||
'd:/ymir work/ui/game/myshop_deco/','uiscript/offlineshop/','d:/ymir work/worldard/')
|
||||
for q in files:
|
||||
if q.startswith(native_prefixes):
|
||||
target=assets/q;target.parent.mkdir(parents=True,exist_ok=True)
|
||||
if not target.exists():shutil.copy2(files[q],target);copied+=1
|
||||
native_layout=files.get('d:/ymir work/worldard/dropitem.py')
|
||||
if native_layout:
|
||||
copy_ui_literal_assets(native_layout.read_text(encoding='cp1254'),assets,files)
|
||||
for name,native_layout in files.items():
|
||||
if name=='d:/ymir work/worldard/dropitem.py' or name.startswith('uiscript/offlineshop/') and name.endswith('.py'):
|
||||
copy_ui_literal_assets(native_layout.read_text(encoding='cp1254'),assets,files)
|
||||
for source in (Path(__file__).resolve().parents[3]/'data/ava2-native/wiki').glob('*.txt'):
|
||||
target=assets/'locale/zh/wiki'/source.name
|
||||
target.parent.mkdir(parents=True,exist_ok=True);target.write_bytes(source.read_text().encode('gbk'))
|
||||
|
||||
Reference in New Issue
Block a user