mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Change variable name to itemList
This commit is contained in:
@@ -215,14 +215,14 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
|
||||
var gems = User.user.balance * 4;
|
||||
|
||||
var itemTypes = Content.itemList;
|
||||
var itemList = Content.itemList;
|
||||
var string = type;
|
||||
if (itemTypes[type]) {
|
||||
string = window.env.t(itemTypes[type].localeKey)
|
||||
if (itemList[type]) {
|
||||
string = window.env.t(itemList[type].localeKey)
|
||||
}
|
||||
|
||||
var price = ((((item.specialClass == "wizard") && (item.type == "weapon")) || item.gearSet == "animal") + 1);
|
||||
if (itemTypes[type].isEquipment) {
|
||||
if (itemList[type].isEquipment) {
|
||||
if (User.user.items.gear.owned[item.key]) {
|
||||
if (User.user.preferences.costume) return User.user.ops.equip({params:{type: 'costume', key: item.key}});
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user