feat(升级奖励): 修改属性选择触发逻辑,改为通过卡片奖励触发
移除英雄升级时自动触发属性选择事件,改为在特定等级通过奖励卡片触发。调整 CardSet 配置,在更多等级提供属性卡片奖励,使属性成长更符合游戏节奏。
This commit is contained in:
@@ -37,7 +37,7 @@ export class MissionComp extends CCComp {
|
||||
time_node:Node = null!
|
||||
@property(Node)
|
||||
binfo_node:Node = null!
|
||||
|
||||
|
||||
FightTime:number = FightSet.FiIGHT_TIME
|
||||
/** 剩余复活次数 */
|
||||
revive_times: number = 1;
|
||||
@@ -105,7 +105,7 @@ export class MissionComp extends CCComp {
|
||||
onLevelUp(event: string, args: any) {
|
||||
mLogger.log(this.debugMode, 'MissionComp', ` 英雄升级到 ${args.lv} 级!`);
|
||||
// 默认每级都触发属性选择
|
||||
oops.message.dispatchEvent(GameEvent.AttrSelect);
|
||||
// oops.message.dispatchEvent(GameEvent.AttrSelect);
|
||||
this.call_cards(args.lv)
|
||||
}
|
||||
call_cards(lv:number){
|
||||
@@ -126,6 +126,9 @@ export class MissionComp extends CCComp {
|
||||
case CardType.Potion:
|
||||
oops.message.dispatchEvent(GameEvent.ShopOpen);
|
||||
break;
|
||||
case CardType.Attr:
|
||||
oops.message.dispatchEvent(GameEvent.AttrSelect);
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user