diff --git a/module/config.mjs b/module/config.mjs index 83bf6630..a7925662 100644 --- a/module/config.mjs +++ b/module/config.mjs @@ -6455,7 +6455,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) { { // costPerLevel: 0.5, // dc: true, - minumumLimitation: -0.25, + minimumLimitation: -0.25, xml: ` `, diff --git a/module/item/item-attack-application.mjs b/module/item/item-attack-application.mjs index d580687b..fe8e3f2e 100644 --- a/module/item/item-attack-application.mjs +++ b/module/item/item-attack-application.mjs @@ -93,7 +93,7 @@ export class ItemAttackFormApplication extends FormApplication { data.ocvMod ??= item.system.ocv; data.dcvMod ??= item.system.dcv; - data.omcvMod ??= item.system.ocv; //TODO: May need to make a distincsion between OCV/OMCV + data.omcvMod ??= item.system.ocv; //TODO: May need to make a distinction between OCV/OMCV data.dmcvMod ??= item.system.dcv; data.effectiveStr ??= data.str; data.effectiveLevels ??= data.item.system.LEVELS; diff --git a/module/item/item-attack.mjs b/module/item/item-attack.mjs index 09925452..a4696655 100644 --- a/module/item/item-attack.mjs +++ b/module/item/item-attack.mjs @@ -430,7 +430,7 @@ export async function AttackToHit(item, options) { _dcvValue = dmcv; } - let activeEffect = { + const activeEffect = { label: `${item.name} ${_dcvValue.signedString()} ${_dcvText}`, icon: dcv < 0 ? "icons/svg/downgrade.svg" : "icons/svg/upgrade.svg", changes: [ diff --git a/module/item/item.mjs b/module/item/item.mjs index 39735f30..4ccddaab 100644 --- a/module/item/item.mjs +++ b/module/item/item.mjs @@ -2210,7 +2210,7 @@ export class HeroSystem6eItem extends Item { const adderBaseCost = parseInt(adder.BASECOST || adder.LVLCOST) || 0; //adder.BASECOST_total = adderBaseCost; - if (adder.SELECTED != false) { + if (adder.SELECTED !== false) { //TRANSPORT_FAMILIARITY const adderCostPerLevel = parseFloat(adder.LVLCOST || 0) / parseFloat(adder.LVLVAL || 1) || 1; const adderLevels = parseInt(adder.LEVELS); @@ -2364,7 +2364,7 @@ export class HeroSystem6eItem extends Item { }); // This may be a limitation with an unusual BASECOST (for example REQUIRESASKILLROLL 14-) - if (modPowerInfo?.minumumLimitation) { + if (modPowerInfo?.minimumLimitation) { continue; } @@ -2502,7 +2502,7 @@ export class HeroSystem6eItem extends Item { getPowerInfo({ item: o, actor: this.actor, - })?.minumumLimitation, + })?.minimumLimitation, ); // Add limitations from parent @@ -3571,7 +3571,7 @@ export class HeroSystem6eItem extends Item { item: modifier, actor: this.actor, }); - if (modPowerInfo?.minumumLimitation) { + if (modPowerInfo?.minimumLimitation) { continue; } diff --git a/module/utility/adjustment.mjs b/module/utility/adjustment.mjs index 1be821bc..370ccd0f 100644 --- a/module/utility/adjustment.mjs +++ b/module/utility/adjustment.mjs @@ -397,7 +397,7 @@ export async function performAdjustment( // Do we have a target? if (!targetCharacteristic && !targetPower) { - console.error(`${nameOfCharOrPower} is an invalid target for the adjustmment power ${item.name}`); + console.error(`${nameOfCharOrPower} is an invalid target for the adjustment power ${item.name}`); return; }