mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Fixed small error with ternary statement and assignment of string
This commit is contained in:
@@ -215,8 +215,6 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
|
||||
var gems = User.user.balance * 4;
|
||||
|
||||
|
||||
|
||||
var equipmentList = {
|
||||
'weapon': window.env.t('weapon'),
|
||||
'armor' : window.env.t('armor'),
|
||||
@@ -232,7 +230,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
'Saddle' : window.env.t('foodSaddleText').toLowerCase()
|
||||
};
|
||||
|
||||
var string = (type in equipmentList) ? string = equipmentList.type : string = type;
|
||||
var string = (type in equipmentList) ? equipmentList.type : type;
|
||||
// var string = (type == 'weapon') ? window.env.t('weapon') : (type == 'armor') ? window.env.t('armor') : (type == 'head') ? window.env.t('headgear') : (type == 'shield') ? window.env.t('offhand') : (type == 'back') ? window.env.t('back') : (type == 'body') ? window.env.t('body') : (type == 'headAccessory') ? window.env.t('headAccessory') : (type == 'eyewear') ? window.env.t('eyewear') : (type == 'hatchingPotions') ? window.env.t('hatchingPotion') : (type == 'eggs') ? window.env.t('eggSingular') : (type == 'quests') ? window.env.t('quest') : (item.key == 'Saddle') ? window.env.t('foodSaddleText').toLowerCase() : type; // FIXME this is ugly but temporary, once the purchase modal is done this will be removed
|
||||
|
||||
var price = ((((item.specialClass == "wizard") && (item.type == "weapon")) || item.gearSet == "animal") + 1);
|
||||
|
||||
Reference in New Issue
Block a user