Change variable name to itemList

This commit is contained in:
Blade Barringer
2015-07-11 11:14:50 -05:00
parent d44a0a1608
commit cb4b2e43bf

View File

@@ -215,14 +215,14 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
var gems = User.user.balance * 4; var gems = User.user.balance * 4;
var itemTypes = Content.itemList; var itemList = Content.itemList;
var string = type; var string = type;
if (itemTypes[type]) { if (itemList[type]) {
string = window.env.t(itemTypes[type].localeKey) string = window.env.t(itemList[type].localeKey)
} }
var price = ((((item.specialClass == "wizard") && (item.type == "weapon")) || item.gearSet == "animal") + 1); 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.items.gear.owned[item.key]) {
if (User.user.preferences.costume) return User.user.ops.equip({params:{type: 'costume', key: item.key}}); if (User.user.preferences.costume) return User.user.ops.equip({params:{type: 'costume', key: item.key}});
else { else {