Merge v1.5

This commit is contained in:
sladecraven 2022-07-17 11:51:23 +02:00
commit c80cde6d18
4 changed files with 24 additions and 30 deletions

View File

@ -115,12 +115,15 @@ export class RdDActor extends Actor {
return actor;
}
const competences = await RdDUtility.loadCompendium(RdDItemCompetence.actorCompendium(actorData.type))
actorData.items = competences.map(i => i.toObject())
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());
}
return super.create(actorData, options)
else {
actorData.items = [];
}
return super.create(actorData, options);
}
/* -------------------------------------------- */

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,7 @@
"url": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/",
"license": "LICENSE.txt",
"flags": {},
"version": "10.0.4",
"version": "10.0.5",
"scripts": [],
"esmodules": [
"module/rdd-main.js"
@ -500,7 +500,7 @@
"relationships": {},
"socket": true,
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.0.4.zip",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.0.5.zip",
"protected": false,
"gridDistance": 1,
"gridUnits": "m",

View File

@ -89,9 +89,7 @@
{{!-- Compétences Tab --}}
<div class="tab competences" data-group="primary" data-tab="competences">
<div class="flexcol">
<div class="flex-group-left flexcol competence-column">
<ol class="item-list alterne-list">
{{#each competences as |comp key|}}
@ -111,7 +109,7 @@
</li>
{{/each}}
</ol>
</div>
<div class="flex-group-left flexcol competence-column">
<ol class="item-list alterne-list">
{{#each possessions as |possession key|}}
@ -125,7 +123,6 @@
</li>
{{/each}}
</ol>
</div>
</div>
</div>
@ -138,7 +135,5 @@
{{>"systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html"}}
</div>
</div>
</section>
</form>