v10.6.4 #614

Merged
uberwald merged 9 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2023-01-21 16:57:38 +01:00
Showing only changes of commit 7f051e76be - Show all commits

View File

@ -62,7 +62,9 @@ export class Environnement {
const compendiumsElement = await Promise.all( const compendiumsElement = await Promise.all(
this.compendiumTables.map(async compTable => await compTable.getContent(itemFrequence, filter)) this.compendiumTables.map(async compTable => await compTable.getContent(itemFrequence, filter))
); );
return compendiumsElement.reduce((a, b) => a.concat(b)) const elements = compendiumsElement.reduce((a, b) => a.concat(b));
elements.sort(Misc.ascending(it => it.name))
return elements;
} }
async buildTable(itemFrequence, filter = it => true) { async buildTable(itemFrequence, filter = it => true) {