pokerogue/src/test
Leo Kim b1d4037a57
[Bug] Fix some damage formulas processed with ceil instead of floor (#3557)
* fix damage calculations. add test code

* define toIntValue function to replace every repeatitive min floor function.

* revert unnecessary minimum boundary

* update function name `toIntValue` -> `toDmgValue`. update comments.

* add missing updates for changing function name

* Update src/utils.ts

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>

* remove redundant comment

* update import code for test with phase

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-08-21 22:39:11 -07:00
..
abilities [Bug] Fix some damage formulas processed with ceil instead of floor (#3557) 2024-08-21 22:39:11 -07:00
achievements [Refactor] use typescript strict-null (#3259) 2024-08-07 17:23:12 +01:00
arena [Bug] Fix: Gravity tag removes flying type during damage calculation (#3670) 2024-08-21 15:40:55 -07:00
battle [Bug] Fix some damage formulas processed with ceil instead of floor (#3557) 2024-08-21 22:39:11 -07:00
battlerTags Deleted phases.ts (#3618) 2024-08-19 03:23:52 +01:00
eggs [Test] Stylistic consistency pass on tests (#3378) 2024-08-06 10:06:25 -04:00
evolutions [Refactor] use typescript strict-null (#3259) 2024-08-07 17:23:12 +01:00
field [Bug] Fix daily run generated movesets (#3519) 2024-08-13 21:48:56 +01:00
inputs [Test] Stylistic consistency pass on tests (#3378) 2024-08-06 10:06:25 -04:00
items Deleted phases.ts (#3618) 2024-08-19 03:23:52 +01:00
localization [Refactor] use typescript strict-null (#3259) 2024-08-07 17:23:12 +01:00
moves [Bug] Fix some damage formulas processed with ceil instead of floor (#3557) 2024-08-21 22:39:11 -07:00
phases Deleted phases.ts (#3618) 2024-08-19 03:23:52 +01:00
settingMenu [Refactor] use typescript strict-null (#3259) 2024-08-07 17:23:12 +01:00
sprites [Refactor] use typescript strict-null (#3259) 2024-08-07 17:23:12 +01:00
ui Deleted phases.ts (#3618) 2024-08-19 03:23:52 +01:00
utils Deleted phases.ts (#3618) 2024-08-19 03:23:52 +01:00
account.spec.ts [Refactor] use typescript strict-null (#3259) 2024-08-07 17:23:12 +01:00
battle-scene.test.ts [Optimization] Destroy LoadingScene when done (after beta rebase) (#3215) 2024-07-30 00:28:43 -04:00
battle-stat.spec.ts [Test] Stylistic consistency pass on tests (#3378) 2024-08-06 10:06:25 -04:00
daily_mode.test.ts [Bug] Fix daily run generated movesets (#3519) 2024-08-13 21:48:56 +01:00
endless_boss.test.ts Disable endless boss passives (#3451) 2024-08-11 19:40:47 +01:00
evolution.test.ts [Bug] Fix daily run generated movesets (#3519) 2024-08-13 21:48:56 +01:00
final_boss.test.ts Disable endless boss passives (#3451) 2024-08-11 19:40:47 +01:00
fontFace.setup.ts tests: add mock for FontFace and it to vitest setup (#1591) 2024-05-30 04:44:36 +01:00
game-mode.test.ts [Test] Stylistic consistency pass on tests (#3378) 2024-08-06 10:06:25 -04:00
imports.test.ts [Test] Stylistic consistency pass on tests (#3378) 2024-08-06 10:06:25 -04:00
internals.test.ts [Bug] Fix daily run generated movesets (#3519) 2024-08-13 21:48:56 +01:00
pre.test.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
vitest.setup.ts [Test] Stylistic consistency pass on tests (#3378) 2024-08-06 10:06:25 -04:00