v0.1.2: 宗族气韵(职事/悟道/谱系/碑录/庆典/飞升/音效)
- 职事任命:长老(+修炼)/供奉(+战力)/执事(+坊市)/掌教(+闭关) 每人加成叠加,上限管理 - 功法悟道:修习积悟性点,小成/大成逐级+战力,大境界突破传道于直系晚辈 - 宗族谱系页:世代分带 + 夫妻同卷 + 子孙连枝,点节点开详情,先人簿可查 - 功德碑:宗主辞世即勒石,宗祠页碑录永存 - 百年庆典 + 飞升之路事件链(留世坐镇/仙风入体 或 云游飞升/宗族蒙荫) - 合成音效(WebAudio):鼓点/钟鸣/纸韵/磬响,设置页开关 - 单测 29→38;typecheck/build 通过;GUI 冒烟受限于 WSLg 掉线(SMOKE-TIMEOUT 优雅退出)
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
export type PostEffectType = 'expAll' | 'marketIncome' | 'battlePower' | 'meditation' | 'familyRep'
|
||||
|
||||
export interface PostDef {
|
||||
id: string
|
||||
name: string
|
||||
icon: string
|
||||
desc: string
|
||||
max: number
|
||||
effect: { type: PostEffectType; value: number }
|
||||
}
|
||||
|
||||
export const POSTS: Record<string, PostDef> = {
|
||||
head: {
|
||||
id: 'head',
|
||||
name: '家主',
|
||||
icon: '主',
|
||||
desc: '族纲所系:声望逐年 +1,决策由玩家亲定。',
|
||||
max: 1,
|
||||
effect: { type: 'familyRep', value: 1 }
|
||||
},
|
||||
elder: {
|
||||
id: 'elder',
|
||||
name: '长老',
|
||||
icon: '长',
|
||||
desc: '垂教宗族:全族修炼速度 +5%(每名)。',
|
||||
max: 2,
|
||||
effect: { type: 'expAll', value: 0.05 }
|
||||
},
|
||||
guardian: {
|
||||
id: 'guardian',
|
||||
name: '供奉',
|
||||
icon: '供',
|
||||
desc: '克敌之锐:宗族战力 +8%(每名)。',
|
||||
max: 2,
|
||||
effect: { type: 'battlePower', value: 0.08 }
|
||||
},
|
||||
steward: {
|
||||
id: 'steward',
|
||||
name: '执事',
|
||||
icon: '执',
|
||||
desc: '持家之能:坊市收入 +10%(每名)。',
|
||||
max: 2,
|
||||
effect: { type: 'marketIncome', value: 0.1 }
|
||||
},
|
||||
master: {
|
||||
id: 'master',
|
||||
name: '掌教',
|
||||
icon: '掌',
|
||||
desc: '授道之责:闭关子弟修炼 +6%(每名)。',
|
||||
max: 1,
|
||||
effect: { type: 'meditation', value: 0.06 }
|
||||
}
|
||||
}
|
||||
|
||||
export const POST_ORDER = ['head', 'elder', 'guardian', 'steward', 'master']
|
||||
|
||||
export function postById(id: string | undefined): PostDef | null {
|
||||
if (!id) return null
|
||||
return POSTS[id] ?? null
|
||||
}
|
||||
Reference in New Issue
Block a user