Compare commits

...

1 Commits

Author SHA1 Message Date
kvan7
993840d2fc remove 2024-12-18 18:43:44 -06:00

View File

@@ -12,19 +12,19 @@ import {
} from "../create-stat-filters"; } from "../create-stat-filters";
import type { StatFilter } from "../interfaces"; import type { StatFilter } from "../interfaces";
const RESISTANCES_INFO = [ // const RESISTANCES_INFO = [
// { // {
// ref: stat("+#% to All Resistances"), // ref: stat("+#% to All Resistances"),
// elements: ["fire", "cold", "lightning"], // elements: ["fire", "cold", "lightning"],
// chaos: true, // chaos: true,
// }, // },
{ // {
ref: stat("+#% to all Elemental Resistances"), // ref: stat("+#% to all Elemental Resistances"),
elements: ["fire", "cold", "lightning"], // elements: ["fire", "cold", "lightning"],
}, // },
{ ref: stat("+#% to Fire Resistance"), elements: ["fire"] }, // { ref: stat("+#% to Fire Resistance"), elements: ["fire"] },
{ ref: stat("+#% to Cold Resistance"), elements: ["cold"] }, // { ref: stat("+#% to Cold Resistance"), elements: ["cold"] },
{ ref: stat("+#% to Lightning Resistance"), elements: ["lightning"] }, // { ref: stat("+#% to Lightning Resistance"), elements: ["lightning"] },
// { // {
// ref: stat("+#% to Fire and Lightning Resistances"), // ref: stat("+#% to Fire and Lightning Resistances"),
// elements: ["fire", "lightning"], // elements: ["fire", "lightning"],
@@ -50,7 +50,7 @@ const RESISTANCES_INFO = [
// elements: ["lightning"], // elements: ["lightning"],
// chaos: true, // chaos: true,
// }, // },
]; // ];
// const ATTRIBUTES_INFO = [ // const ATTRIBUTES_INFO = [
// { ref: stat("+# to all Attributes"), attributes: ["str", "dex", "int"] }, // { ref: stat("+# to all Attributes"), attributes: ["str", "dex", "int"] },
@@ -76,34 +76,34 @@ interface PseudoRule {
} }
const PSEUDO_RULES: PseudoRule[] = [ const PSEUDO_RULES: PseudoRule[] = [
{ // {
pseudo: stat("+#% total Elemental Resistance"), // pseudo: stat("+#% total Elemental Resistance"),
disabled: false, // disabled: false,
stats: RESISTANCES_INFO.filter((info) => info.elements.length).map( // stats: RESISTANCES_INFO.filter((info) => info.elements.length).map(
(info) => ({ ref: info.ref, multiplier: info.elements.length }), // (info) => ({ ref: info.ref, multiplier: info.elements.length }),
), // ),
}, // },
{ // {
pseudo: stat("+#% total to Fire Resistance"), // pseudo: stat("+#% total to Fire Resistance"),
group: "to_x_ele_res", // group: "to_x_ele_res",
stats: RESISTANCES_INFO.filter((info) => // stats: RESISTANCES_INFO.filter((info) =>
info.elements.includes("fire"), // info.elements.includes("fire"),
).map((info) => ({ ref: info.ref })), // ).map((info) => ({ ref: info.ref })),
}, // },
{ // {
pseudo: stat("+#% total to Cold Resistance"), // pseudo: stat("+#% total to Cold Resistance"),
group: "to_x_ele_res", // group: "to_x_ele_res",
stats: RESISTANCES_INFO.filter((info) => // stats: RESISTANCES_INFO.filter((info) =>
info.elements.includes("cold"), // info.elements.includes("cold"),
).map((info) => ({ ref: info.ref })), // ).map((info) => ({ ref: info.ref })),
}, // },
{ // {
pseudo: stat("+#% total to Lightning Resistance"), // pseudo: stat("+#% total to Lightning Resistance"),
group: "to_x_ele_res", // group: "to_x_ele_res",
stats: RESISTANCES_INFO.filter((info) => // stats: RESISTANCES_INFO.filter((info) =>
info.elements.includes("lightning"), // info.elements.includes("lightning"),
).map((info) => ({ ref: info.ref })), // ).map((info) => ({ ref: info.ref })),
}, // },
// { // {
// pseudo: stat("+#% total to Chaos Resistance"), // pseudo: stat("+#% total to Chaos Resistance"),
// stats: RESISTANCES_INFO.filter((info) => info.chaos === true).map( // stats: RESISTANCES_INFO.filter((info) => info.chaos === true).map(