habitica/test/common
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
..
fns Critical Hits now affect boss damage fixes #5429 (#8092) 2017-01-18 08:11:39 -07:00
libs fix(achievements): don't show unobtainable boss quests 2016-12-16 00:04:46 +00:00
ops Critical Hits now affect boss damage fixes #5429 (#8092) 2017-01-18 08:11:39 -07:00
count.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
statHelpers.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
test_helper.js (chore): lint test/common files 2015-11-19 20:27:39 -06:00