Commit Graph

103 Commits

Author SHA1 Message Date
Maruno17
8a3353973b Fixed minor bug in sprite position editor, made trainers' Pokémon nicknames translatable, generalised code for optional PBS files 2023-02-08 23:51:42 +00:00
Maruno17
13aab8d911 Lots of rubocop 2023-01-28 15:21:12 +00:00
Maruno17
b0b6e675c3 Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping 2023-01-23 22:27:04 +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
632b0f8b4b Overhauled text translations 2023-01-08 17:11:38 +00:00
Maruno17
2e8329f70b Implemented item portion names, e.g. "bag of Soft Sand" 2023-01-03 21:32:32 +00:00
Maruno17
3fe324d0da Generalised a species' types to allow any number of types 2022-12-31 17:24:33 +00:00
Maruno17
d654f3edbf Added BP shop and prices to various items 2022-12-01 22:43:47 +00:00
Maruno17
b13c2ed2ed Fixed and generalised PBS editors 2022-11-28 20:28:48 +00:00
Maruno17
91efb4684b Fixed file-choosing methods not removing file extensions, fixed typo in Puddle envirnment registration 2022-11-23 22:43:11 +00:00
Maruno17
bd04112122 Allowed multiple PBS files per data type, removed hardcoded lists of PBS files/.dat files/GameData classes that need data loading 2022-11-22 22:24:30 +00:00
Maruno17
4d147a7bf7 Turned Town Map PBS data into a GameData class 2022-11-20 21:44:53 +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
5d439de87d Added compiler schema letter "m" which makes the value a symbol, refactored many PBS file compilers, removed support for old PBS formats/properties 2022-11-16 22:03:12 +00:00
Maruno17
882f4c96f8 Bug fixes: Shadow Pokémon still knowing some original moves when they shouldn't, Interpreter not resetting if saved in the middle of an event and then starting a new game, priority 1 tiles appearing below the player at larger screen sizes, ability inheritance when breeding 2022-10-08 17:46:29 +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
662d023ff5 Improved console messages when compiling didn't happen, egg crack graphics are now found in the same way as egg graphics 2022-09-10 19:38:21 +01:00
Maruno17
ae91811537 Created folder Graphics/UI, renamed some UI graphics 2022-08-14 01:07:06 +01:00
Maruno17
301ecb0ac7 Scents now end Hyper Mode, Time Flute now purifies a Shadow Pokémon, Shadow Pokémon now regain 80% of the Exp they missed out on, non-Scent items can't be used on Shadow Pokémon in Hyper Mode 2022-06-13 21:09:48 +01:00
Maruno17
248b0dd882 Added def GameData::Species.base_stat_total, other minor code tweaks 2022-06-09 21:06:35 +01:00
Maruno17
cb2f33d8f6 Fixed GameData::Species.icon_bitmap_from_pokemon causing a crash, fixed trainer intro music not stopping after skipping their battle 2022-06-09 21:05:22 +01:00
Maruno17
aa2269c858 Added Compiler code to make simple text replacements in PBS files before they are compiled 2022-05-29 19:00:59 +01:00
Maruno17
9ecbee910d Fixed error when calculating type effectiveness against a Pokémon with no types 2022-05-28 23:07:55 +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
d3b61a64ef Turned trainer intro MEs into BGMs 2022-04-20 22:11:04 +01:00
Maruno17
e87d55f56f Added underscore in DefaultForm species flag for consistency 2022-03-31 20:20:29 +01:00
Maruno17
a0612b907f Changed format of "EVs" property in pokemon.txt/pokemon_forms.txt 2022-03-09 23:03:02 +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
dd78075657 Minor tweaks to compiling item data 2022-02-15 19:16:55 +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
8a89b7fbf4 Added move flag "CannnotMetronome" 2022-01-12 23:15:46 +00:00
Maruno17
35126dfb6b Fixed regional form-exclusive species producing eggs of the wrong species, fixed eggs not being the appropriate form based on the region they were made in 2021-12-23 18:20:43 +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
Maruno17
65b1a8d6c3 More tweaks from the Rubocop overlord 2021-12-19 17:28:59 +00:00
Maruno17
33781493f4 More aligning of code 2021-12-19 12:19:08 +00:00
Maruno17
13a238cc6a Many more Rubocop-inspired code improvements 2021-12-18 19:06:22 +00:00
Maruno17
d17fc40a47 Added decent spacing to all scripts thanks to Rubocop 2021-12-18 15:25:40 +00:00
Maruno17
2480ab0f9e Applied most Rubocop-suggested layout fixes 2021-12-18 01:56:10 +00:00
Maruno17
5dc64f1709 Minor refactoring to kill various Rubocop warnings 2021-12-17 20:29:47 +00:00
Maruno17
15b86429a2 Pokémon cries no longer change pitch except when fainting, added support for separate fainting cries 2021-12-14 23:19:08 +00:00
Maruno17
6b841b78d3 Added egg move sharing in Day Care, added some Settings for Day Care/Nursery mechanics, Neutralizing Gas now triggers held items if it negates Unnerve, Imposter now only triggers when the Pokémon enters battle 2021-12-07 22:48:15 +00:00
Maruno17
5a81d447d1 Added Aura Wheel's visible type change in battle, added "display" methods for several move properties and examples of their use 2021-12-06 22:00:27 +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
d93d73caa8 Wrote a generalised data property editor that deals with a list of things from a GameData module, allowed the WildItem properties for species to contain multiple items each 2021-11-21 22:24:58 +00:00