Commit Graph

185 Commits

Author SHA1 Message Date
Maruno17
e12b6fde1d NPC trainers' end of battle text is now read directly from the trainer object rather than extracted to an array 2022-05-17 22:28:29 +01:00
Maruno17
22f0c8627a Refactored battle-starting methods into WildBattle.start and TrainerBattle.start, etc. 2022-05-15 20:28:06 +01:00
Maruno17
5714a2d6d3 Split up def pbEndOfRoundPhase 2022-04-25 23:24:55 +01:00
Maruno17
ad29dc6dc4 Fixed X items not working, fixed Knock Off being able to remove usable Mega Stones 2022-04-24 21:04:22 +01:00
Maruno17
a85ec1e51a Changed battle victory MEs to BGMs 2022-04-21 21:43:11 +01:00
Maruno17
77f9547687 Misc tidying 2022-04-20 22:29:13 +01:00
Maruno17
d6c6b79705 Tidying up tones 2022-04-18 20:47:19 +01:00
Maruno17
20d6d4ff0a Implemented differences in Ball Burst animations for attempting to capture a Pokémon 2022-04-18 20:45:10 +01:00
Maruno17
f66e8db906 Minor script rearranging 2022-04-12 21:21:58 +01:00
Maruno17
90328df274 Updated moves that can't be called by Metronome 2022-04-10 22:33:56 +01:00
Maruno17
0d4c27d413 Implemented differences in Ball Burst animations for sending out a Pokémon 2022-04-10 21:38:06 +01:00
Maruno17
4a478ab6d0 Fixed recalculating turn order after Mega Evolution not taking into account changed abilities 2022-04-08 18:43:49 +01:00
Maruno17
0680f8665d Added prompt for what to do with a caught Pokémon if the party is full, and a battle rule that forces a capture into the party 2022-04-05 23:01:07 +01:00
Maruno17
e87d55f56f Added underscore in DefaultForm species flag for consistency 2022-03-31 20:20:29 +01:00
Maruno17
c012a7323a Natural Gift's power/type moved into an item flag 2022-03-31 20:19:58 +01:00
Maruno17
38edb15f0c Move item powers for Fling into an item flag 2022-03-31 19:53:21 +01:00
Maruno17
3a4339c658 AI now checks for immunities to status moves 2022-03-28 18:04:45 +01:00
Maruno17
81578ac42c AI now doesn't use Full Restores just to heal small amounts of HP 2022-03-26 15:12:32 +00:00
Maruno17
7d583aaaf7 Added animation when capture is successful 2022-03-21 23:14:00 +00:00
Maruno17
2817c1998a Added hardcoded battle animations for capture ball burst and send out ball burst, removed support for common animation ball bursts. 2022-03-21 17:37:18 +00:00
Maruno17
21f7c57905 Added Poké Ball burst animation for recalling in battle, some bug fixes 2022-03-16 22:44:39 +00:00
Maruno17
93a0173fe8 Player no longer makes a bump sound when walking into something because of a move route, changed when title screen BGM starts playing, tweaked evolution messages and audio 2022-03-10 22:49:01 +00:00
Maruno17
7f8fa16a52 Made Zacian/Zamazenta's rusted items unlosable, made bad poison icon be shown again in battle 2022-03-07 23:16:13 +00:00
Maruno17
a13771e8bc Fixed Shadow Pokémon saying how much Exp they gain from battle, fixed mispositioned text in some battle debug menus 2022-03-07 19:22:21 +00:00
Maruno17
e5be233224 Enabled BallBurst common animations to be played during other battle animations 2022-02-22 19:26:50 +00:00
Maruno17
19e50bd507 Updated Power Green fonts, repositioned all text accordingly 2022-02-20 23:29:09 +00:00
Maruno17
f322b234c6 Added battle rule "disablePokeBalls" 2022-02-15 18:39:41 +00:00
Maruno17
f68e699cc9 More Rubocop changes 2022-02-13 00:57:54 +00:00
Maruno17
cca5989746 Fixes to previous commit 2022-02-10 08:33:45 +00: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
Keyacom
91c6f1f45b Fixed typo in "CannotMetronome" (#171)
* Fixed typo in "CannotMetronome"

This flag had 3 N's in its name where it was supposed to be two. In the move PBS files, the flag is spelled correctly.
2022-01-29 19:07:01 +00:00
Golisopod-User
617f685694 Bugfixes (#170)
* Fixed crash when setting Fogs or Panoramas to none
* Generalised the initial setting of stat stages for battlers
* Fixed fishing animation looking weird (especially when surfing)
2022-01-29 19:06:21 +00:00
Keyacom
af60c4df66 Use the .max function in Substitute's code (#167) 2022-01-29 18:24:42 +00:00
Golisopod-User
b980d8505c Tiny Bugfixes (#161)
* Removed extra confirm sfx in mart screen
* Fixed Calyrex keeping its form exclusive moves
* Fixed some methods being aliased multiple times upon soft resetting
2022-01-20 22:02:22 +00:00
Nathan-MV
e9afefb210 Updated HM/expAll/Switch Messages. (#156) 2022-01-19 20:10:56 +00:00
Maruno17
f872db2618 Added battle debug functions for setting position effects and NPC trainer items 2022-01-17 22:55:01 +00:00
Maruno17
b550ad9c07 Fixed AI scores calculated for some moves not being added up properly 2022-01-13 23:28:00 +00:00
Maruno17
8a89b7fbf4 Added move flag "CannnotMetronome" 2022-01-12 23:15:46 +00:00
Golisopod-User
ff465a78a6 More bugfixes (and one Gen 8 addition) (#155)
* Added comment indicating unused method pbRefreshSceneMap
* Removed superfluous ending of Beak Blast's effect
* Fixed crash when playing an animation in the animation player
* Added SwSh Terrain effects
2022-01-11 21:36:01 +00:00
Maruno17
f853816d63 Fixed visual glitch where a Pokémon's HP would raise then lower if its substitute took damage 2022-01-08 18:11:02 +00:00
Maruno17
a6115faad6 Fixed Incinerate's message not knowing the name of the item it destroyed 2022-01-02 21:22:09 +00:00
Golisopod-User
13cc9790ce Minor new additions for v20 (#147)
* Moved TMs/ TRs and HMs into their own handlers
* Improved Plugin Error Message
* Added sound effect when picking berries
* Allow player to always see quantity when buying items
* Trainers now require a Mega Ring item in their items (in trainers.txt) to Mega Evolve
2021-12-29 18:36:26 +00:00
Maruno17
fb29f19a28 Fixed various bugs found when generating Battle Frontier challenge lists 2021-12-29 14:37:41 +00:00
Maruno17
63b157d7ec Fixed some bad uses of @battle 2021-12-29 11:43:24 +00:00
Maruno17
01ce5d347c Fixed rare bug in disobedience check 2021-12-28 22:14:56 +00:00
Maruno17
3e9d3b0a68 Added checks that prevent aliasing a method if the alias method already exists, fixed Symbiosis not working properly for opponents 2021-12-28 19:22:31 +00:00
Maruno17
aa643a6049 More Rubocop 2021-12-27 00:26:45 +00:00
Maruno17
132a16950d Yet more Rubocopping 2021-12-23 00:27:17 +00:00
Maruno17
33fcbf623b More Rubocopping 2021-12-20 17:18:21 +00:00
Nathan-MV
db4acd3369 Give Nicknames (#142)
* Option: Give Nicknames
2021-12-19 21:08:31 +00:00