feat(mission): 新增装备和商店刷新功能,重构抽卡逻辑

1. 新增按权重抽取装备卡的工具函数,支持去重后补齐
2. 重构任务界面卡牌组件:
   - 拆分英雄/装备/商店面板节点绑定,调整属性顺序
   - 新增装备和商店刷新按钮的交互逻辑
   - 替换原固定加载装备/商品列表为按权重随机抽取3个
3. 重构技能卡牌组件,改为技能商店卡项实现,简化原有逻辑
4. 修复prefab中的节点属性偏移和引用关系
This commit is contained in:
panFD
2026-07-25 21:44:17 +08:00
parent 9c520cf917
commit ffafefcc72
4 changed files with 393 additions and 387 deletions

View File

@@ -7949,7 +7949,7 @@
"propertyPath": [
"_left"
],
"value": 480
"value": 480.0000000000002
},
{
"__type__": "cc.TargetInfo",
@@ -7965,7 +7965,7 @@
"propertyPath": [
"_right"
],
"value": 10
"value": 9.999999999999773
},
{
"__type__": "CCPropertyOverrideInfo",
@@ -20978,20 +20978,20 @@
"__id__": 853
},
"closeEquips": null,
"showSkills": {
"__id__": 885
},
"closeSkills": null,
"equipsPanNode": {
"__id__": 315
},
"equipsBoxNode": {
"__id__": 374
"__id__": 400
},
"equipPrefab": {
"__uuid__": "f30f91b1-3100-4d9e-befb-cdde5f86e6f8",
"__expectedType__": "cc.Prefab"
},
"showSkills": {
"__id__": 885
},
"closeSkills": null,
"showShop": {
"__id__": 914
},
@@ -20999,8 +20999,13 @@
"shopPanNode": {
"__id__": 637
},
"shopBoxNode": null,
"itemPrefab": null,
"shopBoxNode": {
"__id__": 678
},
"itemPrefab": {
"__uuid__": "abae16b3-c2a2-4971-95b1-fc121f769554",
"__expectedType__": "cc.Prefab"
},
"cards_up": null,
"coins_node": {
"__id__": 129
@@ -21020,6 +21025,8 @@
},
"skill_ad_refresh": null,
"skill_refresh_num_node": null,
"equip_refresh": null,
"shop_refresh": null,
"_id": ""
},
{