Add consequenes to actor sheet

This commit is contained in:
2021-01-31 17:23:14 +01:00
parent e412f0cb3b
commit 1d2f438235
7 changed files with 64 additions and 9 deletions

View File

@ -34,6 +34,18 @@ export class SoSActor extends Actor {
return actor;
}
data.items = [];
let compendiumName = "foundryvtt-shadows-over-sol.skills";
if ( compendiumName ) {
let skills = await SoSUtility.loadCompendium(compendiumName);
data.items = data.items.concat( skills );
}
compendiumName = "foundryvtt-shadows-over-sol.consequences";
if ( compendiumName ) {
let consequences = await SoSUtility.loadCompendium(compendiumName)
data.items = data.items.concat(consequences);
}
return super.create(data, options);
}