feat(victory): add defeat reward gate by clear time and kill ratio

Defeat rewards now require surviving 15s and killing at least one
monster. Qualified defeats grant a fixed survive reward plus a
kill-ratio-scaled bonus; unqualified defeats yield nothing.
Victory rewards remain unchanged.
This commit is contained in:
pan
2026-09-11 15:57:21 +08:00
parent a6dbda13b1
commit 5fe961846f
4 changed files with 107 additions and 21 deletions

View File

@@ -240,4 +240,17 @@ export const VICTORY_REWARD_SET = {
},
/** 胜利加成系数(失败 1.0) */
victory_multiplier: 1.2,
/**
* 失败奖励限制(不影响胜利):
* 坚持 < defeat_time_threshold 秒或本节一只怪未杀 → 无任何奖励;
* 达标后 = 坚持奖励(固定)+ 击杀比例奖励(基数 × 本节击杀比例)
*/
defeat: {
/** 坚持时间门槛(秒) */
time_threshold: 15,
/** 超门槛固定奖励("超 15 秒奖励") */
survive: { gold: 50, talent_exp: 10 },
/** 击杀比例奖励基数(本节怪物全灭时全额发放) */
kill: { gold: 150, talent_exp: 30 },
},
};