fix(游戏逻辑): 修复英雄初始等级和奖励触发逻辑
将SingletonModuleComp中英雄初始等级从0改为1,避免可能的逻辑错误。在MissionComp中重构奖励触发逻辑,将call_cards方法提取为独立函数并在to_fight中调用,确保战斗开始时正确触发当前等级的奖励。
This commit is contained in:
@@ -109,7 +109,7 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
path:'',
|
||||
as:0,
|
||||
type:0,
|
||||
lv:0,
|
||||
lv:1,
|
||||
exp:0,
|
||||
exp_max:100,
|
||||
exp_pre:0,
|
||||
|
||||
Reference in New Issue
Block a user