Commit Graph

18 Commits

Author SHA1 Message Date
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
8c31ad994d Misc tidying 2022-09-11 23:53:25 +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
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
13a238cc6a Many more Rubocop-inspired code improvements 2021-12-18 19:06:22 +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
7ec8f30f0e Some battle method refactoring, fixed typo 2021-11-17 20:40:19 +00: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
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
987cb7640c Turned move flags into separate words 2021-07-01 21:54:22 +01:00
Maruno17
ca09e8c092 Removed all deprecated code slated for removal, removed support for pre-v19 save files 2021-06-20 18:37:37 +01:00
Maruno17
7c42e4ec20 Added new section-based format for moves.txt 2021-06-20 17:29:16 +01:00
Maruno17
c55324145d Removed all other uses of and support for ID numbers 2021-06-19 20:01:12 +01:00
Maruno17
2ca8a42949 Yet more script rearranging 2021-04-17 23:45:42 +01:00