feat: add point currency and stage extended shop items

Rename shop currency and vouchers to points, synchronize the wiki catalogue, and display point rewards. Add wear40 item metadata transport and pet identity accessors; stage sixteen timed mounts and appearance items with AVA2 model registration.

Include build and sbtest acceptance evidence. Remaining shop systems are unfinished and are not enabled or deployed. Wear40 requires the matching server migration and mt20261022 client.
This commit is contained in:
shen
2026-10-19 18:30:19 -07:00
parent 7cba54f271
commit 6661b17084
25 changed files with 336 additions and 35 deletions
+15
View File
@@ -45,6 +45,8 @@ def stone_lock_reason(cols, E):
# Models of the armor shapes the 40250 race msm lack (registered by the client's mt_shapes script): shape ->
# model stem ('%s' = race); RACE_PATHS = the ShapeData PathName of each race msm.
ARMOR_SHAPES={32:'%s_7_1'}
SHOP_ARMOR_SHAPES={40062:'%s_salsa1',40063:'%s_springwear1'}
SHOP_HAIRS={161:'hair/hair_16_1',191:'hair/hair_19_1'}
RACE_PATHS={'warrior':('pc','pc2'),'assassin':('pc2','pc'),'sura':('pc','pc2'),'shaman':('pc2','pc')} # (male, female)
# Kept with their 40250 meaning; everything else becomes ITEM_NONE (see module doc).
KEEP_TYPES={'ITEM_MATERIAL','ITEM_QUEST','ITEM_GIFTBOX','ITEM_NONE','ITEM_TREASURE_BOX','ITEM_TREASURE_KEY','ITEM_NEW_RINGS'}
@@ -65,6 +67,8 @@ SASH_LOCALE={'locale/en/ui/acce/acce_combine.tga':'locale/zh/ui/acce/acce_combin
# target; AVA2 apply numbers in value0 equal 203's (P2 aligned 139/140). The rest stay locked.
ENCHANT_KEEP=((54001,54078),(54124,54174))
DESC_SUB={('ITEM_USE','USE_CHANGE_ATTRIBUTE'):'拖到未穿戴的对应时装上,附加一条固定属性(每件时装最多 3 条,不能重复)。',
('ITEM_COSTUME','COSTUME_BODY'):'时装。装备后改变角色服装外观,附加属性在装备期间生效。',
('ITEM_COSTUME','COSTUME_HAIR'):'发型时装。装备后改变角色发型或头饰,附加属性在装备期间生效。',
('ITEM_COSTUME','COSTUME_MOUNT'):'坐骑时装。装备后召唤该坐骑(需要已拥有马匹),装备期间属性生效。',
('ITEM_COSTUME','COSTUME_MOUNT_SKIN'):'坐骑外观。需先装备坐骑时装,装备后改变坐骑外观。',
('ITEM_ARMOR','ARMOR_PENDANT'):'护符。装备在护符栏,对相应属性的怪物伤害提高(强化等级 +1 = +1%)。可用护符强化道具重洗属性,用护符加持道具追加属性(最多 5 条)。'}
@@ -110,6 +114,12 @@ def names():
for base,label in ((85001,'领主'),(85005,'大师'),(85011,'王朝'),(85015,'皇家')):
for grade,suffix in enumerate(('普通','精致','高级','个人')):
result[base+grade]=label+'披风('+suffix+')'
result.update({41119:'萨尔萨礼服(男)',41120:'萨尔萨舞裙(女)',
41121:'绅士礼服(男)',41122:'鸡尾酒礼裙(女)',
45005:'莫西干发型(男)',45006:'刘海发型(女)',
45057:'博加特礼帽(男)',45058:'花饰发型(女)'})
for base,label in ((71500,'狮子'),(71503,'野猪'),(71506,'狼'),(71509,'老虎')):
result[base]=label+'封印(7天)';result[base+1]=label+'封印(30天)'
for v in sorted(STONE_IDS):result[v]=stone_name(v)
result.update({50348:'属性锁定符',50349:'属性解锁符',70002:'第三只手'})
for month in range(1,13):result[25149+month]='%d月战令票'%month
@@ -124,6 +134,7 @@ def convert(cols,E,imported):
(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 (50348,50349) and (t,st)==('ITEM_USE','USE_CHANGE_ATTRIBUTE')) or (
int(c[0])==70002 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])
if 'ITEM_STACKABLE' in anti:anti.remove('ITEM_STACKABLE');flags.append('ITEM_STACKABLE')
@@ -160,6 +171,10 @@ def shape_models():
for d in dict.fromkeys(dirs):
for stem in ARMOR_SHAPES.values():
out+=['d:/ymir work/%s/%s/%s%s'%(d,race,stem%race,e) for e in ('.gr2','.dds','_lod_01.gr2','_lod_02.gr2','_lod_03.gr2')]
for stem in SHOP_ARMOR_SHAPES.values():
out+=['d:/ymir work/%s/%s/%s%s'%(d,race,stem%race,e) for e in ('.gr2','.dds')]
for stem in SHOP_HAIRS.values():
out+=['d:/ymir work/%s/%s/%s%s'%(d,race,stem,e) for e in ('.gr2','.dds')]
return out
def effect_files(files):