refactor(game): 重构结算积分与奖励逻辑

1. 移除HeroAttrs中废弃的分数字段
2. 重构积分计算规则,简化为基础分+行为分
3. 调整胜利奖励计算逻辑,改用怪物等级作为成长参数替换原wave计数
4. 同步更新结算配置注释与日志输出
This commit is contained in:
pan
2026-09-11 16:25:28 +08:00
parent 5fe961846f
commit ea15b464ad
5 changed files with 42 additions and 78 deletions

View File

@@ -49,6 +49,7 @@ import { spawningEngine, WAVE_DURATION, BATTLE_TIMEOUT } from "./RogueConfig";
import { MissionMonCompComp } from "./MissionMonComp";
import {
getProgressText,
getMonsterLv,
} from "../common/config/StageSet";
const { ccclass, property } = _decorator;
@@ -638,6 +639,8 @@ export class MissionComp extends CCComp {
// 结算类型:小节胜利显示"下一节",末关通关显示"确认退出" + 通关标题
settle_type: this._settleType,
settle_title: this._settleTitle,
// 关卡难度度量(= 大关号,驱动胜利奖励随进度增长)
mon_lv: getMonsterLv(this.currentStage),
// 失败奖励判定数据:本节坚持时间 + 击杀统计(kills=已刷出-存活)
defeat_stats: {
clear_time: this.clearTime,