0.1.37 天人感应·因果织锦:功德系统+飞升试炼+世界奇观+MOD扩展口

This commit is contained in:
2026-09-10 23:37:57 +08:00
parent 2984d05647
commit 87cd71ad21
24 changed files with 1062 additions and 43 deletions
@@ -1,6 +1,7 @@
import { World } from '../runtime/World'
import { WONDER_NAMES } from './worldsim-data'
export function worldSimBrief(w: World): { tideLabel: string; priceLabel: string; latest: string } | null {
export function worldSimBrief(w: World): { tideLabel: string; priceLabel: string; latest: string; wonderLabel?: string } | null {
const ws = w.state.worldSim
if (!ws) return null
const tide = ws.tide ?? 0.5
@@ -9,5 +10,8 @@ export function worldSimBrief(w: World): { tideLabel: string; priceLabel: string
const ratio = (pool['lingcao'] ?? 600) / 600
const priceLabel = ratio > 1.15 ? '物腾' : ratio < 0.85 ? '物贱' : '平稳'
const latest = ws.newsFeed?.[ws.newsFeed.length - 1]?.text ?? ''
return { tideLabel, priceLabel, latest }
// 0.1.37 世界奇观标签
const wonder = (ws as { wonder?: { kind: string } }).wonder
const wonderLabel = wonder ? WONDER_NAMES[wonder.kind as keyof typeof WONDER_NAMES] : undefined
return { tideLabel, priceLabel, latest, wonderLabel }
}