habitica-self-host/website/common/script
Bart Enkelaar dc9800d88a
Don't bill (subtract gems) multiple times for multiple unlock item set calls (#12116)
* Issue 11050 - Small tuneups to unlock.js

- Use includes i.o. indexOf
- Extract small function for object setting duplication
- Use every instead of custom counter

* Issue 11050 - Properly store purchased items when purchasing them

* Issue 11050 - Couple more tuneups in unlock.js and implemented partial failure scenario

* Issue 11050 - Fix last lint issue

* Issue 11050 - Check path for gear i.o. failing to write it to purchased

* Issue 11050 - Guarantee variation coverage in tests

* Issue 11050 - Use startsWith instead of includes for background check

* Issue 11050 - Don't unlock lost items
2020-04-24 16:16:34 +02:00
..
content Merge branch 'sabrecat/potion-time' into release 2020-04-14 14:49:18 -05:00
errors API-v4 route added: 'api/v4/faq' fixes #11801 (#11905) 2020-04-14 22:14:53 +02:00
fns chore(analytics): change up drop tracking 2020-04-17 14:24:34 -05:00
libs fix(shops): improve featured potion and quest 2020-04-10 16:17:15 -05:00
ops Don't bill (subtract gems) multiple times for multiple unlock item set calls (#12116) 2020-04-24 16:16:34 +02:00
.eslintrc.js start fixing commong 2019-10-09 16:51:17 +02:00
constants.js Sign in with Apple (#11793) 2020-04-08 18:44:30 +02:00
count.js start fixing commong 2019-10-09 16:51:17 +02:00
cron.js Fix Typos (#11644) 2019-12-23 17:52:55 +01:00
i18n.js start fixing commong 2019-10-09 16:51:17 +02:00
index.js Fix username links resulting in truncated chat messages (#11945) 2020-03-04 11:49:14 +01:00
statHelpers.js start fixing commong 2019-10-09 16:51:17 +02:00