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:
@@ -67,6 +67,7 @@ export default class CelestopolNPC extends foundry.abstract.TypeDataModel {
|
||||
prepareDerivedData() {
|
||||
super.prepareDerivedData()
|
||||
const malus = this.getWoundMalus()
|
||||
// Initiative PNJ : valeur du Domaine Corps
|
||||
this.initiative = Math.max(0, this.stats.corps.res + malus)
|
||||
for (const stat of Object.values(this.stats)) {
|
||||
stat.actuel = Math.max(0, stat.res + malus)
|
||||
|
||||
Reference in New Issue
Block a user