0.1.40: 天命系统 + NPC演化增强 + 建筑专精 (P0-1~P1-1)
This commit is contained in:
@@ -778,7 +778,7 @@ export class World {
|
||||
inv['lingcao'] -= r.lingcao
|
||||
inv['beastcore'] -= r.beastcore
|
||||
fam.stones -= r.stones
|
||||
const chance = bonusOf('danfang', 'craftChance', lvl)
|
||||
const chance = bonusOf('danfang', 'craftChance', lvl, fam.flag['buildingSpecialty'] as string | undefined)
|
||||
if (this.rng.chance(chance)) {
|
||||
inv[`pill-${kind}`] = (inv[`pill-${kind}`] ?? 0) + 1
|
||||
this.log('good', `丹房炼成一枚${r.name}。`)
|
||||
@@ -855,8 +855,8 @@ export class World {
|
||||
const fam = this.state.family
|
||||
const bonus =
|
||||
1 +
|
||||
bonusOf('yanwu', 'powerBonus', fam.buildings['yanwu'] ?? 0) +
|
||||
bonusOf('lingshou', 'powerBonus', fam.buildings['lingshou'] ?? 0) +
|
||||
bonusOf('yanwu', 'powerBonus', fam.buildings['yanwu'] ?? 0, fam.flag['buildingSpecialty'] as string | undefined) +
|
||||
bonusOf('lingshou', 'powerBonus', fam.buildings['lingshou'] ?? 0, fam.flag['buildingSpecialty'] as string | undefined) +
|
||||
this.postBonus('battlePower')
|
||||
const top = this.aliveMembers()
|
||||
.map((c) => combatPowerOf(this, c))
|
||||
|
||||
Reference in New Issue
Block a user