diff --git a/renderer/src/parser/meta.ts b/renderer/src/parser/meta.ts index 36879b90..7cac406b 100644 --- a/renderer/src/parser/meta.ts +++ b/renderer/src/parser/meta.ts @@ -78,20 +78,25 @@ export const WEAPON_ONE_HANDED = new Set([ ...WEAPON_ONE_HANDED_MELEE, ]); -export const WEAPONE_TWO_HANDED_MELEE = new Set([ +export const WEAPON_TWO_HANDED_MELEE = new Set([ ItemCategory.TwoHandedAxe, ItemCategory.TwoHandedMace, ItemCategory.TwoHandedSword, ItemCategory.Warstaff, ]); +export const MARTIAL_WEAPON = new Set([ + ItemCategory.Bow, + ItemCategory.Crossbow, + ...WEAPON_ONE_HANDED_MELEE, + ...WEAPON_TWO_HANDED_MELEE, +]); + export const WEAPON = new Set([ ItemCategory.Staff, ItemCategory.FishingRod, - ItemCategory.Bow, - ItemCategory.Crossbow, ...WEAPON_ONE_HANDED, - ...WEAPONE_TWO_HANDED_MELEE, + ...MARTIAL_WEAPON, ]); export const ARMOUR = new Set([ diff --git a/renderer/src/web/price-check/filters/util.ts b/renderer/src/web/price-check/filters/util.ts index adf9d44d..6ad4c40f 100644 --- a/renderer/src/web/price-check/filters/util.ts +++ b/renderer/src/web/price-check/filters/util.ts @@ -1,5 +1,10 @@ import { ItemRarity, ParsedItem } from "@/parser"; -import { ARMOUR, ItemCategory, ItemEditorType, WEAPON } from "@/parser/meta"; +import { + ARMOUR, + ItemCategory, + ItemEditorType, + MARTIAL_WEAPON, +} from "@/parser/meta"; function decimalPlaces(value: number, dp: number | boolean): number { if (typeof dp === "number") { @@ -47,7 +52,7 @@ export function getItemEditorType(item: ParsedItem): ItemEditorType { ) { return ItemEditorType.Catalyst; } else if ( - (WEAPON.has(item.category) || ARMOUR.has(item.category)) && + (MARTIAL_WEAPON.has(item.category) || ARMOUR.has(item.category)) && item.rarity && item.rarity !== ItemRarity.Unique ) {