fix non-autofixable linting errors

This commit is contained in:
jalensailin
2025-08-26 16:35:09 -04:00
parent 8082eb0bf4
commit b7ac0f638c
6 changed files with 17 additions and 9 deletions
+6 -2
View File
@@ -98,7 +98,9 @@ export default class DeltaGreenActor extends Actor {
try {
delete system.skills.ritual; // try to remove legacy skill for ritual if it exists
} catch {}
} catch {
// do nothing
}
system.sanity.ritual = 99 - system.sanity.value;
@@ -189,7 +191,9 @@ export default class DeltaGreenActor extends Actor {
try {
delete system.skills.ritual; // try to remove legacy skill for ritual if it exists
} catch {}
} catch {
// do nothing
}
system.sanity.ritual = 99 - system.sanity.value;
+4 -6
View File
@@ -116,7 +116,7 @@ export default class DeltaGreenItemSheet extends foundry.appv1.sheets
key: dataset.key,
// actor: this,
specialTrainingName: dataset?.name || null, // Only applies to Special Training Rolls
item: this,
item: this.item,
};
// Create a default 1d100 roll just in case.
@@ -133,8 +133,8 @@ export default class DeltaGreenItemSheet extends foundry.appv1.sheets
roll = new DGLethalityRoll("1D100", {}, rollOptions);
break;
case "damage": {
let diceFormula = item.system.damage;
const { skill } = item.system;
let diceFormula = this.item.system.damage;
const { skill } = this.item.system;
if (
this.actor.type === "agent" &&
(skill === "unarmed_combat" || skill === "melee_weapons")
@@ -146,10 +146,8 @@ export default class DeltaGreenItemSheet extends foundry.appv1.sheets
break;
}
case "sanity-damage": {
let combinedFormula;
const { successLoss, failedLoss } = this.item.system.sanity;
combinedFormula = `{${successLoss}, ${failedLoss}}`;
const combinedFormula = `{${successLoss}, ${failedLoss}}`;
roll = new DGSanityDamageRoll(combinedFormula, {}, rollOptions);
break;
+3
View File
@@ -1,3 +1,5 @@
/* eslint-disable import/prefer-default-export */
export async function handleInlineActions(btnWithAction, messageId) {
const action = btnWithAction.dataset?.action;
const message = game.messages.get(messageId);
@@ -8,6 +10,7 @@ export async function handleInlineActions(btnWithAction, messageId) {
const rollbackFlag = message.getFlag("deltagreen", "rollbacks");
await actor.update(foundry.utils.deepClone(rollbackFlag));
// eslint-disable-next-line no-use-before-define
toggleAllSkillFailures(rollbackFlag);
const label = btnWithAction
+2
View File
@@ -1,5 +1,7 @@
import * as DGRolls from "../roll/roll.js";
const { fromUuid } = foundry.utils;
/* -------------------------------------------- */
/* Hotbar Macros */
/* -------------------------------------------- */
+1
View File
@@ -113,6 +113,7 @@ function GetAttacksFromInput(inputText) {
// look for armor piercing
if (attackLine.indexOf("ARMOR PIERCING") >= 0) {
// TODO: This should do something.
}
}
+1 -1
View File
@@ -144,7 +144,7 @@ export class DGPercentileRoll extends DGRoll {
this.actor.system.settings.rolling.defaultPercentileModifier,
);
} catch {
/* empty */
// do nothing
}
}