This commit is contained in:
kvan7
2024-12-18 18:43:44 -06:00
parent a7009fad05
commit 993840d2fc

View File

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