Commit Graph

37 Commits

Author SHA1 Message Date
chardub
95ef337de8 Migrate a reorganizes bunch of files from PIF 2025-04-24 19:46:52 -04:00
Maruno17
ff2d8e5f55 More Gen 9 move effects 2024-06-24 21:51:49 +01:00
Maruno17
22b33ca6c2 Coded some Gen 9 ability/item/move effects 2024-06-15 15:58:31 +01:00
Maruno17
454d5a216a Updated Gen 9 descriptions to make them fit 2024-06-11 20:02:26 +01:00
Maruno17
6c3d9e77ad Added Gen 9 PBS files 2024-06-08 15:41:34 +01:00
Maruno17
e6fe242d4b AI changes, fixed input detection Conditional Branch, Fishious Rend is now a biting move 2024-02-01 23:50:09 +00:00
Maruno17
b2c66b7b0c Fixed typo relating to AI switching, fixed Pokémon sent from the party to storage in battle not resetting their battle-only conditions, fixed player's sprite in Duel minigame not caring about the player's outfit, added missing move flags 2023-09-21 19:36:10 +01:00
Maruno17
60f8a0cf7b Fixed potential slight irregularities in effect chances of elemental Fang moves, tweaked how credits are gathered, 2023-06-27 19:16:14 +01:00
Maruno17
ce549ab62a Rewrote AI item usage (inc. adding Revives), various fixes/changes to AI, removed Struggle from PBS files, some bug fixes 2023-04-23 17:52:39 +01:00
Maruno17
5a18f7fd65 Fixed additional effect issues with Eerie Spell/Jaw Lock/Thousand Waves 2023-03-09 20:37:26 +00:00
Maruno17
3f5c1f0974 Merge branch 'dev' into ai 2023-02-05 19:10:25 +00:00
Keyacom
c233841bb6 Make Clangorous Soul affected by Dancer (#195)
As discovered by Awesomelink234 of Bulbapedia: https://bulbapedia.bulbagarden.net/wiki/Special:Diff/3633158
2023-02-04 21:29:54 +00:00
Maruno17
5a49bbbc94 Renamed function code UseUserBaseDefenseInsteadOfUserBaseAttack, more AI function code changes 2022-10-17 21:13:31 +01:00
Maruno17
265897f9e1 Made AI function code-specific MoveFailureCheck handlers 2022-08-27 20:11:01 +01:00
Maruno17
cfb870c944 Added AI objects for trainers, battlers and the move being assessed, logging battle messages now also echoes them to the console 2022-08-22 21:37:33 +01:00
Maruno17
e3dbc5e690 Updated moves.txt to fix a few mistakes 2022-06-02 17:27:14 +01:00
Keyacom
2ba2893869 Fixed Grav Apple having the incorrect damage boost (#179)
* Fixed Grav Apple having the incorrect damage boost

In the official games, Grav Apple has a damage boost of 1.5x under Gravity, not 2x. This has been fixed.

* Updated move effect class name
* Apply updated function code
* Update moves.txt
2022-05-29 23:01:34 +01:00
Maruno17
9f09851db9 Renamed moves.txt property BaseDamage to Power 2022-05-29 19:01:49 +01:00
Maruno17
90328df274 Updated moves that can't be called by Metronome 2022-04-10 22:33:56 +01:00
Keyacom
30c3f472ef Implement TramplesMinimize as a move flag (#175)
* Implement "TramplesMinimize" as a move flag

Implemented `TramplesMinimize` as a move flag. Due to it, removed effect codes `FlinchTargetTrampleMinimize` and `ParalyzeTargetTrampleMinimize` (the second one was exclusive to Body Slam). Moves that had them now have the effect codes `FlinchTarget` and `ParalyzeTarget`, respectively.

The code now does not check if the parameter of `tramplesMinimize?` is 1 or 2, it now checks if it is `true` or `false`. For the effect that causes the moves with this flag to skip accuracy checks, it also checks if `Settings::MECHANICS_GENERATION` is equal to or greater than 6.

Data on which moves are to be treated as able to double damage if Minimized and skip accuracy checks are [here](https://bulbapedia.bulbagarden.net/wiki/Minimize_(move)#Vulnerability_to_moves).

**Remarks:**
- Dragon Rush, Heat Crash and Heavy Slam could not trample Minimize in Gen 5. Dragon Rush and Heat Crash could do so in Gen 6+, but Heavy Slam could not until Gen 7.
- Double Iron Bash could only trample Minimize in Gen 7.

**TL;DR:**
- Implemented `TramplesMinimize` as a move flag.
- Modified the check for this move flag.
- Removed effect codes `FlinchTargetTrampleMinimize` and `ParalyzeTargetTrampleMinimize`. Moves that had them now have the effect codes `FlinchTarget` and `ParalyzeTarget`, respectively.
2022-02-06 19:36:51 +00:00
Maruno17
8a89b7fbf4 Added move flag "CannnotMetronome" 2022-01-12 23:15:46 +00:00
Maruno17
7ec8f30f0e Some battle method refactoring, fixed typo 2021-11-17 20:40:19 +00:00
Maruno17
df7c033a9d Tweaked Fissure's function code, added Mirror Armor's effect 2021-09-10 20:40:45 +01:00
Maruno17
27be1cb330 Tidied up some function codes, added missing ones 2021-09-06 21:26:59 +01:00
Maruno17
c670c63bf5 Renamed all move function codes 2021-09-06 20:56:37 +01:00
Maruno17
1b9e7400f9 Minor fixes to some move definitions 2021-08-21 22:47:25 +01:00
Maruno17
61242a9836 Shortened ability/move descriptions to fit, added Howl's Gen 8 effect 2021-08-06 19:59:20 +01:00
Golisopod-User
c6da16409e AI and other Gen 8 Effects (#123)
* Added Rattled being triggered by Intimidate in Gen 8
* Added Rapid Spin speed boost effect
* Added basic AI for Gen 8
* Tweaked Leppa berry's effect
* Added Ability Patch's exemption for Zygarde
* Added Curse's Gen 8 targeting change
* Added Teleport's Gen 8 effect
* Added check for Choice items in Instruct and Dancer
* Added Quash's Gen 8 change to the order that multiple Quashed Pokémon move in

Co-authored-by: Maruno17 <serialcolour@hotmail.com>
2021-08-02 22:56:55 +01:00
Maruno17
78f5530cbe Added more Gen 8 code 2021-07-13 20:52:26 +01:00
Maruno17
8b7a532e29 Updating some PBS files 2021-07-11 21:58:57 +01:00
Maruno17
ba6806aa5b Added Gen 8 PBS files 2021-07-08 21:19:45 +01:00
Maruno17
987cb7640c Turned move flags into separate words 2021-07-01 21:54:22 +01:00
Maruno17
7c42e4ec20 Added new section-based format for moves.txt 2021-06-20 17:29:16 +01:00
Maruno17
e472d0fcdf Rewrote PBS files to set all their "ID numbers" to 0 2021-06-19 20:18:55 +01:00
Maruno17
af9b9ef812 Fixed incorrect PBS data for Power-Up Punch 2020-10-03 16:29:41 +01:00
Maruno17
25d48e3837 Fixed bugs with Multi-Attack, Illusion, Nature's Madness's definition and Slow Start 2020-10-01 17:54:46 +01:00
Maruno17
ba94119d02 Initial commit 2020-09-04 22:00:59 +01:00