From 5c8122716955aecaf017c63991ddabf3f22a733e Mon Sep 17 00:00:00 2001 From: pan Date: Wed, 3 Jun 2026 10:24:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(mission=20economy):=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E5=87=BA=E5=94=AE=E9=87=91=E5=B8=81=E5=8A=A0=E6=88=90?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除冗余的SellBonus字段计算,将出售返还加成合并到SellGold口径中,同时清理废弃的技能配置项和注释。 --- assets/script/game/common/config/SkillSet.ts | 4 ++-- assets/script/game/map/MissionEconomy.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index 91463348..5822d8eb 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -368,9 +368,9 @@ export enum FieldSkillType { HeroCritDamage = 11, // 英雄暴击伤害加成 HeroSpeed = 12, // 英雄攻击速度加成 // ---- 13~18 由 TalentSet 迁移而来,统一为驻场口径 ---- + // 备注:SellGold 已原生覆盖"出售返还"语义,故 TalentSet 中的 SellBonus 不再单独保留 BuyDiscount = 13, // 购买卡牌费用减免(金币) RefreshDiscount = 14, // 刷新卡牌费用减免(金币) - SellBonus = 15, // 出售英雄额外返还(金币) HeroHp = 16, // 英雄最大生命加成 HeroWindFury = 17, // 英雄风怒概率加成 HeroPuncture = 18, // 英雄穿刺概率加成 @@ -398,9 +398,9 @@ export const FieldSkillSet: Record = { 7011: { uuid: 7011, name: "暴伤加成", type: FieldSkillType.HeroCritDamage, value: 0.5, info: "英雄暴击伤害+50%" }, 7012: { uuid: 7012, name: "攻速加成", type: FieldSkillType.HeroSpeed, value: 0.2, info: "英雄攻击速度+20%" }, // ---- 13~18 来自原 TalentSet,统一为驻场百分比 / 绝对值口径 ---- + // 出售返还由原生 SellGold 承担,SellBonus 不再单独配置 7013: { uuid: 7013, name: "购买优惠", type: FieldSkillType.BuyDiscount, value: 1, info: "购买卡牌费用-1金币" }, 7014: { uuid: 7014, name: "刷新优惠", type: FieldSkillType.RefreshDiscount, value: 1, info: "刷新卡牌费用-1金币" }, - 7015: { uuid: 7015, name: "出售返还", type: FieldSkillType.SellBonus, value: 1, info: "出售英雄额外+1金币" }, 7016: { uuid: 7016, name: "生命加成", type: FieldSkillType.HeroHp, value: 0.1, info: "英雄最大生命+10%" }, 7017: { uuid: 7017, name: "风怒加成", type: FieldSkillType.HeroWindFury, value: 0.1, info: "英雄风怒概率+10%" }, 7018: { uuid: 7018, name: "穿刺加成", type: FieldSkillType.HeroPuncture, value: 0.1, info: "英雄穿刺概率+10%" }, diff --git a/assets/script/game/map/MissionEconomy.ts b/assets/script/game/map/MissionEconomy.ts index 10cb0cee..b3f388a4 100644 --- a/assets/script/game/map/MissionEconomy.ts +++ b/assets/script/game/map/MissionEconomy.ts @@ -72,10 +72,9 @@ export class MissionEconomy { static getSellGold(heroLevel: number = 1): number { const sellByLevel: Record = { 1: 3, 2: 10, 3: 25 }; const baseSellGold = sellByLevel[heroLevel] || 3; + // 驻场英雄带来的"出售金币"加成(包含原 SellBonus 语义,统一在 SellGold 中) const goldBoost = FieldSkillHelper.getFieldSkillTotalValue(FieldSkillType.SellGold); - // 驻场英雄带来的"出售返还"加成 - const sellBonus = FieldSkillHelper.getFieldSkillTotalValue(FieldSkillType.SellBonus); - const totalSellGold = baseSellGold + goldBoost + sellBonus; + const totalSellGold = baseSellGold + goldBoost; return Math.floor(totalSellGold); }