v0.1.0: 仙途家族志 · Chronicle of the Immortal Clan

家族模拟器首版:修仙/经营/战斗/外交/叙事全套系统
- Electron + React + TS + MetonaSqlark(aria+OPFS)
- 水墨中国风 UI
- 引擎种子随机、确定性可回放
- 19 项单元测试、端到端冒烟验证
This commit is contained in:
2026-08-23 00:04:16 +08:00
commit adb22f0558
69 changed files with 14305 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
import { RealmMajor } from '../types/domain'
export interface NpcFamilyDef {
id: string
name: string
region: string
desc: string
style: string
leaderRealm: RealmMajor
initialPower: number
powerGrowth: [number, number]
sells?: string[]
buys?: string[]
}
export const NPCS: NpcFamilyDef[] = [
{
id: 'n-xuanying', name: '玄影沈氏', region: '北岳玄影峰', style: '剑修世家', desc: '隐于北岳的剑修吕氏,剑意凛冽,最为孤傲。',
leaderRealm: 'foundation', initialPower: 240, powerGrowth: [4, 10],
sells: ['weapon-qi', 'weapon-ling'], buys: ['lingcao', 'lingkuang']
},
{
id: 'n-danxin', name: '丹心木氏', region: '西川药谷', style: '丹道世家', desc: '悬壶济世的丹道世家,人脉广博,风格和缓。',
leaderRealm: 'foundation', initialPower: 200, powerGrowth: [3, 9],
sells: ['pill-qiyuan', 'pill-ningyuan', 'pill-pojing'], buys: ['lingcao', 'beastcore']
},
{
id: 'n-sihai', name: '四海王氏', region: '南都连港', style: '商盟世族', desc: '商通四海,富可敌国,只认灵石不认人。',
leaderRealm: 'foundation', initialPower: 160, powerGrowth: [5, 12],
sells: ['lingcao', 'lingkuang'], buys: ['beastcore', 'lingkuang']
},
{
id: 'n-nulei', name: '怒雷祝氏', region: '东丘雷泽', style: '兵修蛮门', desc: '雷泽蛮族的世仇,性情火爆,最易生衅。',
leaderRealm: 'core', initialPower: 300, powerGrowth: [5, 13],
sells: [], buys: ['lingkuang', 'beastcore']
}
]
export function npcById(id: string): NpcFamilyDef {
const n = NPCS.find((x) => x.id === id)
if (!n) throw new Error(`npc not found: ${id}`)
return n
}