mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
Change variable name to itemList
This commit is contained in:
parent
d44a0a1608
commit
cb4b2e43bf
1 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue