#36 Gestion des taches et création à partir d'un livre

This commit is contained in:
2020-12-15 21:28:55 +01:00
parent dc67c36b0a
commit e64c350632
8 changed files with 77 additions and 21 deletions

View File

@ -638,6 +638,14 @@ export class RdDUtility {
return compList.find(item => item.name.toLowerCase() == compName && (item.type =="competence" || item.type == "competencecreature"))
}
/* -------------------------------------------- */
static async getCompetenceList( compendium ) {
const pack = game.packs.get(compendium);
let competences;
await pack.getIndex().then(index => competences = index);
return competences;
}
/* -------------------------------------------- */
static buildDefenseChatCard( attacker, target, rollData )
{