refactor: 移除驻场技能的折扣与收益加成逻辑
1. 删除所有与BuyDiscount、RefreshDiscount、SellGold、WaveGold相关的技能配置与代码逻辑 2. 简化卡牌购买价格、出售价格、刷新费用和回合金币收益的计算逻辑,不再依赖驻场技能加成 3. 更新英雄盒子的出售价格注释,移除驻场加成说明
This commit is contained in:
@@ -33,8 +33,6 @@ import { smc } from "../common/SingletonModuleComp";
|
||||
|
||||
import { UIID } from "../common/config/GameUIConfig";
|
||||
import { HeroAttrsComp } from "../hero/HeroAttrsComp";
|
||||
import { FieldSkillType } from "../common/config/SkillSet";
|
||||
import { FieldSkillHelper } from "../hero/FieldSkillHelper";
|
||||
import { MissionEconomy } from "./MissionEconomy";
|
||||
|
||||
|
||||
@@ -255,13 +253,7 @@ export class CardComp extends CCComp {
|
||||
this.card_uuid = data.uuid;
|
||||
this.card_type = data.type;
|
||||
|
||||
let baseCost = data.cost ?? 0;
|
||||
if (this.card_type === CardType.Hero) {
|
||||
// 驻场英雄带来的"购买优惠"折扣
|
||||
const discount = FieldSkillHelper.getFieldSkillTotalValue(FieldSkillType.BuyDiscount);
|
||||
baseCost = Math.max(0, baseCost - discount);
|
||||
}
|
||||
this.card_cost = Math.floor(baseCost);
|
||||
this.card_cost = Math.floor(data.cost ?? 0);
|
||||
|
||||
this.node.active = true;
|
||||
this.applyCardUI();
|
||||
|
||||
Reference in New Issue
Block a user