Skip to content

Commit

Permalink
Merge pull request dmdorman#1259 from phBalance/phBalance/entangle-cost
Browse files Browse the repository at this point in the history
fix spelling and other small issues
  • Loading branch information
phBalance authored Sep 28, 2024
2 parents 445b9ed + 5a9e081 commit b3465d0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion module/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6455,7 +6455,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
{
// costPerLevel: 0.5,
// dc: true,
minumumLimitation: -0.25,
minimumLimitation: -0.25,
xml: `<MODIFIER XMLID="REQUIRESASKILLROLL" ID="1596334078849" BASECOST="0.25" LEVELS="0" ALIAS="Requires A Roll" POSITION="-1" MULTIPLIER="1.0" GRAPHIC="Burst" COLOR="255 255 255" SFX="Default" SHOW_ACTIVE_COST="Yes" OPTION="14" OPTIONID="14" OPTION_ALIAS="14- roll" INCLUDE_NOTES_IN_PRINTOUT="Yes" NAME="" COMMENTS="" PRIVATE="No" FORCEALLOW="No">
<NOTES />
</MODIFIER>`,
Expand Down
2 changes: 1 addition & 1 deletion module/item/item-attack-application.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion module/item/item-attack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
8 changes: 4 additions & 4 deletions module/item/item.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -2502,7 +2502,7 @@ export class HeroSystem6eItem extends Item {
getPowerInfo({
item: o,
actor: this.actor,
})?.minumumLimitation,
})?.minimumLimitation,
);

// Add limitations from parent
Expand Down Expand Up @@ -3571,7 +3571,7 @@ export class HeroSystem6eItem extends Item {
item: modifier,
actor: this.actor,
});
if (modPowerInfo?.minumumLimitation) {
if (modPowerInfo?.minimumLimitation) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion module/utility/adjustment.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b3465d0

Please sign in to comment.