Fix Deal XP logic of party sheet

master
John Downey 2022-04-09 15:26:24 -05:00
parent 22d7c15471
commit 483cd49f9a
1 changed files with 11 additions and 8 deletions

View File

@ -55,15 +55,18 @@ export class AcksPartySheet extends FormApplication {
_dealXP(ev) { _dealXP(ev) {
// Grab experience // Grab experience
const template = ` const template = `
<form> <form>
<div class="form-group"> <div class="form-group">
<label>Amount</label> <label>Amount</label>
<input name="total" placeholder="0" type="text"/> <input name="total" placeholder="0" type="text"/>
</div> </div>
</form>`; </form>
let pcs = this.object.entities.filter((e) => { `;
return e.getFlag('acks', 'party') && e.data.type == "character";
let pcs = this.object.documents.filter((actor) => {
return actor.getFlag('acks', 'party') && actor.data.type == "character";
}); });
new Dialog({ new Dialog({
title: "Deal Experience", title: "Deal Experience",
content: template, content: template,