habitica-self-host/website/common/script
Julius Jung d4bc7c77a9 Check previous gear owned before purchasing next level gear (fixes #9071) (#9466)
* add another check if previous gear is owned

* respect gear purchase order

* catch error with miscalculation of equipment number floor

* add integration test for proper equipment purchasing order

* fix syntax

* add 'previousGearNotOwned' string

* rewrite logic for different starting levels for wep vs others

* separate and add tests for armor and weapon

* rename variable for clarification

* skip check if itemIndex is NaN

* change obscure NaN check for readability

* change conditional from checking NaN to Int
2017-12-05 13:58:12 -06:00
..
content Armoire and Backgrounds December 2017 (#9659) 2017-12-05 13:25:52 -06:00
fns Tasks scoring and misc fixes (#8925) 2017-08-04 23:27:11 +02:00
libs autofix pinned seasonal gear - fixes #9448 (#9570) 2017-11-28 09:11:40 +01:00
ops Check previous gear owned before purchasing next level gear (fixes #9071) (#9466) 2017-12-05 13:58:12 -06:00
.babelrc New Client: working navigation (#8131) 2016-11-18 19:20:25 +01:00
.eslintrc Upgrade ESLint to v3 (#8299) 2016-12-20 22:31:36 +01:00
constants.js Sept 14 2017 (#9037) 2017-09-14 14:53:27 -05:00
count.js Upgrade lodash to v4 and lint more files (#8495) 2017-03-01 17:10:48 +01:00
cron.js Should do diff week fix (#9551) 2017-11-20 12:22:01 -06:00
i18n.js api: add pagination for guilds 2017-03-13 19:46:53 +01:00
index.js Bulk stats (#9260) 2017-10-31 12:57:44 -06:00
statHelpers.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00