habitica/script
Cole Gleason 2283093845 fix(ultimateGear): fix bug where ultimateGear isn't awarded
This does several things:
- Moves the calculation of the ultimateGear achievement into its own
function on user.ops.
- Only computes ultimateGear if item is last and the user does not
already have the achievement
- Fixes bug where ultimateGear was not awarded if user wasn't wearing
their class gear at the time of item purchase.
- Adds content.classes and content.gearTypes which we should start using
elsewhere.
- Added tests for ultimateGear

Fixes HabitRPG/habitrpg#2232.
2014-01-23 23:49:04 -06:00
..
content.coffee fix(ultimateGear): fix bug where ultimateGear isn't awarded 2014-01-23 23:49:04 -06:00
directives.js move markdown directive out of main site into shared (so mobile can use it) 2014-01-14 11:11:14 -07:00
index.coffee fix(ultimateGear): fix bug where ultimateGear isn't awarded 2014-01-23 23:49:04 -06:00
userServices.js APIv2: instead of passing req to callback, passing response object so API can return the object when wrapped on the server 2013-12-28 11:51:38 -07:00