Skip to content

Commit

Permalink
Legacy trash removed
Browse files Browse the repository at this point in the history
  • Loading branch information
constant-null committed Mar 30, 2024
1 parent 60f0fad commit 2925d99
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions module/sheets/efs-character-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,28 +131,6 @@ export default class EFSCharacterSheet extends ActorSheet {
await this.actor.update({"system.dp.value": this.actor.system.dp.max - dp})
}

async _onSubmit(event, options) {
const formData = this._getSubmitData({});

// let defeatPoints = 0;
//
// let dps = formData["dp"].reverse();
// let max = dps.length;
// for (const idx in dps) {
// if (dps[idx]) {
// defeatPoints = max - idx
// break
// }
// }
//
//
// formData["data.dp.value"] = formData["data.dp.max"] - defeatPoints

options = options || {};
options.updateData = formData;
await super._onSubmit(event, options);
}

async _approachClicked(event) {
event.preventDefault();

Expand Down

0 comments on commit 2925d99

Please sign in to comment.