mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Animal ears after death (#10691)
* Animal Ears purchasable with Gold if lost in Death * remove ears from pinned items when set is bought * standardise css and error handling for gems and coins * revert accidental new line
This commit is contained in:
@@ -73,6 +73,8 @@ module.exports = function unlock (user, req = {}, analytics) {
|
||||
if (path.indexOf('gear.') !== -1) {
|
||||
// Using Object so path[1] won't create an array but an object {path: {1: value}}
|
||||
setWith(user, pathPart, true, Object);
|
||||
let itemName = pathPart.split('.').pop();
|
||||
removeItemByPath(user, `gear.flat.${itemName}`);
|
||||
}
|
||||
|
||||
// Using Object so path[1] won't create an array but an object {path: {1: value}}
|
||||
|
||||
Reference in New Issue
Block a user