forked from public/foundryvtt-reve-de-dragon
#36 Gestion des taches et création à partir d'un livre
This commit is contained in:
@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user