Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Muttley committed Nov 24, 2023
1 parent 83cd7c9 commit 1b6b4ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions system/src/combat/combat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export default class Combat2d20 extends Combat {

async startCombat() {
const updateData = {
round: 1,
turn: 0,
"round": 1,
"turn": 0,
"flags.combatantsTurnDone": [],
};

Expand Down
6 changes: 3 additions & 3 deletions system/src/documents/item.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ export class ACItem extends Item {
let focuses = this.system.focuses;
const focus = { title: "", isfocus: false, description: "" };
focuses = [...focuses, focus];
let updatedItem = { _id: this.id, "system.focuses": focuses };
let updatedItem = { "_id": this.id, "system.focuses": focuses };
await this.update(updatedItem);
}

async deleteFocus(_index) {
let focuses = this.system.focuses;
focuses.splice(_index, 1);
let updatedItem = { _id: this.id, "system.focuses": focuses };
let updatedItem = { "_id": this.id, "system.focuses": focuses };
await this.update(updatedItem);
}

async updateFocuses(_focuses) {
let updatedItem = { _id: this.id, "system.focuses": _focuses };
let updatedItem = { "_id": this.id, "system.focuses": _focuses };
await this.update(updatedItem);
}

Expand Down
8 changes: 4 additions & 4 deletions system/src/helpers/effects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export function onManageActiveEffect(event, owner) {
switch ( a.dataset.action ) {
case "create":
return owner.createEmbeddedDocuments("ActiveEffect", [{
label: "New Effect",
icon: "icons/svg/aura.svg",
origin: owner.uuid,
"label": "New Effect",
"icon": "icons/svg/aura.svg",
"origin": owner.uuid,
"duration.rounds": li.dataset.effectType === "temporary" ? 1 : undefined,
disabled: li.dataset.effectType === "inactive",
"disabled": li.dataset.effectType === "inactive",
}]);
case "edit":
return effect.sheet.render(true);
Expand Down

0 comments on commit 1b6b4ad

Please sign in to comment.