v0.1.29: 续命——第四轮全量审计歼灭(2014 全绿)

【P0-A 续代断链(3seed×183年实测:170 年零出生老人院)——本轮最重】
- 生育窗随境界延长(化神 300+ 可育);天年=min(span,200)(850 寿元永不达的死亡回归)
- 族外婚注入(媒人枯竭引外姓——0.1.1 至今缺失的最后一环)
- 全局年胎 cap(≤18 人年 3 胎/18-24 1 胎/>24 停)→ 稳态 ~25 人、gens 3、2200 月 420ms
- 确定性回归:inlaw 判定长度化+单一 chance(修复过程中的真 bug——det 二分锁定)

【P1 七件】legacypass 年锚(同一年 12 连发 224 次实测)/敌强度相对化(0.35+rel×0.55,
cap 2.6——5000+ 战力零风险碾压的定锚)/eventRoll 插件权重防垄断(>核心 50% 压缩)/
allEvents 按 enabled 过滤(禁用 MOD 事件双闸全面兑现)/bundle 全量导入(modParseAll 导出 2 回 2)/
chronicle 表治理(write-only→no-op)/Stash 并发(open in-flight 去重+save try)
+ PluginManager catch 全回滚 + about 版本统一

【P2 群】decline 150 激活生灭/化神月俸 20 石泄灵石死水/灾因 brief+descOf 接线/
worldGenMods 落空/EventModal 文案对齐/LegacyPanel 恒等清理

【测试】70 套件 2014 全绿(audit-0.1.29 六例:人口曲线/传薪年锚/强度公式/bundle 全量/异常回滚/灾因 brief);
【金钟罩】0.1.29 基线重算(续代/战斗/事件数值受控变更);build 通过
This commit is contained in:
2026-08-23 20:14:42 +08:00
parent 6cbd604e24
commit a99420da09
26 changed files with 279 additions and 70 deletions
+18 -1
View File
@@ -19,7 +19,7 @@ export interface ModPackData {
suffixes?: string[]
}
/** 灾因扩展(0.1.26:进入世界灾签循环) */
calamities?: Array<{ name: string; family?: Record<string, number>; effect?: Record<string, number> }>
calamities?: Array<{ name: string; brief?: string; family?: Record<string, number>; effect?: Record<string, number> }>
/** 世界数值白名单覆写(0.1.27 声明口径,0.1.28 接线;卸载复位) */
worldNum?: Record<string, number>
/** 丹方/铸器配方 */
@@ -90,6 +90,23 @@ export function modParse(text: string): ModParseResult {
return { ok: true, pack: raw as ModPack }
}
/** P1-O 全量解析:bundle → 全部包;单包 → [包];非法 → [] */
export function modParseAll(text: string): ModPack[] {
let raw: unknown
try { raw = JSON.parse(text) } catch { return [] }
const asRec = raw as { app?: string; bundle?: unknown[] }
if (asRec?.app === 'cotymod' && Array.isArray(asRec.bundle)) {
const out: ModPack[] = []
for (const b of asRec.bundle) {
const r = modParse(JSON.stringify(b))
if (r.ok) out.push(r.pack)
}
return out
}
const r = modParse(text)
return r.ok ? [r.pack] : []
}
export const MOD_SCHEMA_VERSION = 1
export interface ModValidation {