Option transformation de stress

This commit is contained in:
2023-11-03 20:04:02 +01:00
parent 728c5f2f8e
commit 038e922f0f
3 changed files with 5 additions and 0 deletions

View File

@ -1911,6 +1911,7 @@ export class RdDActor extends RdDBaseActor {
/* -------------------------------------------- */
async transformerStress() {
if (!ReglesOptionnelles.isUsing("transformation-stress")) { return }
const fromStress = Number(this.system.compteurs.stress.value);
if (this.system.sommeil?.insomnie || fromStress <= 0) {
return;