Commit Graph

110 Commits

Author SHA1 Message Date
Maruno17
3d9d31621b Sped up compiling PBS files by about 5x, fixed bug from earlier commit about writing PBS lines with many optional values 2023-04-05 21:41:55 +01:00
Maruno17
6157c63fa2 Fixed movesets in PBS files, added more compatible TutorMoves 2023-03-04 18:47:32 +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
f6213057d8 Made a set of PBS files for Shadow Pokémon data, grouped shadow_pokemon.txt with it 2023-01-22 22:25:20 +00:00
Maruno17
ae0d193bba More item portion name tweaks 2023-01-04 18:21:08 +00:00
Maruno17
2e8329f70b Implemented item portion names, e.g. "bag of Soft Sand" 2023-01-03 21:32:32 +00:00
Maruno17
d654f3edbf Added BP shop and prices to various items 2022-12-01 22:43:47 +00:00
Maruno17
f33eb4d896 Added PBS schema character ^ for repeated lines, more refactoring of PBS compilers/writers 2022-11-20 20:15:04 +00:00
Maruno17
1ff7307868 Rewrote and standardised several PBS writer methods 2022-11-19 23:03:42 +00:00
Maruno17
64f975072b Fixed BGM always restarting when changing maps if the new map's BGM has a night version 2022-10-19 19:12:39 +01:00
Maruno17
1ccbafb499 Rewrote the random dungeon generator code 2022-10-01 18:06:15 +01:00
Maruno17
8c31ad994d Misc tidying 2022-09-11 23:53:25 +01:00
Maruno17
2962944cab Redesigned phone.txt (old format isn't supported), added support for contact-specific phone messages, added more phone message components 2022-09-11 19:07:47 +01:00
Maruno17
aa9b1a9e23 Refactored phone/rematches code, added Phone.rematches_enabled/Phone.rematch_variant/map metadata flag "NoPhoneSignal", changed event layout, trainer contacts can use Common Events for their calls, etc. 2022-08-13 16:52:42 +01:00
Maruno17
cca414a826 Bug Contest maps can now be defined using a map metadata flag 2022-08-07 15:00:40 +01:00
Maruno17
3c748c9d68 Fixed play time carrying over to new games, fixed Eerie Spell thinking it's a status move, fixed text positionings in Pokédex and naming screen, fixed Channeler typo 2022-08-07 14:21:30 +01:00
Maruno17
3314477f08 Made the example wild encounter modifier that scales Pokémon levels to match the player's party depend on a map metadata flag instead of a map number 2022-07-07 20:49:49 +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
d5e26d13f7 Renamed VictoryME to VictoryBGM in trainer_types.txt 2022-05-20 17:45:03 +01:00
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