From 5c423d1245a5cc636f79da99f5ff2fdf709b7487 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 30 Dec 2020 12:21:55 +0100 Subject: [PATCH] #84 - Declenchement reserve en fleuve --- module/tmr-utility.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/tmr-utility.js b/module/tmr-utility.js index 429ab896..9871df6f 100644 --- a/module/tmr-utility.js +++ b/module/tmr-utility.js @@ -563,11 +563,13 @@ export class TMRUtility { // TODO : Gérer les têtes spéciales réserve! let sortReserve let tmrDescr = this.getTMRDescription(coordTMR); + console.log("Sort réserve : ", tmrDescr); if ( tmrDescr.type == 'fleuve') { // Gestion de la reserve en Fleuve - sortReserve = reserveList.find(it => { TMRUtility.getTMRDescription(it.coord).type == 'fleuve' } ); + sortReserve = reserveList.find(it => TMRUtility.getTMRDescription(it.coord).type == 'fleuve' ); } else { // Reserve sur un case "normale" sortReserve = reserveList.find(it => it.coord == coordTMR); } + console.log("Sort réserve : ", tmrDescr, sortReserve, reserveList); return sortReserve; }