mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Allow animal ears to be added to costume or equipped gear
This commit is contained in:
@@ -212,12 +212,11 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
|
||||
// @TODO: Extract equip and purchase into equipment service
|
||||
$rootScope.equip = function(itemKey, equipType) {
|
||||
equipType = equipType || (user.preferences.costume ? 'costume' : 'equipped');
|
||||
var equipParams = {
|
||||
type: equipType || 'costume',
|
||||
type: equipType,
|
||||
key: itemKey
|
||||
};
|
||||
// 'costume' default is in case I have missed any code that uses this.
|
||||
// @TODO: Remove when we're sure it's not needed.
|
||||
|
||||
user.ops.equip({ params: equipParams });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user