From da9fe2f1bbd23c00fd3222a8d9c44ffc2e96cac4 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 18 Nov 2020 18:38:21 +0100 Subject: [PATCH] =?UTF-8?q?Seuil=20de=20r=C3=AAve=20pas=20mis=20=C3=A0=20j?= =?UTF-8?q?our=20en=20changeant=20le=20R=C3=AAve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 96928240..802d1a80 100644 --- a/module/actor.js +++ b/module/actor.js @@ -455,9 +455,9 @@ export class RdDActor extends Actor { updateCarac( caracName, caracValue ) { let caracpath = "data.carac." + caracName + ".value" - if (caracName == reve) { + if (caracName == "reve") { if (caracValue > Misc.toInt(this.data.data.reve.seuil.value)) { - this.setPointDeSeuil(caracValue); + this.setPointsDeSeuil(caracValue); } } this.update( { caracpath: caracValue } );