v1.5 #542

Merged
uberwald merged 3 commits from VincentVk/foundryvtt-reve-de-dragon:v1.5 into v1.5 2022-07-17 11:04:20 +02:00
Showing only changes of commit c3c42bdb21 - Show all commits

View File

@ -115,11 +115,14 @@ export class RdDActor extends Actor {
return actor; return actor;
} }
const competences = await RdDUtility.loadCompendium(RdDItemCompetence.actorCompendium(actorData.type));
actorData.items = competences.map(i => i.toObject());
if (isPersonnage) { if (isPersonnage) {
const competences = await RdDUtility.loadCompendium(RdDItemCompetence.actorCompendium(actorData.type));
actorData.items = competences.map(i => i.toObject());
actorData.items = actorData.items.concat(Monnaie.monnaiesData()); actorData.items = actorData.items.concat(Monnaie.monnaiesData());
} }
else {
actorData.items = [];
}
return super.create(actorData, options); return super.create(actorData, options);
} }