From b70ac53f82c8f3bee15c2273a4b69bc4db7771db Mon Sep 17 00:00:00 2001 From: panw Date: Fri, 6 Feb 2026 15:39:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8D=87=E7=BA=A7=E5=A5=96=E5=8A=B1):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B1=9E=E6=80=A7=E9=80=89=E6=8B=A9=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E9=80=BB=E8=BE=91=EF=BC=8C=E6=94=B9=E4=B8=BA=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=8D=A1=E7=89=87=E5=A5=96=E5=8A=B1=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除英雄升级时自动触发属性选择事件,改为在特定等级通过奖励卡片触发。调整 CardSet 配置,在更多等级提供属性卡片奖励,使属性成长更符合游戏节奏。 --- assets/script/game/common/config/CardSet.ts | 16 ++++++++++++++++ assets/script/game/map/MissionComp.ts | 7 +++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/assets/script/game/common/config/CardSet.ts b/assets/script/game/common/config/CardSet.ts index cd7174c9..92092a63 100644 --- a/assets/script/game/common/config/CardSet.ts +++ b/assets/script/game/common/config/CardSet.ts @@ -12,8 +12,24 @@ import { CardType, CardKind } from "./GameSet"; export function getLevelRewardType(level: number): CardType { switch (level) { case 2: return CardType.Talent; + case 3: return CardType.Attr; + case 4: return CardType.Attr; case 5: return CardType.Talent; + case 6: return CardType.Attr; + case 7: return CardType.Attr; + case 8: return CardType.Attr; + case 9: return CardType.Attr; case 10: return CardType.Talent; + case 11: return CardType.Attr; + case 12: return CardType.Attr; + case 13: return CardType.Attr; + case 14: return CardType.Attr; + case 15: return CardType.Talent; + case 16: return CardType.Attr; + case 17: return CardType.Attr; + case 18: return CardType.Attr; + case 19: return CardType.Attr; + case 20: return CardType.Attr; default: return null } diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index bc71e5e5..af3c3b76 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -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; } }