Skip to content

Commit

Permalink
Revert "no pseudo"
Browse files Browse the repository at this point in the history
This reverts commit 78b3ed0.
  • Loading branch information
Kvan7 committed Dec 19, 2024
1 parent 78b3ed0 commit 81f845d
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 71 deletions.
4 changes: 2 additions & 2 deletions main/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exiled-exchange-2",
"version": "0.1.2-no-pseudo",
"version": "0.1.2",
"private": true,
"scripts": {
"dev": "node build/script.mjs",
Expand Down
136 changes: 68 additions & 68 deletions renderer/src/web/price-check/filters/pseudo/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
// populatePseudoRules,
// pseudoRules,
// stat,
stat,
STAT_BY_REF,
} from "@/assets/data";
// import { STAT_BY_REF } from "@/assets/data";
Expand All @@ -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"] },
Expand All @@ -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(
Expand Down

0 comments on commit 81f845d

Please sign in to comment.