Commit Graph

136 Commits

Author SHA1 Message Date
Maruno17
138d41f7bc Merge branch 'dev' into ai 2023-03-23 23:20:58 +00:00
Maruno17
7f5aea63bb shadow_pokemon.txt now supports sections for individual forms of a species 2023-03-11 23:14:19 +00:00
Maruno17
e93c3c69ac Merge branch 'dev' into ai 2023-03-09 18:31:30 +00:00
Maruno17
3a9199da1b Refactored animation editor code into a single module 2023-03-06 22:25:45 +00:00
Maruno17
7e4ef4247b Merge branch 'dev' into ai 2023-02-10 21:20:28 +00:00
Maruno17
becce85550 Removed deprecated code, renamed "base_damage"/"baseDamage"/"baseDmg" to "power" 2023-02-10 21:18:10 +00:00
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
3f5c1f0974 Merge branch 'dev' into ai 2023-02-05 19:10:25 +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
d8f38947f4 AI function code rewrites, added Shadow Sky's missing effects, fixed Shadow End's recoil damage 2023-01-22 21:21:19 +00:00
Maruno17
f7578002ea Rewrites of disabling move AI function codes, fixed various AI errors 2023-01-19 22:30:55 +00:00
Maruno17
a22f75f500 Merge branch 'dev' into ai 2023-01-08 21:56:33 +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
707cd143d8 Fixed sliding on ice having the camera lag behind 2023-01-03 15:05:54 +00:00
Maruno17
05b954e262 Merge branch 'dev' into ai 2022-12-31 17:28:56 +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
3e73d1c1f9 Merge branch 'dev' into ai 2022-11-05 20:42:12 +00:00
Maruno17
5a49bbbc94 Renamed function code UseUserBaseDefenseInsteadOfUserBaseAttack, more AI function code changes 2022-10-17 21:13:31 +01: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
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