refactor(mission economy): 统一出售金币加成计算逻辑
移除冗余的SellBonus字段计算,将出售返还加成合并到SellGold口径中,同时清理废弃的技能配置项和注释。
This commit is contained in:
@@ -72,10 +72,9 @@ export class MissionEconomy {
|
||||
static getSellGold(heroLevel: number = 1): number {
|
||||
const sellByLevel: Record<number, number> = { 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user