mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Move item list to separate module
This commit is contained in:
@@ -19,20 +19,7 @@ events = require('../../dist/scripts/content/events')
|
|||||||
|
|
||||||
api.mystery = require('../../dist/scripts/content/mystery-sets')
|
api.mystery = require('../../dist/scripts/content/mystery-sets')
|
||||||
|
|
||||||
api.itemList =
|
api.itemList =require('../../dist/scripts/content/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}
|
|
||||||
|
|
||||||
gear =
|
gear =
|
||||||
weapon:
|
weapon:
|
||||||
|
|||||||
56
common/script/src/content/item-list.js
Normal file
56
common/script/src/content/item-list.js
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
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;
|
||||||
Reference in New Issue
Block a user