Enhance interface

This commit is contained in:
2022-06-01 22:37:33 +02:00
parent 960f380306
commit dca9dab577
12 changed files with 120 additions and 111 deletions

View File

@@ -34,11 +34,11 @@ export class MournbladeActor extends Actor {
return actor;
}
if (data.type == 'character') {
if (data.type == 'personnage') {
const skills = await MournbladeUtility.loadCompendium("fvtt-mournblade.skills")
data.items = skills.map(i => i.toObject());
}
if (data.type == 'npc') {
if (data.type == 'pnj') {
}
return super.create(data, options);
@@ -52,6 +52,11 @@ export class MournbladeActor extends Actor {
getArmors() {
return this.data.items.filter(item => item.type == "protection" )
}
/* -------------------------------------------- */
getSkills() {
return this.data.items.filter(item => item.type == "competence" )
}
/* -------------------------------------------- */
prepareBaseData() {
}