habitica-self-host/website/common
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
..
locales Check previous gear owned before purchasing next level gear (fixes #9071) (#9466) 2017-12-05 13:58:12 -06:00
script Check previous gear owned before purchasing next level gear (fixes #9071) (#9466) 2017-12-05 13:58:12 -06:00
browserify.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
index.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
README.md Common reorg (#8025) 2016-09-16 17:18:07 +02:00

Common

Files that are shared among the server and the client.

  • Code that is run on both the client and the server
  • Item definitions - weapons, armor, pets, etc