Fix Deal XP logic of party sheet
parent
22d7c15471
commit
483cd49f9a
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue