Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit dbad66e
Author: LOuroboros <lunosouroboros@gmail.com>
Date:   Fri Jan 5 12:09:39 2024 -0300

    Applied a number of changes to the debug menu (rh-hideout#3926)

    * Renamed the Party/Boxes section of the debug menu to just Party

    Misc:
    -Relabeled the enums containing the constants for the different features in each main section of the menu.
     -The reason why is that "enum PartyMenu" was throwing a compiler error for whatever reason, so I renamed the other labels to keep them consistent with it.

    * Renamed the debug menu's 'Fill PC/Pockets' to 'PC/Bag'

    * Moved PC/Bar higher in the debug menu's list

    * Added a debug feature to clear the bag

    * Moved 'Access PC' and 'Clear Boxes' to PC/Bag

    * Relocated the GivePCBagDebugMenu enum

    * Packed the debug menu's 'Fill' options into a PC/Bag category of their own
    And reupdated a lot of labels that I previously renamed. I shouldn't have removed the "Fill" in them when I renamed PC/Pockets to PC/Bag..

    * Fixed alignment in sDebugMenu_Items_Utilities

    * Shuffled the positions of the debug menu's 'Access PC' and 'Clear Bag'

    * Made the B button take you back to PC/Bag from Fill, instead of taking you to the main debug menu

    * Updated alignment in sDebugMenu_Items_Utilities again

    ---------

    Co-authored-by: DizzyEggg <jajkodizzy@wp.pl>

commit 9c07718
Author: Gabriel Cowley <gabrielcowley@yahoo.co.uk>
Date:   Fri Jan 5 14:30:25 2024 +0000

    Fix debug action SelectShiny tInput value toggle (rh-hideout#3930)

commit 48c26f7
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Jan 5 12:36:28 2024 +0000

    Update README.md (rh-hideout#3929)

    Add Dynamic Multichoice to upcoming readme

    Co-authored-by: DizzyEggg <jajkodizzy@wp.pl>

commit b5252c4
Merge: 10b37d9 889234d
Author: DizzyEggg <jajkodizzy@wp.pl>
Date:   Fri Jan 5 13:34:03 2024 +0100

    Berry Expansion (rh-hideout#3618)

commit 889234d
Merge: 7b0904c 10b37d9
Author: DizzyEggg <jajkodizzy@wp.pl>
Date:   Fri Jan 5 13:22:16 2024 +0100

    Merge branch 'upcoming' into berryexpansion

commit 7b0904c
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Jan 5 11:32:59 2024 +0100

    Fix extended berry stage palettes

commit 10b37d9
Author: aronson <i@pingas.org>
Date:   Fri Jan 5 02:39:32 2024 -0600

    Remove --no-warn-rwx-segments from linker flags (rh-hideout#3903)

    Co-authored-by: DizzyEggg <jajkodizzy@wp.pl>

commit 41ce8e8
Merge: 418e551 84d4009
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Jan 5 00:32:23 2024 +0100

    Merge branch 'berryexpansion' of https://github.com/Bassoonian/pokeemerald-expansion into berryexpansion

commit 418e551
Merge: 1ee568a 8b80a54
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Jan 5 00:32:21 2024 +0100

    Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion

commit 8b80a54
Author: BiffaloXIII <155677715+BiffaloXIII@users.noreply.github.com>
Date:   Thu Jan 4 17:54:03 2024 -0300

    Removed footprint field when P_FOOTPRINTS is FALSE (rh-hideout#3925)

commit 1ee568a
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Jan 4 16:12:39 2024 +0000

    Remove leftover code for myself

commit b948acc
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Jan 4 16:07:12 2024 +0000

    Remove redundant table

commit b56a9e6
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Jan 4 16:04:00 2024 +0000

    Remove unused function

commit 52eeca6
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Jan 4 16:02:21 2024 +0000

    Replace berry descriptions with compound strings

commit bfe3e76
Author: Frank DeBlasio <35279583+fdeblasio@users.noreply.github.com>
Date:   Thu Jan 4 09:39:26 2024 -0500

    Fixed Battle AI debug screen shiny sprites (rh-hideout#3922)

    * Switched gBattleMons.isShiny to GetMonData

    * Simplified getting party of Pokemon

    ---------

    Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

commit 4d5c572
Author: Frank DeBlasio <35279583+fdeblasio@users.noreply.github.com>
Date:   Thu Jan 4 07:30:42 2024 -0500

    Refactor trainer classes (rh-hideout#3875)

    * Created TrainerClass struct

    * Added money multiplier to TrainerClass struct

    * Added Poke Balls to struct

    * Condensed gTrainerClasses

    * Simplified trainer Poke Balls

    * Moved trainer classes into battle_main.c

    * Removed complicated ball macro

    ---------

    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
    Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

commit 6cb89ef
Author: Frank DeBlasio <35279583+fdeblasio@users.noreply.github.com>
Date:   Wed Jan 3 17:49:11 2024 -0500

    Update debug menu text (rh-hideout#3919)

    * Updated capitalization and abbrevations in debug menu

    * Updated spacing in debug.c

commit d7cdf41
Author: LOuroboros <lunosouroboros@gmail.com>
Date:   Wed Jan 3 18:28:55 2024 -0300

    Added EV setters to the debug menu's "Give Pokémon Complex" (rh-hideout#3566)

    * Added EV setters to the debug menu's "Give Pokémon Complex"

    Misc. Changes:
    -Updated the text strings for the 2 "Give Pokémon" options used by the debug menu.

    * Optimized DebugAction_Give_Pokemon_SelectShiny and made some debug functions use relevant constants

    * Removed extra call to CalculateMonStats in DebugAction_Give_Pokemon_ComplexCreateMon

    * Made the EV selection go back to the start if the sum of EV is > 510

    ---------

    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>

commit f94e65a
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Wed Jan 3 20:24:45 2024 +0000

    Footprint config (rh-hideout#3902)

    * Footprint config

    * Don't enable by default

commit e7fac02
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Wed Jan 3 17:48:09 2024 +0100

    Fix summary screen nature colours after mints (rh-hideout#3898)

commit cb89df8
Merge: 9f09309 34f51da
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Wed Jan 3 16:07:11 2024 +0100

    Dynamic Multichoices (rh-hideout#3826)

commit 34f51da
Merge: 15fa85c 9f09309
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Wed Jan 3 15:54:39 2024 +0100

    Merge branch 'upcoming' into feature/dynmulti-expansion

commit 9f09309
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Jan 2 23:29:46 2024 +0100

    Remove comment from pokemon_icon.c (rh-hideout#3896)

commit 84d4009
Merge: 1662dc3 3c21e23
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Jan 2 22:47:32 2024 +0100

    Merge branch 'upcoming' into berryexpansion

commit 3c21e23
Author: aronson <i@pingas.org>
Date:   Tue Jan 2 08:24:52 2024 -0600

    Allocate initialized sections for EWRAM and IWRAM (rh-hideout#3892)

commit 7aaefe7
Author: Nephrite <thechurchofcage@gmail.com>
Date:   Mon Jan 1 18:58:29 2024 +0000

    Receiver/Power of Alchemy (rh-hideout#3889)

commit ab75ad6
Author: Nephrite <thechurchofcage@gmail.com>
Date:   Mon Jan 1 14:03:34 2024 +0000

    Ability flags update (rh-hideout#3886)

    * Added five ability flags

    Omitted duplicate flags that are basically "can't copy" (Role Play, Receiver, Entrainment, Skill Swap), didn't bother adding Neutralizing Gas flag,

    * Mold Breaker and Trace

    * Gastro Acid, Simple Beam, Worry Seed

    Decided to keep the Simple Beam/Worry Seed functions

    * Entrainment done

    * Skill Swap

    * Doodle/Role Play + flag descriptions

    Also adjusted Doodle test

    * Wandering Spirit, Mummy, Neutralizing Gas

    Neutralizing Gas really only needs to check for other mons with Neutralizing Gas, otherwise unsuppressable abilities are handled separately.

    * Renamed flags

commit f6f287d
Author: kittenchilly <mario.pikmin.zelda@gmail.com>
Date:   Sun Dec 31 18:38:50 2023 -0600

    Add Indigo Disk Pokemon data (rh-hideout#3878)

    * Archaludon?

    * more archuladon stuff

    * Hydrapple and Gouging Fire

    * Raging Bolt

    * Iron Boulder and Iron Crown

    * Terapagos

    * Pecharunt

    * Update gen_9.h

    * Pokedex orders

commit f31b4f3
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sun Dec 31 11:33:52 2023 +0100

    Turn nature names into compound strings (rh-hideout#3871)

    * Turn nature names into compound strings

    * Move nature names out of dedicated file

commit 15fa85c
Merge: b83b1f7 a32e2cc
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Sun Dec 31 00:16:44 2023 +0100

    Merge branch 'upcoming' into feature/dynmulti-expansion

commit a32e2cc
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sat Dec 30 23:07:18 2023 +0100

    Move Ability AI scores to gAbilities (rh-hideout#3862)

    * Ability refactor

    * Adds abilities to RHH rom header

    * Move Ability Ratings to gAbilities

    * Add previously unknown ai ratings

    ---------

    Co-authored-by: Martin Griffin <martinrgriffin@gmail.com>
    Co-authored-by: DizzyEggg <jajkodizzy@wp.pl>

commit b83b1f7
Merge: 7f3264c a094266
Author: DizzyEggg <jajkodizzy@wp.pl>
Date:   Sat Dec 30 22:41:59 2023 +0100

    Merge branch 'upcoming' into feature/dynmulti-expansion

commit a094266
Merge: cc32e37 9e051aa
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sat Dec 30 22:40:29 2023 +0100

    2023's last pret merge (rh-hideout#3869)

commit 9e051aa
Merge: cc32e37 6c96641
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sat Dec 30 20:49:05 2023 +0100

    Merge branch 'master' of https://github.com/pret/pokeemerald into pretmergenewyears

commit cc32e37
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Sat Dec 30 20:20:12 2023 +0100

    Adds some Indigo Disk moves (rh-hideout#3853)

    * Burning Bulwark

    * Fickle Beam

    * Alluring Voice

    * Electro Shot

    * forgot sheer force flag for alluring voice

    * review changes

    * additional alluring voice test

    * Simple Allruing Voice animation

    * Update battle.h

    ---------

    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>

commit 66a638f
Author: kittenchilly <mario.pikmin.zelda@gmail.com>
Date:   Sat Dec 30 04:40:58 2023 -0600

    Change Ivy Cudgel to be based on Ogerpon form rather than held item (rh-hideout#3865)

    * Change Ivy Cudgel to be based on Ogerpon form rather than held item

    * Update ivy_cudgel.c

    * Address reviews

    * Update test/battle/move_effect/ivy_cudgel.c

    ---------

    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>

commit ed850d3
Author: Martin Griffin <martinrgriffin@gmail.com>
Date:   Sat Dec 30 10:10:40 2023 +0000

    VSync BENCHMARKs and avoid AdvanceRandom in tests (rh-hideout#3866)

commit ab900e3
Merge: 6bc0bf9 2450263
Author: Martin Griffin <martinrgriffin@gmail.com>
Date:   Fri Dec 29 19:46:24 2023 +0000

    Merge remote-tracking branch 'rhh/master' into upcoming

commit 1662dc3
Merge: a4b819a 6bc0bf9
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 29 14:32:10 2023 +0100

    Merge branch 'upcoming' into berryexpansion

commit 6bc0bf9
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 29 14:25:24 2023 +0100

    Ability refactor (rh-hideout#3861)

    * Ability refactor

    * Adds abilities to RHH rom header

    ---------

    Co-authored-by: Martin Griffin <martinrgriffin@gmail.com>

commit 16a3954
Author: Ninjdai <65647523+Ninjdai1@users.noreply.github.com>
Date:   Fri Dec 29 14:12:17 2023 +0100

    Add MOVES_COUNT and NUM_SPECIES to RHH rom header (rh-hideout#3831)

    * Add MOVES_COUNT and NUM_SPECIES to RHH rom header

commit 94a650a
Author: kittenchilly <mario.pikmin.zelda@gmail.com>
Date:   Thu Dec 28 16:27:09 2023 -0600

    Add Fillet Away + Belly Drum tweaks (rh-hideout#3616)

    * Add Fillet Away

    * Fillet Away and Belly Drum tests

    * More tests

    * Update fillet_away.c

    * Update fillet_away.c

    * Newlines

    * Update battle_scripts_1.s

    * Update belly_drum.c

    * Address reviews

    * Fix order

    * Swords Dance assume

    * Update belly_drum.c

    * Try some stuff

    * Fix hp not being halved in certain cases

    * Update battle_scripts_1.s

    * AI stuff

commit 1e958ad
Author: kittenchilly <mario.pikmin.zelda@gmail.com>
Date:   Thu Dec 28 16:00:34 2023 -0600

    Add Indigo Disk item data (rh-hideout#3854)

commit bc37377
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 28 12:33:29 2023 +0100

    Define new abilities (rh-hideout#3838)

    Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

commit 872ddf3
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 28 12:21:52 2023 +0100

    The Indigo Disk Moves (rh-hideout#3704)

    * Draft Indigo Disk move data

    * Add basic defines (flags, targets and priority missing)

    * Update move flags

    * Temper Flare is Stomping Tantrum

    * Forgot to push, please squash :D

    * Fix failing tests

commit 28f1777
Author: kittenchilly <mario.pikmin.zelda@gmail.com>
Date:   Thu Dec 28 04:47:00 2023 -0600

    Implement Pokemon Box Link functionality (rh-hideout#3837)

    * Implement Pokemon Box Link functionality

    * Update item_use.c

    * Update item_use.c

    * Can only use box link if the map allows escape

    * Revert "Can only use box link if the map allows escape"

    This reverts commit be5b46b.

    * Overworld_IsEscapingAllowed

    ---------

    Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

commit c57b154
Author: tertu <flameshadowxeroshin@gmail.com>
Date:   Thu Dec 28 03:58:35 2023 -0600

    Replace at least some shuffle algorithms with Shuffle (rh-hideout#3801)

    Most of these are the poor-quality and slow "naive shuffle", but some might be better.
    In any case, Shuffle is known good.

commit 4f61d44
Author: kittenchilly <mario.pikmin.zelda@gmail.com>
Date:   Wed Dec 27 17:02:51 2023 -0600

    Add Treasure Factor to Nugget and Tiny Mushroom (rh-hideout#3836)

commit 6c96641
Merge: 6385f04 7567b0a
Author: GriffinR <griffin.g.richards@gmail.com>
Date:   Wed Dec 27 17:39:37 2023 -0500

    Merge pull request rh-hideout#1969 from Kurausukun/macros

    Safeguard SQUARE and CUBE Macro Arguments in Parentheses

commit 7567b0a
Author: Kurausukun <lord.uber1@gmail.com>
Date:   Wed Dec 27 17:29:35 2023 -0500

    safeguard SQUARE and CUBE macro arguments in parentheses

commit 88b0bd6
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Wed Dec 27 22:48:56 2023 +0100

    Add gen9 item prices + configs (rh-hideout#3834)

    * Add gen9 item prices + configs

    * Adjust gen 1 PP item costs

    ---------

    Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

commit 3e321d1
Author: DizzyEggg <jajkodizzy@wp.pl>
Date:   Wed Dec 27 21:35:42 2023 +0100

    fix ally switch dig issue (rh-hideout#3835)

commit f5e0b3d
Author: Frank DeBlasio <35279583+fdeblasio@users.noreply.github.com>
Date:   Wed Dec 27 14:28:44 2023 -0500

    Changed SHINY_ODDS to FALSE in pokedex_plus_hgss.c (rh-hideout#3832)

commit 3ad6602
Author: Martin Griffin <martinrgriffin@gmail.com>
Date:   Wed Dec 27 16:48:17 2023 +0000

    Backwards-compatible BoxPokémon Refactor (rh-hideout#3438)

    * Check progress in non-battle PARAMETRIZEd tests

    * Overworld Script Tests

    * Backward-compatible BoxPokemon Refactor

    Reuses space that contains zeros to provide space for:
    - HP/status in the box
    - 12-character nicknames
    - Up to 63 PokéBalls
    - Shininess separate from PID
    - Hidden Nature
    - Hyper Training
    - Dynamax Level
    - Gigantamax Factor
    - Terastallization Types
    - Shadow

    Implements:
    - OW_PC_HEAL to switch between Gen7- and Gen8+ behavior
    - Nature Mints
    - Dynamax Candy
    - Hyper Training commands (canhypertrain/hypertrain)
    - Gigantamax Factor commands (hasgigantamaxfactor/togglegigantamaxfactor)
    - Terastallization Type on the summary screen
    - Prevents Gigantamax Factor Pokémon from evolving into a species without a Gigantamax form

    * fixup! Backward-compatible BoxPokemon Refactor

    * displaydexinfo fix from Jasper

commit a4b819a
Merge: 77f0ab8 a9d6832
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Wed Dec 27 14:00:12 2023 +0100

    Merge branch 'upcoming' into berryexpansion

commit a9d6832
Author: ghoulslash <41651341+ghoulslash@users.noreply.github.com>
Date:   Wed Dec 27 07:54:37 2023 -0500

    Separate AI flags by battler position (rh-hideout#3003)

    * ai flags by battlerId

    * fix recoded battle saved ai flags

    * update aiFlags check in OpponentHandleChoosePokemon

    * add header for TRAINER_CUSTOM_PARTNER define

    * initialize flags in BattleAI_SetupAIData

    * fix usage of TRAINER_CUSTOM_PARTNER

    * remove whitespace

    ---------

    Co-authored-by: ghoulslash <pokevoyager0@gmail.com>

commit 7f3264c
Author: sbird <sbird@no.tld>
Date:   Tue Dec 26 14:26:07 2023 +0100

    [dynamic multichoice] fix -Wall warnings / errors

commit c27ea10
Merge: 166a1a4 acab86d
Author: sbird <sbird@no.tld>
Date:   Tue Dec 26 14:22:49 2023 +0100

    Merge branch 'feature/dynmulti' into feature/dynmulti-expansion

commit 166a1a4
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Mon Dec 25 18:28:16 2023 +0100

    Adds ability Embody Aspect + minor fix to Hospitality (rh-hideout#3821)

    * Adds ability Embody Aspect + minor fix to Hospitality

    * comment out failing tests related to neutralizing gas

    * fixes neutralizing gas bug

    * leftover

commit 1339256
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Mon Dec 25 01:43:57 2023 +0100

    Adds Ability Hospitality (rh-hideout#3818)

    * Adds Ability Hospitality

    * fix agbcc

commit 77f0ab8
Merge: c2a5b71 58b03cb
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sun Dec 24 23:17:58 2023 +0100

    Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion

commit c2a5b71
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sun Dec 24 23:17:05 2023 +0100

    Fix six stage berry graphical issues

commit c115649
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sun Dec 24 23:08:15 2023 +0100

    Fix 6 stage Berry trees not growing properly

commit 9be8fed
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sun Dec 24 22:59:43 2023 +0100

    Fix string with duplicate berry berry

commit 58b03cb
Author: LOuroboros <lunosouroboros@gmail.com>
Date:   Sun Dec 24 18:10:01 2023 -0300

    Implemented a CannotUseItemsInBattle function (rh-hideout#3524)

    * Implemented a CannotUseItemsInBattle function
    This fucntion is the result of merging CannotUseBagBattleItem and CannotUsePartyBattleItem. No reason to split the work between 2 functions when you can do it all with just 1.

    Misc. Changes:
    -Turned most of the if statements inside the function into "else if" statements for performance reasons.
    -Refactored how the local variable "cannotUse" was used turning it into a bool.

    * Made CannotUseItemsInBattle use a switch statement

    Misc. Changes:
    -Removed pointless parentheses from case EFFECT_ITEM_SET_FOCUS_ENERGY
    -Removed pointless i loop variable from case EFFECT_ITEM_INCREASE_ALL_STATS and replaced a hardcoded 1 in its for loop.
    -Turned the i loop variable declared at the top of the function into a u32 variable
    -Removed pointless comments. The EFFECT_ITEM constants are readable enough to convey what sort of items they affect.

    ---------

    Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

commit f700466
Author: Zimmermann Gyula <graiondilach@hotmail.com>
Date:   Sat Dec 23 16:34:24 2023 +0100

    Implement optional Gen1 type immunity logic. (rh-hideout#3627)

    * Implement optional Gen1 type immunity logic.

    * Add tests against Gen1 burn, freeze and paralysis.

    * !fixup Expand tests with Gen1 paths.

    * Fixup tests.

    Remove superflous defines.
    Explicitly ASSUME used move type and effect.

    * Fix flipped definitions on Freezing Glare test.

    ---------

    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>

commit 72615a7
Author: Zimmermann Gyula <graiondilach@hotmail.com>
Date:   Sat Dec 23 12:29:12 2023 +0100

    Prevent infinite loop. (rh-hideout#3808)

    Regression caused by rh-hideout@fe1bad6

commit 662939d
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sat Dec 23 00:41:47 2023 +0100

    Add family defines

commit db0a948
Merge: 4f66ac4 1a7166c
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sat Dec 23 00:39:10 2023 +0100

    Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion

commit 1a7166c
Author: DizzyEggg <jajkodizzy@wp.pl>
Date:   Sat Dec 23 00:27:40 2023 +0100

    Tests do not allow to use SEND_OUT if the chosen mon is fainted (rh-hideout#3752)

    * Tests dont allow to send out pokemon with 0 hp

    * remove test test

    * handle in-game 0 hp sent out

    ---------

    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>

commit fb28ce5
Author: tertu <flameshadowxeroshin@gmail.com>
Date:   Fri Dec 22 11:39:15 2023 -0600

    Optional high-quality RNG (rh-hideout#3780)

    High-quality RNG, behind the HQ_RANDOM flag, enabled by default

    Makes the shuffle test error a bit more tolerant

commit 63316da
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Fri Dec 22 18:25:23 2023 +0100

    Adds missing Doodle tests and fix (rh-hideout#3800)

commit 505b8b6
Author: kittenchilly <mario.pikmin.zelda@gmail.com>
Date:   Fri Dec 22 09:45:55 2023 -0600

    Add Doodle + update ability banlists (rh-hideout#3609)

    * Add Doodle

    * Doodle test

    * Oops

    * Update battle_util.c

    ---------

    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>

commit 83e2f4b
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Fri Dec 22 16:22:53 2023 +0100

    Adds ability Minds Eye + Tests (rh-hideout#3782)

    * Implemented Mind's Eye with tests + Keen Eye tests

    * AI test

    * fix AI minds eye test

    * Adds ability Minds Eye + Tests

    * fix tests

    ---------

    Co-authored-by: Eduardo Quezada <eduardo602002@gmail.com>
    Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>

commit 566653a
Author: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Date:   Fri Dec 22 15:05:35 2023 +0100

    Replace mons for gen9 abilities (rh-hideout#3740)

commit f866487
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 22 14:11:02 2023 +0100

    Fix Mega Stone descriptions (rh-hideout#3797)

commit 2af6d65
Author: fakuzatsu <118256341+fakuzatsu@users.noreply.github.com>
Date:   Thu Dec 21 13:01:13 2023 +0000

    added ability to set flags in tests (rh-hideout#3786)

commit 698e69f
Author: DizzyEggg <jajkodizzy@wp.pl>
Date:   Thu Dec 21 11:40:04 2023 +0100

    add emitResult argument to ShouldSwitch AI functions (rh-hideout#3784)

commit 5cdee87
Author: Frank DeBlasio <35279583+fdeblasio@users.noreply.github.com>
Date:   Wed Dec 20 17:14:33 2023 -0500

    Refactor Trainer sprites (rh-hideout#3597)

    * Added TrainerSprite struct with coordinates

    * Added .frontPic to struct

    * Added .palette to TrainerSprite struct

    * Added .animation to the struct

    * Added define for sprite size

    * Condensed animations since they were all the same

    * Improved TRAINER_SPRITE/PAL defines

    * Simplified seemingly unused .y_offset and TRAINER_PIC_SIZE values

    * Condensed TRAINER_SPRITE and TRAINER_PAL into TRAINER_PIC

    * Renamed .size to .y_offset since that what it appears to actually be

    * Moved y_offset into TRAINER_PIC

    * Moved animation inside of TRAINER_PIC

    * Added array number to preproc

    * Removed trailing spaces

    * Added sprite/palette files to preproc

    * Revert adding sprites to preproc as it fails agbcc

    This reverts commit dce57f8.

    * Added backsprite struct

    * Added animations to backsprite struct

    * Changed TRAINER_PIC to TRAINER_SPRITE

    * Added animation to backsprite preproc

    * Added .backPic to struct

    * Moved array number into backsprite preproc

    * Removed definitions for trainer sprites

    * Hardcoded sAnims_Trainer into struct since every sprite uses it

    * Fixed TRAINER_SPRITE arguments

commit 6385f04
Merge: 0e10fc3 027dccf
Author: GriffinR <griffin.g.richards@gmail.com>
Date:   Wed Dec 20 09:03:35 2023 -0500

    Merge pull request rh-hideout#1968 from Jaizu/patch-5

    Missing constant

commit 027dccf
Author: Jaizu <jaizu85@gmail.com>
Date:   Wed Dec 20 12:24:52 2023 +0100

    Missing constant

commit 0e10fc3
Merge: e4149e8 f8a4cf9
Author: GriffinR <griffin.g.richards@gmail.com>
Date:   Wed Dec 13 13:30:32 2023 -0500

    Merge pull request rh-hideout#1966 from Bassoonian/pokeacutemonpret

    Clean up pokemon/ball/dex mentions in comments

commit f8a4cf9
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Wed Dec 13 09:52:04 2023 +0100

    Update pokedex.c

commit 6365431
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 12 23:20:22 2023 +0100

    Add PokéNav too

commit bc2a745
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 12 23:18:35 2023 +0100

    Fix accidental symbol replacements

commit e5ac2fe
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 12 19:02:36 2023 +0100

    Clean up pokemon/ball/dex mentions in comments

commit 4f66ac4
Merge: ffb16c0 7016f25
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 8 12:03:44 2023 +0100

    Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion

commit ffb16c0
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 8 12:03:16 2023 +0100

    ORAS drain rate

commit 1e0b895
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 8 01:05:54 2023 +0100

    Add missing check to prevents water grinding

commit 6173f9b
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 8 01:01:01 2023 +0100

    Add soil moisturing config

commit 061e56a
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Fri Dec 8 00:22:12 2023 +0100

    Make weeds and pests affect yield

commit 2b71187
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 23:50:08 2023 +0100

    Add caretaking bonuses to berry data

commit d795987
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 18:06:20 2023 +0100

    Preset yield config

commit ccb0e11
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 14:18:54 2023 +0100

    Add generation-based growth rate config

commit 9d09b36
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 13:22:01 2023 +0100

    Refactor growth time and add six stage toggle

commit c8d356a
Merge: 9be5d4f 8ac66cd
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 12:18:50 2023 +0100

    Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion

commit 9be5d4f
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 12:05:12 2023 +0100

    Add single stage growth to debug menu

commit 9fa811d
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 11:54:07 2023 +0100

    Mulches affect gradient watering

commit 6ba4ec7
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Dec 7 11:46:44 2023 +0100

    Small change to debug script for clarity

commit 8e43b7d
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Wed Dec 6 21:08:09 2023 +0100

    Debug Berry functions

commit 3e1c04c
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 5 22:13:21 2023 +0100

    Allow pests and weeds interaction

commit 36befdc
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 5 21:54:17 2023 +0100

    Add moisture clock, weeds and pest generation

commit 5f2c8df
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 5 20:24:03 2023 +0100

    Replace watered bits with a single equivalent field

commit e4fd784
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 5 20:07:00 2023 +0100

    Store mutation as mutation id instead of berry id

commit ddcd0db
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 5 20:02:11 2023 +0100

    Weeds and Pests strings

commit 6da03e6
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Tue Dec 5 02:16:22 2023 +0100

    Add Berry color and drain rate

commit 0d70d99
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Mon Dec 4 00:33:25 2023 +0100

    Put Mulch behind config

commit bd354f2
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Mon Dec 4 00:17:41 2023 +0100

    Allow for storing bonus Berries in Berry Yield

commit 45e19d2
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sun Dec 3 13:22:58 2023 +0100

    Remove lost comment

commit b02b3d0
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Sun Dec 3 13:17:34 2023 +0100

    Add Mulch effects

commit 4628af3
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Thu Nov 30 13:34:33 2023 +0100

    Non-watering mulch effects

commit a517e14
Author: Bassoonian <iasperbassoonian@gmail.com>
Date:   Wed Nov 29 13:26:43 2023 +0100

    Berry Mutations

commit acab86d
Merge: cefb05b 693f750
Author: sbird <sbird@no.tld>
Date:   Wed Nov 29 13:20:03 2023 +0100

    Merge branch 'feature/dynmulti' of github.com:SBird1337/pokeemerald into feature/dynmulti

commit cefb05b
Author: sbird <sbird@no.tld>
Date:   Wed Nov 29 13:19:37 2023 +0100

    [dynmulti] left/top read from variables

commit ecab5cc
Merge: 6a622eb 15e1cd8
Author: sbird <sbird@no.tld>
Date:   Wed Nov 29 13:06:18 2023 +0100

    Merge remote-tracking branch 'pret/master' into feature/dynmulti

commit 693f750
Author: Jaizu <jaizu85@gmail.com>
Date:   Wed Aug 16 14:49:44 2023 +0200

    Make use of MULTI_B_PRESSED constant. (rh-hideout#4)

commit 6a622eb
Merge: 47f71a1 4c2b125
Author: sbird <sbird@no.tld>
Date:   Mon Aug 14 13:20:03 2023 +0200

    Merge remote-tracking branch 'pret/master' into feature/dynmulti

commit 47f71a1
Author: sbird <sbird@no.tld>
Date:   Wed Apr 26 03:53:52 2023 +0200

    [dynmulti] fix ignoreBPress semantics

commit a2dfc7c
Author: sbird <sbird@no.tld>
Date:   Mon Apr 24 19:13:39 2023 +0200

    [dynmulti] fix second scroll arrow y offset

commit 12d4b43
Merge: 7669643 73a6a58
Author: sbird <sbird@no.tld>
Date:   Mon Apr 24 18:30:30 2023 +0200

    Merge remote-tracking branch 'pret/master' into feature/dynmulti

commit 7669643
Merge: bfc6619 0851e55
Author: sbird <sbird@no.tld>
Date:   Wed Jan 18 23:39:31 2023 +0100

    Merge branch 'master' into feature/dynmulti

commit bfc6619
Author: sbird <sbird@no.tld>
Date:   Wed Jan 18 23:34:27 2023 +0100

    [script-command, dynmultichoice] early expand placeholders

commit 4fad6b3
Author: sbird <sbird@no.tld>
Date:   Wed Jan 18 23:25:19 2023 +0100

    [script-command, dynmultichoice] load message box and border gfx

commit a7cd4ca
Author: sbird <sbird@no.tld>
Date:   Tue Jan 17 21:21:07 2023 +0100

    [script-command, dynmultichoice] implement event handler

commit 276ce62
Author: sbird <sbird@no.tld>
Date:   Mon Jan 16 22:40:36 2023 +0100

    [script-command, dynmultichoice] add shouldSort, initialSelected arguments. read pushed arguments front to back

commit 569fa0a
Author: sbird <sbird@no.tld>
Date:   Sun Jan 15 13:41:10 2023 +0100

    [script-command] add dynmultichoice

     * supports variable length arguments
     * automatically scrolls
     * supports building list menus from a stack
  • Loading branch information
Fervstheone committed Jan 5, 2024
1 parent dbaaaea commit 8b44e87
Show file tree
Hide file tree
Showing 246 changed files with 14,019 additions and 7,111 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Based off RHH's pokeemerald-expansion v1.7.1 https://github.com/rh-hideout/pokee
- *Support for new evolution methods*.
- *Dark Mode*.
- [Nature Colors](https://github.com/DizzyEggg/pokeemerald/tree/nature_color) in summary screen by @DizzyEggg
- [Dynamic Multichoice](https://github.com/SBird1337/pokeemerald/tree/feature/dynmulti) by @SBird1337
- ***Other features***
- Pressing B while holding a Pokémon drops them like in modern games (configurable).
- Running indoors (configurable).
Expand Down
14 changes: 12 additions & 2 deletions asm/macros/battle_script.inc
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@
.byte 0xbb
.endm

.macro maxattackhalvehp failInstr:req
.macro halvehp failInstr:req
.byte 0xbc
.4byte \failInstr
.endm
Expand Down Expand Up @@ -1087,8 +1087,9 @@
.4byte \failInstr
.endm

.macro trycopyability failInstr:req
.macro trycopyability battler:req, failInstr:req
.byte 0xd3
.byte \battler
.4byte \failInstr
.endm

Expand Down Expand Up @@ -2332,6 +2333,15 @@
goto \jumpInstr
.endm

.macro setallytonextattacker jumpInstr:req
jumpifbyte CMP_GREATER_THAN, gBattlerAttacker, 0x1, 1f
addbyte gBattlerAttacker, 0x2
goto \jumpInstr
1:
subbyte gBattlerAttacker, 0x2
goto \jumpInstr
.endm

.macro jumpifleafguardprotected battler:req, jumpInstr:req
various \battler, VARIOUS_JUMP_IF_LEAF_GUARD_PROTECTED
.4byte \jumpInstr
Expand Down
73 changes: 68 additions & 5 deletions asm/macros/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1737,11 +1737,44 @@
.2byte \quantity
.endm

@ Like callnative, but function expects a ctx
.macro callfunc func:req
.byte 0xe3
.4byte \func
.endm
@ Like callnative, but function expects a ctx
.macro callfunc func:req
.byte 0xe3
.4byte \func
.endm

.macro _dynmultichoice left:req, top:req, ignoreBPress:req, maxBeforeScroll:req, shouldSort:req, initialSelected:req, callbacks:req argv:vararg
.byte 0xe3
.2byte \left
.2byte \top
.byte \ignoreBPress
.byte \maxBeforeScroll
.byte \shouldSort
.2byte \initialSelected
.byte \callbacks
.byte (.Ldynmultichoice_\@_2 - .Ldynmultichoice_\@_1) / 4
.Ldynmultichoice_\@_1:
.4byte \argv
.Ldynmultichoice_\@_2:
.endm

@ Displays a multichoice box from which the user can choose a selection, and blocks script execution until a selection is made.
@ Lists of options are provided in argv.
@ If ignoreBPress is set to a non-zero value, then the user will not be allowed to back out of the multichoice with the B button.
.macro dynmultichoice left:req, top:req, ignoreBPress:req, maxBeforeScroll:req, initialSelected:req, callbacks:req argv:vararg
_dynmultichoice \left, \top, \ignoreBPress, \maxBeforeScroll, FALSE, \initialSelected, \callbacks, \argv
.endm

.macro dynmultipush name:req, id:req
.byte 0xe4
.4byte \name
.2byte \id
.endm

.macro dynmultistack left:req, top:req, ignoreBPress:req, maxBeforeScroll:req, shouldSort:req, initialSelected:req, callbacks:req
_dynmultichoice \left, \top, \ignoreBPress, \maxBeforeScroll, \shouldSort, \initialSelected, \callbacks, NULL
.endm


@ Supplementary

Expand Down Expand Up @@ -2032,3 +2065,33 @@
callnative CreateTrainerPartyForPlayer
trainerbattle_no_intro \trainer2, NULL
.endm

@ Sets VAR_RESULT to TRUE if stat can be hyper trained, or to
@ FALSE otherwise.
.macro canhypertrain stat:req, slot:req
callnative CanHyperTrain
.byte \stat
.2byte \slot
.endm

@ Hyper Trains a stat.
.macro hypertrain stat:req, slot:req
callnative HyperTrain
.byte \stat
.2byte \slot
.endm

@ Sets VAR_RESULT to TRUE if the Pokemon has the Gigantamax Factor,
@ or to FALSE otherwise.
.macro hasgigantamaxfactor slot:req
callnative HasGigantamaxFactor
.2byte \slot
.endm

@ Toggles the Gigantamax Factor for a Pokemon.
@ Fails for Melmetal (vanilla behavior).
@ Sets VAR_RESULT to TRUE if it succeeds, and FALSE otherwise.
.macro togglegigantamaxfactor slot:req
callnative ToggleGigantamaxFactor
.2byte \slot
.endm
27 changes: 24 additions & 3 deletions data/battle_anim_scripts.s
Original file line number Diff line number Diff line change
Expand Up @@ -16933,6 +16933,29 @@ ChillyReceptionSnowballs:
delay 3
return

Move_BURNING_BULWARK::
goto Move_PROTECT

Move_ALLURING_VOICE::
loadspritegfx ANIM_TAG_THIN_RING
createvisualtask AnimTask_BlendBattleAnimPal, 0xa, F_PAL_BG, 0x1, 0x0, 0x8, 0x6e7d
waitforvisualfinish
createvisualtask SoundTask_PlayCryWithEcho, 5, FALSE
createsprite gHyperVoiceRingSpriteTemplate, ANIM_ATTACKER, 0, 45, 0, 0, 0, 0, 0, 1
createvisualtask AnimTask_ShakeMon2, 2, ANIM_TARGET, 1, 0, 6, 1
createvisualtask AnimTask_ShakeMon2, 2, ANIM_DEF_PARTNER, 1, 0, 6, 1
createvisualtask AnimTask_ShakeBattleTerrain, 2, 1, 0, 6, 1
createvisualtask SoundTask_WaitForCry, 5
delay 0xA
createvisualtask AnimTask_ShakeMon2, 2, ANIM_TARGET, 1, 0, 26, 1
createvisualtask AnimTask_ShakeMon2, 2, ANIM_DEF_PARTNER, 1, 0, 26, 1
waitforvisualfinish
createvisualtask SoundTask_WaitForCry, 0x5
waitforvisualfinish
createvisualtask AnimTask_BlendBattleAnimPal, 0xa, F_PAL_BG, 0x1, 0x8, 0x0, 0x6e7d
waitforvisualfinish
end

Move_TERA_BLAST::
Move_AXE_KICK::
Move_LAST_RESPECTS::
Expand Down Expand Up @@ -16984,13 +17007,11 @@ Move_IVY_CUDGEL::
Move_ELECTRO_SHOT::
Move_TERA_STARSTORM::
Move_FICKLE_BEAM::
Move_BURNING_BULWARK::
Move_THUNDERCLAP::
Move_MIGHTY_CLEAVE::
Move_TACHYON_CUTTER::
Move_HARD_PRESS::
Move_DRAGON_CHEER::
Move_ALLURING_VOICE::
Move_TEMPER_FLARE::
Move_SUPERCELL_SLAM::
Move_PSYCHIC_NOISE::
Expand Down Expand Up @@ -19357,7 +19378,7 @@ Move_TELEPORT:
call UnsetPsychicBg
waitforvisualfinish
end

DoubleTeamAnimRet:
setalpha 12, 8
monbg ANIM_ATK_PARTNER
Expand Down
100 changes: 97 additions & 3 deletions data/battle_scripts_1.s
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,72 @@ gBattleScriptsForMoveEffects::
.4byte BattleScript_EffectGlaiveRush @ EFFECT_GLAIVE_RUSH
.4byte BattleScript_EffectBrickBreak @ EFFECT_RAGING_BULL
.4byte BattleScript_EffectHit @ EFFECT_RAGE_FIST
.4byte BattleScript_EffectDoodle @ EFFECT_DOODLE
.4byte BattleScript_EffectFilletAway @ EFFECT_FILLET_AWAY
.4byte BattleScript_EffectHit @ EFFECT_IVY_CUDGEL
.4byte BattleScript_EffectHit @ EFFECT_FICKLE_BEAM

BattleScript_EffectFilletAway:
attackcanceler
attackstring
ppreduce
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_FilletAwayTryAttack
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, MAX_STAT_STAGE, BattleScript_FilletAwayTryAttack
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPEED, MAX_STAT_STAGE, BattleScript_ButItFailed
BattleScript_FilletAwayTryAttack::
halvehp BattleScript_ButItFailed
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
attackanimation
waitanimation
setbyte sSTAT_ANIM_PLAYED, FALSE
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_SPATK | BIT_SPEED, STAT_CHANGE_BY_TWO
setstatchanger STAT_ATK, 2, FALSE
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_CHANGE_ALLOW_PTR, BattleScript_FilletAwayTrySpAtk
printfromtable gStatUpStringIds
waitmessage B_WAIT_TIME_LONG
BattleScript_FilletAwayTrySpAtk::
setstatchanger STAT_SPATK, 2, FALSE
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_CHANGE_ALLOW_PTR, BattleScript_FilletAwayTrySpeed
printfromtable gStatUpStringIds
waitmessage B_WAIT_TIME_LONG
BattleScript_FilletAwayTrySpeed::
setstatchanger STAT_SPEED, 2, FALSE
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_CHANGE_ALLOW_PTR, BattleScript_FilletAwayEnd
printfromtable gStatUpStringIds
waitmessage B_WAIT_TIME_LONG
BattleScript_FilletAwayEnd::
bichalfword gMoveResultFlags, MOVE_RESULT_NO_EFFECT
healthbarupdate BS_ATTACKER
datahpupdate BS_ATTACKER
goto BattleScript_MoveEnd

BattleScript_EffectDoodle:
attackcanceler
attackstring
ppreduce
attackanimation
waitanimation
setbyte gBattleCommunication, 0
BattleScript_EffectDoodle_CopyAbility:
trycopyability BS_ATTACKER, BattleScript_ButItFailed
.if B_ABILITY_POP_UP == TRUE
setbyte sFIXED_ABILITY_POPUP, TRUE
showabilitypopup BS_ATTACKER
pause 60
sethword sABILITY_OVERWRITE, 0
updateabilitypopup BS_ATTACKER
pause 20
destroyabilitypopup
pause 40
.endif
printstring STRINGID_PKMNCOPIEDFOE
waitmessage B_WAIT_TIME_LONG
switchinabilities BS_ATTACKER
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0x0, BattleScript_MoveEnd
addbyte gBattleCommunication, 1
jumpifnoally BS_TARGET, BattleScript_MoveEnd
setallytonextattacker BattleScript_EffectDoodle_CopyAbility
goto BattleScript_MoveEnd

BattleScript_EffectGlaiveRush::
call BattleScript_EffectHit_Ret
Expand Down Expand Up @@ -997,12 +1063,25 @@ BattleScript_EffectMeteorBeam::
@ DecideTurn
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_TwoTurnMovesSecondTurn
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_NO_ATTACKSTRING, BattleScript_TwoTurnMovesSecondTurn
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_METEOR_BEAM
jumpifmove MOVE_METEOR_BEAM, BattleScript_SetStringMeteorBeam
jumpifmove MOVE_ELECTRO_SHOT, BattleScript_SetStringElectroShock
BattleScript_TryCharging:
call BattleScript_FirstChargingTurnMeteorBeam
jumpifmove MOVE_METEOR_BEAM, BattleScript_TryMeteorBeam
jumpifweatheraffected BS_ATTACKER, B_WEATHER_RAIN, BattleScript_TwoTurnMovesSecondTurn @ Check for move Electro Shot
BattleScript_TryMeteorBeam:
jumpifnoholdeffect BS_ATTACKER, HOLD_EFFECT_POWER_HERB, BattleScript_MoveEnd
call BattleScript_PowerHerbActivation
goto BattleScript_TwoTurnMovesSecondTurn

BattleScript_SetStringMeteorBeam:
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_METEOR_BEAM
goto BattleScript_TryCharging

BattleScript_SetStringElectroShock:
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_ELECTRO_SHOCK
goto BattleScript_TryCharging

BattleScript_FirstChargingTurnMeteorBeam::
attackcanceler
flushtextbox
Expand Down Expand Up @@ -5307,12 +5386,16 @@ BattleScript_EffectBellyDrum::
attackcanceler
attackstring
ppreduce
maxattackhalvehp BattleScript_ButItFailed
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_ATK, MAX_STAT_STAGE, BattleScript_ButItFailed
halvehp BattleScript_ButItFailed
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
attackanimation
waitanimation
healthbarupdate BS_ATTACKER
datahpupdate BS_ATTACKER
playstatchangeanimation BS_ATTACKER, BIT_ATK, STAT_CHANGE_BY_TWO
setstatchanger STAT_ATK, MAX_STAT_STAGE, FALSE
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_CHANGE_ALLOW_PTR, BattleScript_MoveEnd
printstring STRINGID_PKMNCUTHPMAXEDATTACK
waitmessage B_WAIT_TIME_LONG
goto BattleScript_MoveEnd
Expand Down Expand Up @@ -5908,7 +5991,7 @@ BattleScript_EffectRolePlay::
attackstring
ppreduce
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
trycopyability BattleScript_ButItFailed
trycopyability BS_ATTACKER, BattleScript_ButItFailed
attackanimation
waitanimation
.if B_ABILITY_POP_UP == TRUE
Expand Down Expand Up @@ -8819,6 +8902,16 @@ BattleScript_ZeroToHeroActivates::
waitmessage B_WAIT_TIME_LONG
end3

BattleScript_HospitalityActivates::
pause B_WAIT_TIME_SHORT
call BattleScript_AbilityPopUp
printstring STRINGID_HOSPITALITYRESTORATION
waitmessage B_WAIT_TIME_LONG
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
healthbarupdate BS_TARGET
datahpupdate BS_TARGET
end3

BattleScript_AttackWeakenedByStrongWinds::
pause B_WAIT_TIME_SHORT
printstring STRINGID_ATTACKWEAKENEDBSTRONGWINDS
Expand Down Expand Up @@ -9215,6 +9308,7 @@ BattleScript_BattlerAbilityStatRaiseOnSwitchIn::
waitanimation
printstring STRINGID_BATTLERABILITYRAISEDSTAT
waitmessage B_WAIT_TIME_LONG
copybyte gBattlerAttacker, sSAVED_BATTLER
end3

BattleScript_ScriptingAbilityStatRaise::
Expand Down
2 changes: 2 additions & 0 deletions data/script_cmd_table.inc
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ gScriptCmdTable::
.4byte ScrCmd_buffercontestname @ 0xe1
.4byte ScrCmd_bufferitemnameplural @ 0xe2
.4byte ScrCmd_callfunc @ 0xe3
.4byte ScrCmd_dynmultichoice @ 0xe4
.4byte ScrCmd_dynmultipush @ 0xe5

gScriptCmdTableEnd::
.4byte ScrCmd_nop
Loading

0 comments on commit 8b44e87

Please sign in to comment.