mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
Shortened another line using new the object
This commit is contained in:
parent
c8dd666939
commit
d44a0a1608
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
|||
}
|
||||
|
||||
var price = ((((item.specialClass == "wizard") && (item.type == "weapon")) || item.gearSet == "animal") + 1);
|
||||
if (type == 'weapon' || type == 'armor' || type == 'head' || type == 'shield' || type == 'headAccessory' || type == 'body' || type == 'back' || type == 'eyewear' ) {
|
||||
if (itemTypes[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