Ameliorations lancer de sort

This commit is contained in:
sladecraven 2021-02-02 08:08:27 +01:00
parent d24b9c07fa
commit 4e529e5e0d

View File

@ -1632,13 +1632,14 @@ export class RdDActor extends Actor {
let tmr = TMRUtility.getTMRDescription( coord);
let letfilteredList = []
for ( let sort of sortList) {
console.log(sort.name, sort.data.caseTMR.toLowerCase(), sort.data.caseTMRspeciale.toLowerCase(), coord.toLowerCase() );
if (sort.data.caseTMR.toLowerCase().includes('variable') ) {
letfilteredList.push( sort);
} else if (sort.data.caseTMRspeciale.toLowerCase().includes('variable') ) {
letfilteredList.push( sort);
} else if (sort.data.caseTMR.toLowerCase() == tmr.type ) {
letfilteredList.push( sort);
} else if ( sort.data.caseTMR.toLowerCase().includes('spéciale') && sort.data.caseTMRspeciale.toLowerCase().includes( coord.toLowerCase() ) ) {
} else if ( sort.data.caseTMR.toLowerCase().includes('special') && sort.data.caseTMRspeciale.toLowerCase().includes( coord.toLowerCase() ) ) {
letfilteredList.push( sort);
}
}