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
2017-10-12 16:44:28 +02:00
2019-11-01 19:01:15 +01:00
2020-02-28 13:30:41 +00:00
2019-10-02 20:09:26 +02:00
2016-09-07 08:44:57 -05:00
2019-10-13 18:35:33 +02:00
2019-10-08 22:57:22 +02:00
2020-04-08 18:44:30 +02:00
2020-04-08 18:44:30 +02:00
2019-08-19 22:43:17 +02:00
2019-10-18 16:52:21 +02:00
2020-04-01 06:31:39 -05:00
2016-06-21 06:42:20 -05:00
2020-04-23 13:59:54 -05:00
2016-05-23 13:58:31 +02:00

Habitica Build Status Code Climate Bountysource Open Source Helpers

Habitica is an open source habit building program which treats your life like a Role Playing Game. Level up as you succeed, lose HP as you fail, earn money to buy weapons and armor.

We need more programmers! Your assistance will be greatly appreciated. The wiki pages below and the additional pages they link to will tell you how to get started on contributing code and where you can go to seek further help or ask questions:

Habitica's code is licensed as described at https://github.com/HabitRPG/habitica/blob/develop/LICENSE

Found a bug? Please report it in the Report a Bug guild rather than creating an issue (an admin will advise you if a new issue is necessary; usually it is not).

Have any questions about Habitica or its community? See the links in the habitica.com website's Help menu or drop in to Guilds > Tavern Chat to ask questions or chat socially!

S
Description
A habit tracker app which treats your goals like a Role Playing Game.
Readme 1.9 GiB
Languages
JavaScript 51.7%
Vue 23.8%
CSS 23.7%
SCSS 0.7%