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:
Kirsty
2018-09-24 16:36:26 +01:00
committed by Matteo Pagliazzi
parent 833ceb3bf3
commit 1395380dfe
2 changed files with 62 additions and 17 deletions

View File

@@ -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}}