feat(map,economy): 重做游戏经济与卡牌平衡系统
本次提交重构了英雄出售、抽卡、波次金币的数值体系: 1. 调整英雄出售价格按等级计算,1/2/3级分别为3/10/25金币 2. 修改抽卡刷新费用为2,初始金币调整为10 3. 重做波次金币公式,基础收益改为10,每波增长4 4. 调整卡池卡牌消耗与特殊卡牌的定价 5. 优化卡牌抽取消耗的计算逻辑,使用指数增长替代线性计算
This commit is contained in:
@@ -304,17 +304,19 @@ export class HInfoComp extends CCComp {
|
||||
*/
|
||||
private onSellHero(event?: Event) {
|
||||
if (!this.eid) return;
|
||||
const heroLv = Math.max(1, Math.floor(this.model?.lv ?? 1));
|
||||
const removed = Hero.removeByEid(this.eid);
|
||||
mLogger.log(this.debugMode, "HInfoComp", "onSellHero", {
|
||||
eid: this.eid,
|
||||
heroLv,
|
||||
isAlive: this.isModelAlive(),
|
||||
removed
|
||||
});
|
||||
if (!removed) return;
|
||||
|
||||
// 使用统一经济管理入口出售英雄
|
||||
MissionEconomy.executeSellHero();
|
||||
|
||||
|
||||
// 使用统一经济管理入口出售英雄(按等级计算卖价)
|
||||
MissionEconomy.executeSellHero(heroLv);
|
||||
|
||||
oops.gui.remove(UIID.IBox);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user