diff --git a/common/script/content/constants.js b/common/script/content/constants.js index 113894c334..9e05f57e62 100644 --- a/common/script/content/constants.js +++ b/common/script/content/constants.js @@ -34,3 +34,19 @@ export const GEAR_TYPES = [ 'headAccessory', 'eyewear', ]; + +export const ITEM_LIST = { + weapon: { localeKey: 'weapon', isEquipment: true }, + armor: { localeKey: 'armor', isEquipment: true }, + head: { localeKey: 'headgear', isEquipment: true }, + shield: { localeKey: 'offhand', isEquipment: true }, + back: { localeKey: 'back', isEquipment: true }, + body: { localeKey: 'body', isEquipment: true }, + headAccessory: { localeKey: 'headAccessory', isEquipment: true }, + eyewear: { localeKey: 'eyewear', isEquipment: true }, + hatchingPotions: { localeKey: 'hatchingPotion', isEquipment: false }, + eggs: { localeKey: 'eggSingular', isEquipment: false }, + quests: { localeKey: 'quest', isEquipment: false }, + food: { localeKey: 'foodText', isEquipment: false }, + Saddle: { localeKey: 'foodSaddleText', isEquipment: false }, +}; diff --git a/common/script/content/index.js b/common/script/content/index.js index c1125897cf..ce37e28fdd 100644 --- a/common/script/content/index.js +++ b/common/script/content/index.js @@ -12,6 +12,7 @@ import { CLASSES, EVENTS, GEAR_TYPES, + ITEM_LIST, } from './constants'; import mysterySets from './mystery-sets'; @@ -25,60 +26,7 @@ import mysterySets from './mystery-sets'; api.mystery = mysterySets; -api.itemList = { - 'weapon': { - localeKey: 'weapon', - isEquipment: true - }, - 'armor': { - localeKey: 'armor', - isEquipment: true - }, - 'head': { - localeKey: 'headgear', - isEquipment: true - }, - 'shield': { - localeKey: 'offhand', - isEquipment: true - }, - 'back': { - localeKey: 'back', - isEquipment: true - }, - 'body': { - localeKey: 'body', - isEquipment: true - }, - 'headAccessory': { - localeKey: 'headAccessory', - isEquipment: true - }, - 'eyewear': { - localeKey: 'eyewear', - isEquipment: true - }, - 'hatchingPotions': { - localeKey: 'hatchingPotion', - isEquipment: false - }, - 'eggs': { - localeKey: 'eggSingular', - isEquipment: false - }, - 'quests': { - localeKey: 'quest', - isEquipment: false - }, - 'food': { - localeKey: 'foodText', - isEquipment: false - }, - 'Saddle': { - localeKey: 'foodSaddleText', - isEquipment: false - } -}; +api.itemList = ITEM_LIST; gear = { weapon: { diff --git a/common/script/src/content/item-list.js b/common/script/src/content/item-list.js deleted file mode 100644 index e56aec678a..0000000000 --- a/common/script/src/content/item-list.js +++ /dev/null @@ -1,56 +0,0 @@ -let itemList = { - 'weapon': { - localeKey: 'weapon', - isEquipment: true - }, - 'armor': { - localeKey: 'armor', - isEquipment: true - }, - 'head': { - localeKey: 'headgear', - isEquipment: true - }, - 'shield': { - localeKey: 'offhand', - isEquipment: true - }, - 'back': { - localeKey: 'back', - isEquipment: true - }, - 'body': { - localeKey: 'body', - isEquipment: true - }, - 'headAccessory': { - localeKey: 'headAccessory', - isEquipment: true - }, - 'eyewear': { - localeKey: 'eyewear', - isEquipment: true - }, - 'hatchingPotions': { - localeKey: 'hatchingPotion', - isEquipment: false - }, - 'eggs': { - localeKey: 'eggSingular', - isEquipment: false - }, - 'quests': { - localeKey: 'quest', - isEquipment: false - }, - 'food': { - localeKey: 'foodText', - isEquipment: false - }, - 'Saddle': { - localeKey: 'foodSaddleText', - isEquipment: false - } -}; - -export default itemList;