pokerogue/src
innerthunder 0221c9faba
[Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704)
* Make type/category read-only

* Fix protean/libero tests

* Refactor Pokemon type effectiveness calculation

* Merge getMoveEffectiveness and getAttackMoveEffectiveness

* Move priority-blocking ability check

* Fix incorrect early stopping implementation in MultiHitAttr

* Fix Aerilate, etc. affecting variable-type moves

* Thunder Wave now respects Attack type immunities

* Use final move types for pre-defend abilities

* Steal some things from flx's PR hehe

* Fix Thousand Arrows + "No effect" messages

* Fix status type effectiveness check

* Another status move effectiveness update + some docs

* changing status logic again...

* Fix unnecessary "No Effect" message for Volt Absorb, etc

* Add type effectiveness unit test

* Add Galvanize integration tests

* Add multi-hit test to galvanize tests

* Add power check to first Galvanize test

* Add missing doc line

Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>

* Resolve torranx's nits

* Apply suggestions from Kev's code review

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

* More suggestions I missed

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

* Optimize effectiveness test and make others more stylish (#3)

* Resolve Kev's remaining nits and some test issues

---------

Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: flx-sta
Co-authored-by: frutescens
2024-08-25 19:11:01 -07:00
..
@types [Localization] POC gitlocalize with en & es (#3705) 2024-08-23 17:09:19 +01:00
configs/inputs [Refactor] use typescript `strict-null` (#3259) 2024-08-07 17:23:12 +01:00
data [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
enums [QoL][Feature] Hall of Fame + Run History (#3251) 2024-08-23 19:23:16 +01:00
events [Refactor] use typescript `strict-null` (#3259) 2024-08-07 17:23:12 +01:00
field [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
interfaces [Localization] localized status-effect.ts and translate. (#2528) 2024-07-02 10:22:46 -04:00
locales [Localisation] [IT] Old PRs to .json and screenshots (#3737) 2024-08-25 13:44:08 -07:00
modifier [Bug] Fix some damage formulas processed with ceil instead of floor (#3557) 2024-08-21 22:39:11 -07:00
phases [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
pipelines [Refactor] use typescript `strict-null` (#3259) 2024-08-07 17:23:12 +01:00
plugins [Localization] Migrate translation files to json (#3709) 2024-08-23 20:52:09 +01:00
system [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
test [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
typings/phaser centralize module typing overrides (#1786) 2024-08-24 12:46:16 -07:00
ui [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
account.ts [Refactor] use typescript `strict-null` (#3259) 2024-08-07 17:23:12 +01:00
battle-scene.ts [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
battle.ts Minor filename correction 2024-08-24 13:15:41 -05: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 [Hotfix] End Biome Catch Problems (#3605) 2024-08-18 01:09:28 +01:00
inputs-controller.ts centralize module typing overrides (#1786) 2024-08-24 12:46:16 -07:00
loading-scene.ts [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
main.ts centralize module typing overrides (#1786) 2024-08-24 12:46:16 -07:00
messages.ts resolve some open strict-null bangs TODOs (#3530) 2024-08-13 22:12:42 +01:00
overrides.ts [Refactor/Bug] Overhaul & Document Item/Modifier Overrides (#2320) 2024-08-12 11:54:52 +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 [Misc] Update eslint.config.js for space after commas (#3649) 2024-08-23 16:36:10 +08: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 [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
vite.env.d.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00