Enhance interface
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user