Add consequenes to actor sheet
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user