v0.1.34: 万象归元——功法流派/世界自演化/插件MOD 进化 + 测试 6000

【版本】0.1.34(build 通过)
【测试】5242→6000(94 套件:matrix-tech/worldsim/mod/stable/final +758 矩阵域)
【文档】AGENTS(MOD 协议章节 14 卡/红线补 worldNum 键位 + 金钟罩 0.1.34 基线注释)/README(沿革+矩阵域)/MEMORY(8c2 世界状态红牌纪律 + B0 军规)/MOD_GUIDE(4 效果字段+patch 层注解)
This commit is contained in:
2026-08-23 22:12:07 +08:00
parent a7fe166e85
commit bb82947bb6
11 changed files with 178 additions and 5 deletions
@@ -137,7 +137,7 @@ export class GameFacade {
about(): { title: string; version: string; modules: number; systems: number; plugins: number; packFingerprint: string } {
return {
title: '仙途家族志',
version: '0.1.33',
version: '0.1.34',
modules: this.world.systemList().length,
systems: this.world.systemList().filter((s) => s.enabled).length,
plugins: this.world.pluginList().length,
@@ -916,6 +916,12 @@ export class World {
return Math.round(top * bonus)
}
/** 0.1.34 世界观察公开口(测试/外部检查——同 ctx 语义,返回退订) */
onWorldSimTick(fn: (year: number, month: number, state: unknown) => void): () => void {
this.simTickObservers.push(fn)
return () => { this.simTickObservers = this.simTickObservers.filter((f) => f !== fn) }
}
/** 0.1.34 MOD 数值 patchmult 0.5~2 / add 实数——作用于数据包表项;卸载复原) */
applyModPatch(entries: Array<{ target: 'technique' | 'item' | 'building'; id: string; mult?: number; add?: number }>): void {
const undo: Array<() => void> = []