Commit Graph

47 Commits

Author SHA1 Message Date
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
7a88d47b4b Minor fixes to Pokérus code, fixed some incorrect apostrophes in PBS files 2022-05-06 19:04:13 +01:00
Maruno17
8062b8ed6c Made "DefaultForm_X" flag apply when changing a Pokémon's species 2022-04-24 12:04:34 +01:00
Maruno17
90328df274 Updated moves that can't be called by Metronome 2022-04-10 22:33:56 +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
a0612b907f Changed format of "EVs" property in pokemon.txt/pokemon_forms.txt 2022-03-09 23:03:02 +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
Maruno17
6698149083 Restored evolutions depending on Moss Rock/Icy Rock/magnetic field in Gen 8 PBS files 2022-01-30 18:16:19 +00:00
Maruno17
8a89b7fbf4 Added move flag "CannnotMetronome" 2022-01-12 23:15:46 +00:00
Maruno17
a6c092a574 Abilities that hasten egg hatching now have a flag in abilities.txt for this effect 2021-12-29 22:13:18 +00:00
Maruno17
f3c4893dbb Repels now have a flag in items.txt which determines if they can be reused when one runs out 2021-12-29 22:07:10 +00:00
Maruno17
7d2e1027cd Updated TMs to BDSP 2021-12-14 22:15:32 +00:00
Maruno17
840e1a8be9 Updated Pokémon PBS files to BDSP 2021-12-13 22:09:21 +00:00
Maruno17
479aeacc2c Added new section-based format for berry_plants.txt 2021-11-24 19:05:18 +00:00
Maruno17
00c2df5772 Merged species Type1/Type2 into Types, did the same for Pokemon and Battler 2021-11-22 23:55:28 +00:00
Maruno17
048a18b415 Refactored ability/item/ball battle handlers, added "UltraBeast" species flag for Beast Ball 2021-11-18 22:52:19 +00:00
Maruno17
7ec8f30f0e Some battle method refactoring, fixed typo 2021-11-17 20:40:19 +00:00
Maruno17
15babcf835 Refining event evolution mechanics 2021-11-07 21:20:47 +00:00
Maruno17
34ab0b8afe Added evolution method for Galarian Yamask, minor refactoring in battle code, a Pokémon's ability no longer needs resetting when changing its ability_index 2021-11-07 18:05:32 +00:00
Maruno17
ee16c22388 Added Hidden Power tutor compatibility to Gen 8 PBS files 2021-10-31 15:30:56 +00:00
Maruno17
899d037255 Added pokemon.txt/pokemon_forms.txt property "Offspring" for species that could be produced by breeding 2021-10-29 20:34:50 +01:00
Maruno17
10a1fc4430 Added PBS file pokemon_metrics.txt, for all Pokémon sprite positionings 2021-10-23 20:30:09 +01:00
Maruno17
f00f030825 Added effect of Pokémon Box Link 2021-09-12 21:08:46 +01: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
423961e524 Fixed unique Galarian evolutions not being flagged as being able to pass their form on when breeding, fixed bred Sinistea sometimes not being phony form 2021-09-02 22:01:17 +01:00
Maruno17
cef3d08917 Generalised form inheritance, making use of species flags 2021-09-02 21:05:53 +01:00
Maruno17
86cbcad382 Added Flags property to types, abilities, species and map metadata. Added LocationFlag evolution method. 2021-09-02 19:01:16 +01:00
Maruno17
f411867c52 Updated all BaseExp values for species and forms 2021-08-29 20:48:43 +01:00
Maruno17
1b9e7400f9 Minor fixes to some move definitions 2021-08-21 22:47:25 +01:00
Maruno17
45fba56455 Turned fusion items into two separate items for the sake of them having different descriptions, fixed ability-changing items not doing so, added Zygarde Cube's Gen 8 effect 2021-08-21 18:26:48 +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
551f64e8a1 Added "Consumable" property to items.txt, light effects now properly centre themselves on the event regardless of graphic size, Disguise/Double Iron Bash Gen 8 changes 2021-07-21 22:46:49 +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
3d634a7f22 Added separate SellPrice property for items, changed messages when learning a move, updates to Gen 8 items.txt 2021-07-10 22:17:02 +01:00
Maruno17
33f0403945 Updated happiness values (assuming Timburr/Stunfisk not changing are mistakes), added new type of evolution that triggers after any battle, added code to let Galarian Farfetch'd evolve after dealing 3 critical hits 2021-07-09 21:44:58 +01:00
Maruno17
ae7661edc5 Some fixes related to the previous commit and Exp Candy effect 2021-07-08 23:38:57 +01:00
Maruno17
d5aeeaca7b Added code for Gen 8 alternate forms 2021-07-08 23:04:21 +01:00
Maruno17
ba6806aa5b Added Gen 8 PBS files 2021-07-08 21:19:45 +01:00