#84 - Declenchement reserve en fleuve
This commit is contained in:
parent
f36e8c2179
commit
5c423d1245
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user