Fix initiative : formule correcte selon les règles
- PJ : 4 + Mobilité (Corps) + Inspiration (Cœur) - PNJ : Domaine Corps (inchangé, déjà correct) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -153,8 +153,8 @@ export default class CelestopolCharacter extends foundry.abstract.TypeDataModel
|
|||||||
|
|
||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
super.prepareDerivedData()
|
super.prepareDerivedData()
|
||||||
// L'initiative est basée sur la résistance Corps
|
// Initiative PJ : 4 + Mobilité (Corps) + Inspiration (Cœur)
|
||||||
this.initiative = this.stats.corps.res
|
this.initiative = 4 + (this.stats.corps.mobilite?.value ?? 0) + (this.stats.coeur.inspiration?.value ?? 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export default class CelestopolNPC extends foundry.abstract.TypeDataModel {
|
|||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
super.prepareDerivedData()
|
super.prepareDerivedData()
|
||||||
const malus = this.getWoundMalus()
|
const malus = this.getWoundMalus()
|
||||||
|
// Initiative PNJ : valeur du Domaine Corps
|
||||||
this.initiative = Math.max(0, this.stats.corps.res + malus)
|
this.initiative = Math.max(0, this.stats.corps.res + malus)
|
||||||
for (const stat of Object.values(this.stats)) {
|
for (const stat of Object.values(this.stats)) {
|
||||||
stat.actuel = Math.max(0, stat.res + malus)
|
stat.actuel = Math.max(0, stat.res + malus)
|
||||||
|
|||||||
Reference in New Issue
Block a user