0.1.40: 天命系统 + NPC演化增强 + 建筑专精 (P0-1~P1-1)

This commit is contained in:
2026-09-13 14:05:28 +08:00
parent dcd2345192
commit dc970ff13b
12 changed files with 1137 additions and 30 deletions
@@ -38,7 +38,7 @@ export function monthlyRate(w: World, c: Character, herbFactor = 1): number {
rate *= 0.65
}
const buildings = st.family.buildings
rate *= 1 + bonusOf('juling', 'expBonus', buildings['juling'] ?? 0)
rate *= 1 + bonusOf('juling', 'expBonus', buildings['juling'] ?? 0, st.family.flag['buildingSpecialty'] as string | undefined)
if (w.sysEnabled('season')) rate *= 1 + seasonMod(st.month, 'cult')
rate *= 1 + w.postBonus('expAll')
if (st.family.flag['fengFeiBless']) rate *= 1.05
@@ -49,7 +49,7 @@ export function monthlyRate(w: World, c: Character, herbFactor = 1): number {
if (c.state === 'meditation') {
rate *= 1.35
rate *= 1 + w.postBonus('meditation') + (w.sysEnabled('season') ? seasonMod(st.month, 'meditation') : 0)
rate *= 1 + bonusOf('dongfu', 'expBonus', buildings['dongfu'] ?? 0)
rate *= 1 + bonusOf('dongfu', 'expBonus', buildings['dongfu'] ?? 0, st.family.flag['buildingSpecialty'] as string | undefined)
} else if (c.state === 'expedition') {
rate *= 0.25
} else if (c.state === 'wounded') {