diff --git a/module/config.mjs b/module/config.mjs
index cf60965b..03052187 100644
--- a/module/config.mjs
+++ b/module/config.mjs
@@ -5334,7 +5334,6 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
key: "MINDLINK",
-
type: ["mental"],
behaviors: ["attack", "activatable", "dice"],
perceivability: "imperceptible",
@@ -6451,6 +6450,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
(function addAddersToPowerList() {
addPower(undefined, {
+ key: "DOUBLEAREA",
xml: `
`,
@@ -6458,6 +6458,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "DOUBLEHEIGHT",
cost: function (adder) {
const levels = parseInt(adder.LEVELS);
const baseCost = parseFloat(adder.BASECOST);
@@ -6473,6 +6474,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "DOUBLEWIDTH",
cost: function (adder) {
const levels = parseInt(adder.LEVELS);
const baseCost = parseFloat(adder.BASECOST);
@@ -6488,6 +6490,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "FIXEDSHAPE",
// cost: function (adder) {
// const levels = parseInt(adder.LEVELS);
// const baseCost = parseFloat(adder.BASECOST);
@@ -6503,6 +6506,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "MOBILE",
cost: function (adder) {
const levels = parseInt(adder.LEVELS);
const baseCost = parseFloat(adder.BASECOST);
@@ -6518,6 +6522,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "PLUSONEHALFDIE",
xml: ``,
},
{},
@@ -6525,6 +6530,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "PLUSONEPIP",
xml: ``,
},
{},
@@ -6532,6 +6538,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "MINUSONEPIP",
xml: ``,
},
{},
@@ -6541,7 +6548,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
(function addModifiersToPowerList() {
addPower(
{
- // AOE
+ key: "AOE",
cost: function (modifier) {
const levels = parseInt(modifier.LEVELS) || 0;
let _cost = 0;
@@ -6566,19 +6573,6 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
_cost = 0;
}
- // // AOE ADDERS
- // for (const adder of modifier.ADDER || []) {
- // const adderPowerInfo = getPowerInfo({
- // item: adder,
- // actor: item.actor,
- // });
- // if (adderPowerInfo.cost) {
- // if (typeof adderPowerInfo.cost === "function") {
- // _cost += adderPowerInfo.cost(adder);
- // }
- // }
- // }
- // modifier.BASECOST_total = _cost;
return _cost;
},
dc: true,
@@ -6603,9 +6597,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
},
],
},
- xml: `
-
- `,
+ xml: ``,
},
{
// 5e AOE cost is in BASECOST
@@ -6645,19 +6637,16 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
},
],
},
- xml: `
-
- `,
+ xml: ``,
},
);
addPower(
{
+ key: "ARMORPIERCING",
costPerLevel: 0.25,
dc: true,
- xml: `
-
- `,
+ xml: ``,
},
{
costPerLevel: 0.5,
@@ -6666,44 +6655,60 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
addPower(
{
+ key: "AUTOFIRE",
dc: true,
- xml: `
-
- `,
+ xml: ``,
},
{},
);
addPower(
{
- xml: ``,
+ key: "CHARGES",
+ xml: ``,
},
{},
);
addPower(
{
+ key: "COSTSEND",
dc: true,
- xml: `
-
- `,
+ xml: ``,
+ },
+ {},
+ );
+
+ addPower(
+ {
+ key: "CONCENTRATION",
+ xml: ``,
},
{},
);
addPower(
{
+ key: "CONTINUOUS",
+ dc: true,
+ xml: ``,
+ },
+ {},
+ );
+
+ addPower(
+ {
+ key: "CUMULATIVE",
dc: true,
costPerLevel: 0.25,
- xml: `
-
- `,
+ xml: ``,
},
{},
);
addPower(
{
+ key: "EXPLOSION",
cost: function (modifier, item) {
const baseCost = parseFloat(modifier.BASECOST);
const levels = parseInt(modifier.LEVELS);
@@ -6747,61 +6752,93 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
},
],
},
- xml: `
-
- `,
+ xml: ``,
},
{},
);
addPower(
{
- xml: `
-
- `,
+ key: "FOCUS",
+ xml: ``,
},
{},
);
addPower(
{
+ key: "GESTURES",
+ xml: ``,
+ },
+ {},
+ );
+
+ addPower(
+ {
+ key: "HARDENED",
costPerLevel: 0.25,
- xml: ``,
+ xml: ``,
+ },
+ {},
+ );
+
+ addPower(
+ {
+ key: "INCANTATIONS",
+ xml: ``,
},
{},
);
addPower(
{
+ key: "IMPENETRABLE",
costPerLevel: 0.25,
- xml: ``,
+ xml: ``,
},
undefined,
);
addPower(
{
- xml: ``,
+ key: "NOBARRIERS",
+ xml: ``,
+ },
+ {},
+ );
+
+ addPower(
+ {
+ key: "NORANGE",
+ xml: ``,
+ },
+ {},
+ );
+
+ addPower(
+ {
+ key: "OIHID",
+ xml: ``,
},
{},
);
addPower(
{
+ key: "PENETRATING",
costPerLevel: 0.5,
dc: true,
// cost: function (modifier) {
// return parseInt(modifier.LEVELS) * this.costPerLevel;
// },
- xml: `
-
- `,
+ xml: ``,
},
{},
);
addPower(
{
+ key: "REDUCEDEND",
// costPerLevel: 0.5,
// dc: true,
cost: function (modifier, item) {
@@ -6811,30 +6848,34 @@ function addPower(powerDescription6e, powerOverrideFor5e) {
}
return parseFloat(modifier.BASECOST);
},
- xml: `
-
- `,
+ xml: ``,
},
{},
);
addPower(
{
- xml: `
-
- `,
+ key: "REQUIRESASKILLROLL",
+ // costPerLevel: 0.5,
+ // dc: true,
+ minimumLimitation: -0.25,
+ xml: ``,
},
{},
);
addPower(
{
- // costPerLevel: 0.5,
- // dc: true,
- minimumLimitation: -0.25,
- xml: `
-
- `,
+ key: "SELFONLY",
+ xml: ``,
+ },
+ {},
+ );
+
+ addPower(
+ {
+ key: "VISIBLE",
+ xml: ``,
},
{},
);
diff --git a/module/item/item.mjs b/module/item/item.mjs
index 00da8687..71cc810c 100644
--- a/module/item/item.mjs
+++ b/module/item/item.mjs
@@ -2584,7 +2584,7 @@ export class HeroSystem6eItem extends Item {
});
if (!adderPowerInfo) {
- console.warn(`Missing powerInfo for ${adder.XMLID}`, adder);
+ console.warn(`Missing powerInfo for adder ${adder.XMLID}`, adder);
}
let adderCost = adderPowerInfo?.cost ? adderPowerInfo.cost(adder, this) : 0;
@@ -2674,7 +2674,7 @@ export class HeroSystem6eItem extends Item {
is5e: this.is5e,
});
if (!modPowerInfo) {
- console.warn(`Missing powerInfo for ${modifier.XMLID}`, modifier);
+ console.warn(`Missing powerInfo for modifier ${modifier.XMLID}`, modifier);
}
const modifierBaseCost = parseFloat(modifier.BASECOST || 0);