Seuil de rêve pas mis à jour en changeant le Rêve

This commit is contained in:
Vincent Vandemeulebrouck 2020-11-18 18:38:21 +01:00
parent f3084b2d60
commit da9fe2f1bb

View File

@ -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 } );