v0.1.16: 资源闭环 × 世情入味(A+B+C 全套餐)

【A 经济闭环(引擎核心)】
- 修为经济化:灵草成修行燃料——练气以上月耗(闭关2/普通1),无草速修0.6~1.0衰减+缺草每年一告
- 炼丹等级化:bonusOf 白名单表达式求值器(extra 单源);craftChance 转正(L5=100%),丹方 PILL_RECIPES(破境丹需丹房3级),失败折半退料
- 炼器筑宝:FORGE_RECIPES(法器/灵器/法宝)灵矿兽核入炉
- 秘灵灵脉:secretQiOf→rollWarbooty 收益门槛(0.5~1.5 折算),掉落按秘境 techGrades 过滤(暗墨林不再出仙典)
- NPC 实力参战:raid 强度/风险随 npc.power 浮动(0.5~1.8)——外交成长期博弈
- 灾年落效:CALAMITY_FAMILY 月度减产乘子 + 疫病/兽潮一次性体感

【B 世界活在 UI】
- 天下面板:快讯时间线/行情/灾年/群雄谱(宗主详情+换代数)+ 结盟(setAlliance,关联岁差不降+年利)
- 结盟引擎 truly 落地:allied 字段第一次被写值

【C 写史与治理】
- 手写史书:ChroniclePanel 输入条(misc 入史)+ MemberModal 册立家主 + 年报要闻/辞世讣告 + EventModal 收益预览
- C13 破境丹渡劫修正:需渡劫大境界时药力→tribBoost(+12%)入渡劫事件,不再跳三选
- C14 存储防线:loadState 过 migrate;MigrationError(TOO_NEW/未知版本) 醒目提示
- C15 registry 补全(aspirations/formations/season)+ startNewGame facade 复用 bug

【测试】986 全绿(37 套件,新增经济闭环 7 例);金钟罩 0.1.16 基线固化(修为耗草/炼丹/灾害序列变更受控)
This commit is contained in:
2026-08-23 14:13:13 +08:00
parent de46808188
commit 809707408b
14 changed files with 266 additions and 18 deletions
+10 -1
View File
@@ -8,6 +8,9 @@ import { POSTS } from './posts'
import { TRAITS } from './traits'
import { ROOT_GRADES, ROOT_GRADE_NAMES, ELEMENT_LIST } from './elements'
import { MAJORS, MAJOR_ORDER } from './realms'
import { ASPIRATIONS } from './aspirations'
import { FORMATIONS } from './formations'
import { SEASON } from './season'
export interface DataPack {
items: typeof ITEMS
@@ -25,6 +28,9 @@ export interface DataPack {
elements: typeof ELEMENT_LIST
majors: typeof MAJORS
majorOrder: typeof MAJOR_ORDER
aspirations: typeof ASPIRATIONS
formations: typeof FORMATIONS
season: typeof SEASON
}
/** 默认包:与库内静态数据**同引用**(保证确定性指纹不变);未来 MOD 通过注入覆盖 */
@@ -43,7 +49,10 @@ export const DEFAULT_PACK: DataPack = {
rootGradeNames: ROOT_GRADE_NAMES,
elements: ELEMENT_LIST,
majors: MAJORS,
majorOrder: MAJOR_ORDER
majorOrder: MAJOR_ORDER,
aspirations: ASPIRATIONS,
formations: FORMATIONS,
season: SEASON
}
/**
@@ -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.15',
version: '0.1.16',
modules: this.world.systemList().length,
systems: this.world.systemList().filter((s) => s.enabled).length,
plugins: this.world.pluginList().length,