habitica-self-host/website/common
Aleksey 5b57d91a9b Fix: Antidotes to Avatar Transformation Items should be added to Rewards by API (#11353)
* Fix: moved debuffPotions from vue component

- Move logic of choosing proper debuf potion from vue component to website commons
- introduce new function to get debuffSpellItems

* Fix: move debuffPotions to server

* Refactoring: move setting of debuff potion to func

* Fix: sanity

* Refactoring & Tests:

- Create test case for get and set DebuffPotionItems functions
- Fix setDebuffPotionItems function to not create duplicated debuff items
- Make debuff potion type of items unpinnable
- Move list of debuffs to constant to reuse it in tests and functions

* Fix: typo in test describe

* Fix: translation of unpin

* Fix: setDebuffPotionItems on cron buffs reset

* Fix: use full path for debuff potions
2019-10-06 18:41:39 +02:00
..
errors Improved number validation (#11131) 2019-04-23 15:19:49 -05:00
locales Fix: Antidotes to Avatar Transformation Items should be added to Rewards by API (#11353) 2019-10-06 18:41:39 +02:00
script Fix: Antidotes to Avatar Transformation Items should be added to Rewards by API (#11353) 2019-10-06 18:41:39 +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