fix(奖励): 修复等级奖励类型获取逻辑并添加空值检查
- 调整 getLevelRewardType 函数,仅在特定等级返回天赋类型,其他等级返回 null - 在 MissionComp.call_cards 中添加奖励类型空值检查,避免无效调用 - 为多个预制体组件统一添加 debugMode 默认值
This commit is contained in:
@@ -8780,6 +8780,7 @@
|
||||
"__prefab": {
|
||||
"__id__": 400
|
||||
},
|
||||
"debugMode": false,
|
||||
"card1": {
|
||||
"__id__": 323
|
||||
},
|
||||
@@ -17261,6 +17262,7 @@
|
||||
"__prefab": {
|
||||
"__id__": 768
|
||||
},
|
||||
"debugMode": false,
|
||||
"coins_node": {
|
||||
"__id__": 657
|
||||
},
|
||||
@@ -17309,6 +17311,7 @@
|
||||
"__prefab": {
|
||||
"__id__": 772
|
||||
},
|
||||
"debugMode": false,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
@@ -38848,6 +38851,7 @@
|
||||
"__prefab": {
|
||||
"__id__": 1759
|
||||
},
|
||||
"debugMode": false,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user