mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-21 04:05:48 +00:00
add back all rest of pseudo for later
This commit is contained in:
@@ -34,7 +34,7 @@ const RESISTANCES_INFO = [
|
||||
// ref: stat("+#% to Cold and Lightning Resistances"),
|
||||
// elements: ["cold", "lightning"],
|
||||
// },
|
||||
// { ref: stat("+#% to Chaos Resistance"), elements: [""], chaos: true },
|
||||
{ ref: stat("+#% to Chaos Resistance"), elements: [""], chaos: true },
|
||||
// {
|
||||
// ref: stat("+#% to Fire and Chaos Resistances"),
|
||||
// elements: ["fire"],
|
||||
@@ -52,15 +52,15 @@ const RESISTANCES_INFO = [
|
||||
// },
|
||||
];
|
||||
|
||||
// const ATTRIBUTES_INFO = [
|
||||
// { ref: stat("+# to all Attributes"), attributes: ["str", "dex", "int"] },
|
||||
// { ref: stat("+# to Strength"), attributes: ["str"] },
|
||||
// { ref: stat("+# to Dexterity"), attributes: ["dex"] },
|
||||
// { ref: stat("+# to Intelligence"), attributes: ["int"] },
|
||||
// { ref: stat("+# to Strength and Intelligence"), attributes: ["str", "int"] },
|
||||
// { ref: stat("+# to Strength and Dexterity"), attributes: ["str", "dex"] },
|
||||
// { ref: stat("+# to Dexterity and Intelligence"), attributes: ["dex", "int"] },
|
||||
// ];
|
||||
const ATTRIBUTES_INFO = [
|
||||
{ ref: stat("+# to all Attributes"), attributes: ["str", "dex", "int"] },
|
||||
{ ref: stat("+# to Strength"), attributes: ["str"] },
|
||||
{ ref: stat("+# to Dexterity"), attributes: ["dex"] },
|
||||
{ ref: stat("+# to Intelligence"), attributes: ["int"] },
|
||||
{ ref: stat("+# to Strength and Intelligence"), attributes: ["str", "int"] },
|
||||
{ ref: stat("+# to Strength and Dexterity"), attributes: ["str", "dex"] },
|
||||
{ ref: stat("+# to Dexterity and Intelligence"), attributes: ["dex", "int"] },
|
||||
];
|
||||
|
||||
interface PseudoRule {
|
||||
group?: string;
|
||||
@@ -104,106 +104,106 @@ const PSEUDO_RULES: PseudoRule[] = [
|
||||
info.elements.includes("lightning"),
|
||||
).map((info) => ({ ref: info.ref })),
|
||||
},
|
||||
// {
|
||||
// pseudo: stat("+#% total to Chaos Resistance"),
|
||||
// stats: RESISTANCES_INFO.filter((info) => info.chaos === true).map(
|
||||
// (info) => ({ ref: info.ref }),
|
||||
// ),
|
||||
// mutate(filter) {
|
||||
// if (
|
||||
// filter.sources.length === 1 &&
|
||||
// filter.sources[0].modifier.info.type === ModifierType.Crafted
|
||||
// ) {
|
||||
// filter.hidden = "filters.hide_crafted_chaos";
|
||||
// } else {
|
||||
// filter.disabled = false;
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total to all Attributes"),
|
||||
// group: "to_all_attrs",
|
||||
// stats: [
|
||||
// { ref: stat("+# to all Attributes") },
|
||||
// // NOTE: not including other sources from `ATTRIBUTES_INFO`
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total to Strength"),
|
||||
// group: "to_x_attr",
|
||||
// stats: ATTRIBUTES_INFO.filter((info) =>
|
||||
// info.attributes.includes("str"),
|
||||
// ).map((info) => ({ ref: info.ref })),
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total to Dexterity"),
|
||||
// group: "to_x_attr",
|
||||
// stats: ATTRIBUTES_INFO.filter((info) =>
|
||||
// info.attributes.includes("dex"),
|
||||
// ).map((info) => ({ ref: info.ref })),
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total to Intelligence"),
|
||||
// group: "to_x_attr",
|
||||
// stats: ATTRIBUTES_INFO.filter((info) =>
|
||||
// info.attributes.includes("int"),
|
||||
// ).map((info) => ({ ref: info.ref })),
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total maximum Life"),
|
||||
// disabled: false,
|
||||
// stats: [
|
||||
// { ref: stat("+# to maximum Life"), required: true },
|
||||
// ...ATTRIBUTES_INFO.filter((info) => info.attributes.includes("str")).map(
|
||||
// (info) => ({ ref: info.ref, multiplier: 5 / 10 }),
|
||||
// ),
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total maximum Mana"),
|
||||
// stats: [
|
||||
// { ref: stat("+# to maximum Mana"), required: true },
|
||||
// ...ATTRIBUTES_INFO.filter((info) => info.attributes.includes("int")).map(
|
||||
// (info) => ({ ref: info.ref, multiplier: 5 / 10 }),
|
||||
// ),
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total maximum Spirit"),
|
||||
// stats: [{ ref: stat("+# to Spirit") }],
|
||||
// },
|
||||
{
|
||||
pseudo: stat("+#% total to Chaos Resistance"),
|
||||
stats: RESISTANCES_INFO.filter((info) => info.chaos === true).map(
|
||||
(info) => ({ ref: info.ref }),
|
||||
),
|
||||
mutate(filter) {
|
||||
if (
|
||||
filter.sources.length === 1 &&
|
||||
filter.sources[0].modifier.info.type === ModifierType.Crafted
|
||||
) {
|
||||
filter.hidden = "filters.hide_crafted_chaos";
|
||||
} else {
|
||||
filter.disabled = false;
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
pseudo: stat("+# total to all Attributes"),
|
||||
group: "to_all_attrs",
|
||||
stats: [
|
||||
{ ref: stat("+# to all Attributes") },
|
||||
// NOTE: not including other sources from `ATTRIBUTES_INFO`
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("+# total to Strength"),
|
||||
group: "to_x_attr",
|
||||
stats: ATTRIBUTES_INFO.filter((info) =>
|
||||
info.attributes.includes("str"),
|
||||
).map((info) => ({ ref: info.ref })),
|
||||
},
|
||||
{
|
||||
pseudo: stat("+# total to Dexterity"),
|
||||
group: "to_x_attr",
|
||||
stats: ATTRIBUTES_INFO.filter((info) =>
|
||||
info.attributes.includes("dex"),
|
||||
).map((info) => ({ ref: info.ref })),
|
||||
},
|
||||
{
|
||||
pseudo: stat("+# total to Intelligence"),
|
||||
group: "to_x_attr",
|
||||
stats: ATTRIBUTES_INFO.filter((info) =>
|
||||
info.attributes.includes("int"),
|
||||
).map((info) => ({ ref: info.ref })),
|
||||
},
|
||||
{
|
||||
pseudo: stat("+# total maximum Life"),
|
||||
disabled: false,
|
||||
stats: [
|
||||
{ ref: stat("+# to maximum Life"), required: true },
|
||||
...ATTRIBUTES_INFO.filter((info) => info.attributes.includes("str")).map(
|
||||
(info) => ({ ref: info.ref, multiplier: 5 / 10 }),
|
||||
),
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("+# total maximum Mana"),
|
||||
stats: [
|
||||
{ ref: stat("+# to maximum Mana"), required: true },
|
||||
...ATTRIBUTES_INFO.filter((info) => info.attributes.includes("int")).map(
|
||||
(info) => ({ ref: info.ref, multiplier: 5 / 10 }),
|
||||
),
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("+# total maximum Spirit"),
|
||||
stats: [{ ref: stat("+# to Spirit") }],
|
||||
},
|
||||
// {
|
||||
// pseudo: stat("#% total increased maximum Energy Shield"),
|
||||
// stats: [{ ref: stat("#% increased maximum Energy Shield") }],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+# total maximum Energy Shield"),
|
||||
// stats: [
|
||||
// { ref: stat("+# to maximum Energy Shield") }, // global
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+#% total Attack Speed"),
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Attack Speed") }, // global
|
||||
// // { ref: stat('#% increased Attack and Cast Speed') }
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("+#% total Cast Speed"),
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Cast Speed") },
|
||||
// // { ref: stat('#% increased Attack and Cast Speed') }
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Movement Speed"),
|
||||
// stats: [{ ref: stat("#% increased Movement Speed") }],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% total increased Physical Damage"),
|
||||
// stats: [{ ref: stat("#% increased Global Physical Damage") }],
|
||||
// },
|
||||
{
|
||||
pseudo: stat("+# total maximum Energy Shield"),
|
||||
stats: [
|
||||
{ ref: stat("+# to maximum Energy Shield") }, // global
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("+#% total Attack Speed"),
|
||||
stats: [
|
||||
{ ref: stat("#% increased Attack Speed") }, // global
|
||||
// { ref: stat('#% increased Attack and Cast Speed') }
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("+#% total Cast Speed"),
|
||||
stats: [
|
||||
{ ref: stat("#% increased Cast Speed") },
|
||||
// { ref: stat('#% increased Attack and Cast Speed') }
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Movement Speed"),
|
||||
stats: [{ ref: stat("#% increased Movement Speed") }],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% total increased Physical Damage"),
|
||||
stats: [{ ref: stat("#% increased Global Physical Damage") }],
|
||||
},
|
||||
// {
|
||||
// pseudo: stat("+#% Global Critical Strike Chance"),
|
||||
// group: "global_crit_chance",
|
||||
@@ -224,65 +224,65 @@ const PSEUDO_RULES: PseudoRule[] = [
|
||||
// pseudo: stat("+#% Global Critical Strike Multiplier"),
|
||||
// stats: [{ ref: stat("+#% to Global Critical Strike Multiplier") }],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Elemental Damage"),
|
||||
// group: "incr_ele_dmg",
|
||||
// stats: [{ ref: stat("#% increased Elemental Damage") }],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Lightning Damage"),
|
||||
// replaces: "incr_ele_dmg",
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Lightning Damage"), required: true },
|
||||
// { ref: stat("#% increased Elemental Damage") },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Cold Damage"),
|
||||
// replaces: "incr_ele_dmg",
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Cold Damage"), required: true },
|
||||
// { ref: stat("#% increased Elemental Damage") },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Fire Damage"),
|
||||
// group: "incr_fire_dmg",
|
||||
// replaces: "incr_ele_dmg",
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Fire Damage"), required: true },
|
||||
// { ref: stat("#% increased Elemental Damage") },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Spell Damage"),
|
||||
// group: "incr_spell_dmg",
|
||||
// stats: [{ ref: stat("#% increased Spell Damage") }],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Lightning Spell Damage"),
|
||||
// replaces: "incr_spell_dmg",
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Lightning Spell Damage"), required: true },
|
||||
// { ref: stat("#% increased Spell Damage") },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Cold Spell Damage"),
|
||||
// replaces: "incr_spell_dmg",
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Cold Spell Damage"), required: true },
|
||||
// { ref: stat("#% increased Spell Damage") },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Fire Spell Damage"),
|
||||
// replaces: "incr_spell_dmg",
|
||||
// stats: [
|
||||
// { ref: stat("#% increased Fire Spell Damage"), required: true },
|
||||
// { ref: stat("#% increased Spell Damage") },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
pseudo: stat("#% increased Elemental Damage"),
|
||||
group: "incr_ele_dmg",
|
||||
stats: [{ ref: stat("#% increased Elemental Damage") }],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Lightning Damage"),
|
||||
replaces: "incr_ele_dmg",
|
||||
stats: [
|
||||
{ ref: stat("#% increased Lightning Damage"), required: true },
|
||||
{ ref: stat("#% increased Elemental Damage") },
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Cold Damage"),
|
||||
replaces: "incr_ele_dmg",
|
||||
stats: [
|
||||
{ ref: stat("#% increased Cold Damage"), required: true },
|
||||
{ ref: stat("#% increased Elemental Damage") },
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Fire Damage"),
|
||||
group: "incr_fire_dmg",
|
||||
replaces: "incr_ele_dmg",
|
||||
stats: [
|
||||
{ ref: stat("#% increased Fire Damage"), required: true },
|
||||
{ ref: stat("#% increased Elemental Damage") },
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Spell Damage"),
|
||||
group: "incr_spell_dmg",
|
||||
stats: [{ ref: stat("#% increased Spell Damage") }],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Lightning Spell Damage"),
|
||||
replaces: "incr_spell_dmg",
|
||||
stats: [
|
||||
{ ref: stat("#% increased Lightning Spell Damage"), required: true },
|
||||
{ ref: stat("#% increased Spell Damage") },
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Cold Spell Damage"),
|
||||
replaces: "incr_spell_dmg",
|
||||
stats: [
|
||||
{ ref: stat("#% increased Cold Spell Damage"), required: true },
|
||||
{ ref: stat("#% increased Spell Damage") },
|
||||
],
|
||||
},
|
||||
{
|
||||
pseudo: stat("#% increased Fire Spell Damage"),
|
||||
replaces: "incr_spell_dmg",
|
||||
stats: [
|
||||
{ ref: stat("#% increased Fire Spell Damage"), required: true },
|
||||
{ ref: stat("#% increased Spell Damage") },
|
||||
],
|
||||
},
|
||||
// {
|
||||
// pseudo: stat("#% increased Elemental Damage with Attack Skills"),
|
||||
// replaces: "incr_ele_dmg",
|
||||
@@ -319,10 +319,10 @@ const PSEUDO_RULES: PseudoRule[] = [
|
||||
// pseudo: stat("#% of Physical Attack Damage Leeched as Mana"),
|
||||
// stats: [{ ref: stat("#% of Physical Attack Damage Leeched as Mana") }],
|
||||
// },
|
||||
// {
|
||||
// pseudo: stat("#% increased Mana Regeneration Rate"),
|
||||
// stats: [{ ref: stat("#% increased Mana Regeneration Rate") }],
|
||||
// },
|
||||
{
|
||||
pseudo: stat("#% increased Mana Regeneration Rate"),
|
||||
stats: [{ ref: stat("#% increased Mana Regeneration Rate") }],
|
||||
},
|
||||
];
|
||||
|
||||
export function filterPseudo(ctx: FiltersCreationContext) {
|
||||
|
||||
Reference in New Issue
Block a user