pokerogue/src
innerthunder 77f0fe6e4b
[Enhancement][EnemyAI] Add support for simulated damage calculations and "Search for KO" move filtering (#3975)
* Create getAttackDamage function

* Add ignoreAbility params to getBattleStat

* Rewrite Pokemon.apply

* renamed damage variables

* Add `ignoreSourceAbility` arg to `getAttackDamage`

* Enemy AI now searches for KO moves

* Add probabilistic test for KO search

* Add tests to `damage_calculation`

* "killMoves" --> "koMoves"

* Clean up `randomMultiplier`

* Clean up damage calculation test

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Fix stabMultiplier using base type for Tera bonus

* Restore simulation capabilities for Unaware

* move sourceTeraType closer to where it's used

* Add base damage test

* Exclude counter moves from KO search

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-09-13 22:54:22 -07:00
..
@types fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
configs/inputs fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
data [Enhancement][EnemyAI] Add support for simulated damage calculations and "Search for KO" move filtering (#3975) 2024-09-13 22:54:22 -07:00
enums [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
events fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
field [Enhancement][EnemyAI] Add support for simulated damage calculations and "Search for KO" move filtering (#3975) 2024-09-13 22:54:22 -07:00
interfaces [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
locales [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
modifier [Balance] Gigantamax Form Adjustments (Charizard, Eevee, Duraludon) and 999.9 Weight for all, + undo Voucher Event on beta (#4241) 2024-09-13 20:52:12 -07:00
phases [Balance] Gigantamax Form Adjustments (Charizard, Eevee, Duraludon) and 999.9 Weight for all, + undo Voucher Event on beta (#4241) 2024-09-13 20:52:12 -07:00
pipelines [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
plugins [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
system [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
test [Enhancement][EnemyAI] Add support for simulated damage calculations and "Search for KO" move filtering (#3975) 2024-09-13 22:54:22 -07:00
typings/phaser centralize module typing overrides (#1786) 2024-08-24 12:46:16 -07:00
ui [P3 Bug] Run Result 'Victory!' Text not displaying correctly in Legacy UI Mode (#4223) 2024-09-13 22:13:47 -04:00
account.ts Admin panel beta (#3846) 2024-08-29 10:22:01 +01:00
battle-scene.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
battle.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
constants.ts [Bug] Fix #762: All Pokemon become invisible when capturing then switching with your only pokemon that was not fainted (#4025) 2024-09-09 01:10:47 -04:00
debug.js ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
game-mode.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
inputs-controller.ts fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
loading-scene.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
main.ts fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
messages.ts resolve some open strict-null bangs TODOs (#3530) 2024-08-13 22:12:42 +01:00
overrides.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
phase.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
scene-base.ts [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
timed-event-manager.ts Voucher Event (#4094) 2024-09-08 04:17:02 +01:00
touch-controls.ts [Feature] Move touch controls configuration (Reopened) (#3256) 2024-08-10 14:17:04 +01:00
tutorial.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
ui-inputs.ts [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
utils.test.ts [Testing] Flexible Testing Wrapper for Phaser-Based Battle-Scenes (#1908) 2024-06-07 18:33:45 -04:00
utils.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
vite.env.d.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00