refactor(MissionHeroComp): 移除闲置的驻场技能总加成计算方法

This commit is contained in:
panw
2026-05-21 16:20:54 +08:00
parent c5f1fb9993
commit 654e39ff5b
6 changed files with 55 additions and 26 deletions

View File

@@ -5,6 +5,7 @@ import { HeroAttrsComp } from "../hero/HeroAttrsComp";
import { FieldSkillType } from "../common/config/SkillSet";
import { TalentType } from "../common/config/TalentSet";
import { FightSet } from "../common/config/GameSet";
import { FieldSkillHelper } from "../hero/FieldSkillHelper";
/**
* 局内经济统一管理类
@@ -70,7 +71,7 @@ export class MissionEconomy {
*/
static getSellGold(): number {
const baseSellGold = 1; // 基础卖出金币
const goldBoost = HeroAttrsComp.getFieldSkillTotalValue(FieldSkillType.SellGold);
const goldBoost = FieldSkillHelper.getFieldSkillTotalValue(FieldSkillType.SellGold);
let totalSellGold = baseSellGold + goldBoost;
// 应用天赋 SellBonus (增加数值)
const bonusGold = HeroAttrsComp.getTalentValue(TalentType.SellBonus);
@@ -94,7 +95,7 @@ export class MissionEconomy {
*/
static getWaveGold(baseReward: number): number {
let reward = Math.max(0, Math.floor(baseReward));
const goldBoost = HeroAttrsComp.getFieldSkillTotalValue(FieldSkillType.WaveGold);
const goldBoost = FieldSkillHelper.getFieldSkillTotalValue(FieldSkillType.WaveGold);
reward += goldBoost;
return reward;
}