Commit Graph

89 Commits

Author SHA1 Message Date
Maruno17
1caedc0ed2 Added a Setting to toggle whether the Move Reminder can teach previously known egg moves/TRs 2022-05-13 21:12:47 +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
a85ec1e51a Changed battle victory MEs to BGMs 2022-04-21 21:43:11 +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
Maruno17
789185eefb Added Gen 6 PBS files 2022-02-14 19:06:32 +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
4561cc66bf Moved calls to PBS file-compiling methods into their own method, removed music file extensions from metadata.txt 2022-02-06 18:40:43 +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
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
6b3fa5e1bf Made Giratina's form use a map_metadata flag "DistortionWorld" instead of a hardcoded array of map numbers 2021-12-21 19:12:19 +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
a5f91f62ea Made map names be added to map_metadata.txt when writing it if possible 2021-11-21 23:11:19 +00:00
Maruno17
b445f26a88 Converted Shadow Pokémon PBS file to a section-based format, improved Shadow Pokémon mechanics 2021-11-21 00:44:41 +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
6c38f769c7 Moved initial money/storage creator's name from Settings to metadata.txt, added initial item storage contents property to global metadata, added Home property to player metadata 2021-10-25 23:07:58 +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
a090f50bc5 Split metadata.txt into metadata.txt and map_metadata.txt, fixed bug when writing certain PBS files 2021-10-09 23:34:45 +01:00
Maruno17
1f9ba94432 Fixed quote marks around LoseText in trainers.txt 2021-10-03 22:42:18 +01:00
Maruno17
c7858de42a Refactored berry plant code, added missing berry plant PBS data and charsets, fixed berry sparkles sometimes showing on the wrong map 2021-10-03 20:19:28 +01:00
Maruno17
348b847b68 Changed example follower from Brendan to May just because 2021-10-02 23:12:37 +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