Commit Graph

153 Commits

Author SHA1 Message Date
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 2976ee93ce Added Setting that makes trainer-owned Pokémon give more Exp, other tweaks 2022-07-03 17:39:44 +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 7da449aec3 Merged Events and EncounterModifier into module EventHandlers 2021-12-30 18:59:35 +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 79e04bff6c Fixed code for happiness-based evolutions 2021-12-08 22:41:44 +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
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 7ec8f30f0e Some battle method refactoring, fixed typo 2021-11-17 20:40:19 +00:00
Maruno17 12fd500dbc Added Pokémon properties cannot_store, cannot_release and cannot_trade. Allowed Offspring species property to be edited. 2021-11-08 23:21:20 +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 0ec67f78fa Added affection effects 2021-10-31 20:43:16 +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 ca680c9feb Merged class PokemonTemp into class Game_Temp 2021-10-21 22:01:59 +01:00
Maruno17 e49cd8d498 Renamed $Trainer to $player 2021-10-20 22:57:43 +01:00
Maruno17 36ff7c4ba3 Renamed variables and methods relating to the Bag, renamed $PokemonBag to $Bag, $bag.has? can now check for a minimum quantity 2021-10-17 23:02:58 +01:00
Maruno17 56c9b69c44 Added "Name" property to map_metadata.txt, fixed map names not being translated in some cases, fixed minor things from a previous commit 2021-10-13 22:55:29 +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