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
+3 -1
View File
@@ -10,7 +10,9 @@ export function stateFingerprint(s: GameState): string {
JSON.stringify(sortedInv(s.family.inventory)),
JSON.stringify(sortedBld(s.family.buildings)),
s.family.headId,
s.family.techniques.join(',')
s.family.techniques.join(','),
// 0.1.37 因果指纹:karma 值入指纹(因果调制影响灾年/NPC姿态/渡劫——必须锁定)
`k:${Math.floor((s.family.karma ?? 0) * 10) / 10}`
]
const members = Object.values(s.members)
.map((c) => `${c.id}:${c.alive}:${c.realm.major}/${c.realm.minor}:${Math.floor(c.realmProgress * 10) / 10}:${Math.floor(c.health * 10) / 10}:${c.state}:${c.bornYear}:${c.techniqueRank ?? 0}:${Math.floor((c.techniqueProgress ?? 0) * 10) / 10}:${c.post ?? ''}:${c.aspiration ?? ''}:${c.spouseId ?? ''}:${c.children.join('-')}`)