habitica/test
Alyssa Batula 016447ec77 Critical Hits now affect boss damage fixes #5429 (#8092)
* Moved critical hit calculation from _addPoints() to _calculateDelta(). Added user as an input argument to _calculateDelta() so for critical hit calculation

* Changed test to expect task value of 1.5 after critical hit

* Revert "Moved critical hit calculation from _addPoints() to _calculateDelta(). Added user as an input argument to _calculateDelta() so for critical hit calculation"

This reverts commit 51b8ab6498d989d1f9494ac43c2605f3d4d14a35.

* Moved critical hit calculation to _changeTaskValue(). Use value stored in user._tmp.crit in _addPoints()

* Test is no longer affected by critical hits

* Removed unneeded comment

* Added WIP test of critical hits

* Want the crit function to return 2 to test critical hits

* Changed crit function to export as a function within an object so that it can be stubbed for testing. References to the crit() function were updated to call crit.crit() instead

* Added test for increased experience on critical hits
2017-01-18 08:11:39 -07:00
..
api added message saying quest is started (#8107) 2017-01-18 08:08:47 -07:00
client correct deps loading and shrinkwrap 2017-01-15 23:45:22 +01:00
client-old Group plans misc fixes (#8388) 2017-01-18 07:54:49 -07:00
common Critical Hits now affect boss damage fixes #5429 (#8092) 2017-01-18 08:11:39 -07:00
content Preventing users from buying already gifted subscriber items (#7734) 2016-12-15 10:00:49 -06:00
helpers Thehollidayinn/group plans part 2 (#8262) 2016-12-21 13:45:45 -06:00
migrations API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
sanity Common reorg (#8025) 2016-09-16 17:18:07 +02:00
.eslintrc Upgrade ESLint to v3 (#8299) 2016-12-20 22:31:36 +01:00
mocha.opts API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00