v0.1.10: 长线决断(数值重建 + 长跑鉴证)
评估发现(3000月×6种子实证): - 旧数值在正常难度 6/6 种子 90-125 年绝嗣(修炼慢+寿元短+渡劫卡死三重叠加) - 关键缺陷:渡劫事件被 eventRoll 误压制(qi8→筑基永不可达),境界峰恒为炼气 重建(data/ 数值 + engine 修复): - 修炼提速:基率 0.5+感知0.1→1.0+感知0.18;pacing qi 1→2.2(各境界等比提) - 修为曲线:qi expGrowth 1.35→1.10(9层累计工期<28年) - 寿元放宽:凡人75 / 炼气150 / 筑基220 / 金丹340 / 元婴520 / 化神850 - 失败跌损收窄 40-65%→26-44%;衰减点 55→65 岁;突破概率全线+0.1 - 渡劫修复:悬置 12 月自动压制(挂机不软锁)、玩家处理即零计数、 大比 FIFO 不被拍卖/传薪挤掉(queue 兜底) - 新增:仙门拍卖(十月·灵石漏斗)/ 名宿传薪(八年·传承)/ 圣者护族(幼儿修行提速) 鉴证: - 金钟罩升 3 档(47/100/180 年 × 3 seed = 9 指纹固化) - longevity 套件(200 年不败/渡劫晋升/拍卖传薪) - rebuild 套件(速率/工期/寿元/跌损/渡劫率) - 测试 881→905;typecheck/build 通过
This commit is contained in:
+30
-12
@@ -1,25 +1,34 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { stateFingerprint, longRun } from './fingerprint.helper'
|
||||
import { World } from '../src/renderer/game/engine/world'
|
||||
|
||||
/**
|
||||
* 金钟罩:固定种子长跑 560 月的状态指纹。
|
||||
* 任何改动(重构日程/调平衡/加系统)若改变了确定性序列或结果,此测试立刻报红。
|
||||
* 更新规则:仅当**有意**变更序列逻辑时,三枚 seed 指纹同版更新并注明原因。
|
||||
*/
|
||||
// 0.1.8 基线:特征加成(自律/精研/急躁/云游生效)+ 飞升窗口永续 + market 利己折扣后重新固化
|
||||
// (0.1.6 时 GreenClock 重构行为等价;0.1.7 插件门面化零漂移)
|
||||
const GOLDEN: Record<string, string> = {
|
||||
'bell-seed-1': '9af71ecb',
|
||||
'bell-seed-2': '63cede89',
|
||||
'bell-seed-3': 'ebfec4a4'
|
||||
// 0.1.10 基线:长线数值重建(修炼提速/寿元放宽/渡劫修复)后三档固化为 47/100/180 年。
|
||||
// 0.1.8 时修复批次后为 9af71ecb/63cede89/ebfec4a4;0.1.10 有意变更数值后按三档重算。
|
||||
const GOLDEN: Record<string, Record<number, string>> = {
|
||||
'bell-seed-1': { 560: 'a3223c77', 1200: '55aead92', 2160: 'ae2d9fb7' },
|
||||
'bell-seed-2': { 560: '3b8dcde4', 1200: '27becabd', 2160: '12d7e520' },
|
||||
'bell-seed-3': { 560: '195b8aaa', 1200: 'a19e1a90', 2160: '2d767a64' }
|
||||
}
|
||||
|
||||
describe('金钟罩 · 长跑确定性指纹', () => {
|
||||
for (const [seed, hash] of Object.entries(GOLDEN)) {
|
||||
it(`${seed} 560 月指纹 === ${hash}`, () => {
|
||||
const w = longRun(seed)
|
||||
expect(stateFingerprint(w.state)).toBe(hash)
|
||||
})
|
||||
const TIERS = [
|
||||
[560, '47 年(4 个十年)'],
|
||||
[1200, '100 年'],
|
||||
[2160, '180 年']
|
||||
] as const
|
||||
|
||||
describe('金钟罩 · 长跑确定性指纹(三档:47/100/180 年)', () => {
|
||||
for (const [seed, tiers] of Object.entries(GOLDEN)) {
|
||||
for (const [months, label] of TIERS) {
|
||||
it(`${seed} ${label}指纹 === ${tiers[months]}`, () => {
|
||||
const w = run(seed, months)
|
||||
expect(stateFingerprint(w.state)).toBe(tiers[months])
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
it('同 seed 两次长跑指纹一致(无状态污染)', () => {
|
||||
@@ -28,3 +37,12 @@ describe('金钟罩 · 长跑确定性指纹', () => {
|
||||
expect(a).toBe(b)
|
||||
})
|
||||
})
|
||||
|
||||
function run(seed: string, months: number): ReturnType<typeof longRun> {
|
||||
const w = World.create({ seed, surname: '钟', familyName: '钟家', motto: 'm', difficulty: 'normal' })
|
||||
for (let i = 0; i < months; i++) {
|
||||
if (w.state.gameOver) break
|
||||
w.advanceMonth()
|
||||
}
|
||||
return w
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user