github rh-hideout/pokeemerald-expansion expansion/1.18.0
Expansion 1.18.0

one hour ago
## How to update
- If you haven't set up a remote, run the command `git remote add RHH https://github.com/rh-hideout/pokeemerald-expansion`.
- Once you have your remote set up, run the command `git pull RHH expansion/1.18.0
`.

🌋 REFACTORS 🌋

📜 = Uses a migration script.

  • upcoming: Use plain indices for battle ordering by @Syreldar in #10684
  • Early moveend refactor by @PhallenTree in #10567
    • resultmessage, critmessage and multihitresultmessage have been removed and their functionality is now handled by moveend;
    • setadditionaleffects now only handles onChargingTurnOnly effects, while all other additional effects are handled in moveend;
    • AbilityBattleEffects called with case ABILITYEFFECT_MOVE_END_ATTACKER now passes the target as an argument instead of the attacker.
  • upcoming: Use MoveSlot enum for move slot indices by @Syreldar in #10705
  • Refactor Ally Switch, Baton Pass, Teleport by @AlexOn1ine in #10715
  • upcoming: Add PartyMon enum for party slot type safety by @Syreldar in #10670
  • Rework and Bugfix Truant to match the official games functionality by @Syreldar in #10719
  • minor trainer see refactor by @FosterProgramming in #10827
    • Object events approaching play now always follow local id order without some type of script sometimes taking priority
    • a double battles trainer (as defined by its trainer struct not the isDouble script value) won't join a single battle fight and will wait for its turn instead (doubles trainer could join single battle if the single trainer was the first "spotter" based on local id, now a single trainer and a double trainer will not team up no matter who spots first)
  • Status move effects refactor by @AlexOn1ine in #10637
  • Adds FaintedEffectsBlock by @PhallenTree in #10877
  • Minor sSetTargetMoveFailureChecks refactor by @AlexOn1ine in #10902
  • Rename enum PartyMon to enum PartySlot and enum PartyBattleSlot to enum PartyBattleOrder by @grintoul1 in #10945
  • Preprocing variables between Emerald and FRLG by @agsmgmaster64 in #10875
    • If you're using FRLG, all referenced variables have been reordered/renamed and are now entirely within include/constants/vars_frlg.h. Any added/replaced variables when compiling FRLG must be added within include/constants/vars_frlg.h.
  • Refactor mon generation in battle facilities by @FosterProgramming in #10913
  • Safari rework by @FosterProgramming in #10446
    • The internals of the Safari Zone have been changed to make it easier to create custom safaris, you can read more about it in docs/safari_zones.md. The script that enter and exit safari have been changed and may need to be updated if you sued custom ones.
    • The gen config for park ball and safari ball catch multiplier were removed.
    • Three new OW config were added for safari, the option to keep safari data in the save file and allow saving in safari, the option to remove pokefeeder data from the game (TRUE by default in FRLG) and the option to disable critical capture in the safari zones
    • Pokeblock behavior has been restored to vanilla, gen3 safari catching guides should work in expansion
  • Replace direct gBattleTypeFlags checks with flag check functions by @grintoul1 in #10914
  • Misc clean-up of changes from 12v12 by @grintoul1 in #10856
  • partner cleanup by @FosterProgramming in #10854

🧬 General 🧬

Added

  • Ribbons adjustment for debugging by @FosterProgramming in #10794
    • adds a debug menu action (Party-> Edit Pokemon -> Give All Ribbons) that let you give all ribbons to a pokemon in your party
    • adds the system ribbons flag to the list of togglabale flags in the debug menu
    • pokenav can now show the ribbons menu even if match call is locked
  • Adds between and notbetween call and goto script VAR comparisons by @grintoul1 in #10701
  • Adds Battle Info by @AlexOn1ine in #10479
  • Mining minigame by @outside08 in #6692
  • auto migration script by @FosterProgramming in #10842
    • You can now run ./experimental_make, it runs make at max threads but also pull expansion update before compiling
    • Go check include/config/auto_update.h to configure how often and on what branches you want the update to happen
    • In addition to pulling expansion updates, the script will automatically apply migration scripts if there are any

Changed

Fixed

🗺️ Overworld 🗺️

Added

  • Adds Bring X Pick Y functionality by @pkmnsnfrn in #10370
    • If users don't plan on using this feature at all and have existing changes to src/pokemon_summary_screen.c they don't want to resolve, they can refuse all merge conflicts in src_pokemon_summary.c and mark the following functions as UNUSED.
      • BXPY_SummaryScreen_TransformSpeciesId
      • BXPY_SummaryScreen_HideSpecies
      • BXPY_SummaryScreen_ShowBaseSpecies
      • BXPY_SummaryScreen_ShouldHideEnemyGender
      • BXPY_ShouldHideEnemyAbility
      • BXPY_ShouldHideEnemyNature
      • BXPY_SummaryScreen_ShouldShowFullItem
      • BXPY_ReturnItemText
      • BXPY_ShouldHideEnemyIndividualValues
      • BXPY_ShouldHideEnemyEffortValues
      • BXPY_SummaryScreen_ShouldHideStats
      • BXPY_TransformTypeIfHidden
  • Start on party when selecting mon for chooseboxmon by @FosterProgramming in #10832
  • Add new trainer type - single trainer by @AlexOn1ine in #10833
  • Adds new debug command to fill party with mons that knows field moves by @FosterProgramming in #10450
    • In the debug menu: Party -> Set Field Moves Party
  • Rock Smash item drops by @luuma in #10716
  • Safari rework by @FosterProgramming in #10446
    • The internals of the Safari Zone have been changed to make it easier to create custom safaris, you can read more about it in docs/safari_zones.md. The script that enter and exit safari have been changed and may need to be updated if you sued custom ones.
    • The gen config for park ball and safari ball catch multiplier were removed.
    • Three new OW config were added for safari, the option to keep safari data in the save file and allow saving in safari, the option to remove pokefeeder data from the game (TRUE by default in FRLG) and the option to disable critical capture in the safari zones
    • Pokeblock behavior has been restored to vanilla, gen3 safari catching guides should work in expansion
  • Multibattle support for any player party size limit by @grintoul1 in #10712
    • choosepartyforbattle accepts a number from 1-5, defaulting to 3
    • choosepartyforbattlefrontier accepts a number from 1-5, with no default
    • "Full team" multis with no selection of mons or order simply do not use choosepartyforbattle or choosepartyforbattlefrontier , as this causes ReducePlayerPartyToSelectedMons to return early.
  • Increase FONT_SMALL_NARROW glyph height to 13 by @montmoguri in #11067
  • Create Follower option in debug menu now let you choose partner id by @FosterProgramming in #11072

Changed

  • Random generation cleanup by @FosterProgramming in #10304
  • minor trainer see refactor by @FosterProgramming in #10827
    • Object events approaching play now always follow local id order without some type of script sometimes taking priority
    • a double battles trainer (as defined by its trainer struct not the isDouble script value) won't join a single battle fight and will wait for its turn instead (doubles trainer could join single battle if the single trainer was the first "spotter" based on local id, now a single trainer and a double trainer will not team up no matter who spots first)
  • Add support for on-the-fly decompression of object events and mon icons by @TixoRebel in #10783
    • Decrease VRAM usage of compressed followers
    • Compress pokemon icons
  • Remove redundant Mythical check in BXPY implementation by @AsparagusEduardo in #10789
  • Disables ground effects for TRACKS_NONE by @luuma in #10880
    • TRACKS_NONE_WITH_GROUND_EFFECTS can be added to species to enable a subset of ground effects
  • party menu: handle gText_XsYWereSwapped for long combinations of mon + item names by @montmoguri in #11012

Fixed

🐉 Pokémon 🐉

Changed

  • Add test that Species' overworld sprites have correct number of frames for animTable by @rayrobdod in #10891
  • Add isDynamaxBanned species flag by @AsparagusEduardo in #10860
  • party menu: handle gText_XsYWereSwapped for long combinations of mon + item names by @montmoguri in #11012

Fixed

  • Fix asymmetrical follower turning when used as object events by @Kasenn in #10764
  • Fix old compiler maybe-uninitialized in daycare.c by @hedara90 in #10938

⚔️ Battle General ⚔️

Added

  • Adds Bring X Pick Y functionality by @pkmnsnfrn in #10370
    • If users don't plan on using this feature at all and have existing changes to src/pokemon_summary_screen.c they don't want to resolve, they can refuse all merge conflicts in src_pokemon_summary.c and mark the following functions as UNUSED.
      • BXPY_SummaryScreen_TransformSpeciesId
      • BXPY_SummaryScreen_HideSpecies
      • BXPY_SummaryScreen_ShowBaseSpecies
      • BXPY_SummaryScreen_ShouldHideEnemyGender
      • BXPY_ShouldHideEnemyAbility
      • BXPY_ShouldHideEnemyNature
      • BXPY_SummaryScreen_ShouldShowFullItem
      • BXPY_ReturnItemText
      • BXPY_ShouldHideEnemyIndividualValues
      • BXPY_ShouldHideEnemyEffortValues
      • BXPY_SummaryScreen_ShouldHideStats
      • BXPY_TransformTypeIfHidden
  • Battle Messages from Pokémon Champions v1.2.0 by @LinathanZel in #10778
  • Add Champions battle mechanics changes (v1.2.0) by @LinathanZel in #10730
  • Instant Lose option in Battle Debug by @pkmnsnfrn in #10918
  • Add weather indicator when choosing actions by @hedara90 in #10911
  • Safari rework by @FosterProgramming in #10446
    • The internals of the Safari Zone have been changed to make it easier to create custom safaris, you can read more about it in docs/safari_zones.md. The script that enter and exit safari have been changed and may need to be updated if you sued custom ones.
    • The gen config for park ball and safari ball catch multiplier were removed.
    • Three new OW config were added for safari, the option to keep safari data in the save file and allow saving in safari, the option to remove pokefeeder data from the game (TRUE by default in FRLG) and the option to disable critical capture in the safari zones
    • Pokeblock behavior has been restored to vanilla, gen3 safari catching guides should work in expansion
  • Battle Info Menu: Cosmetic Improvements + Add RSE Skin by @LinathanZel in #11043

Changed

  • upcoming: Use plain indices for battle ordering by @Syreldar in #10684
  • Early moveend refactor by @PhallenTree in #10567
    • resultmessage, critmessage and multihitresultmessage have been removed and their functionality is now handled by moveend;
    • setadditionaleffects now only handles onChargingTurnOnly effects, while all other additional effects are handled in moveend;
    • AbilityBattleEffects called with case ABILITYEFFECT_MOVE_END_ATTACKER now passes the target as an argument instead of the attacker.
  • upcoming: Use MoveSlot enum for move slot indices by @Syreldar in #10705
  • Refactor Ally Switch, Baton Pass, Teleport by @AlexOn1ine in #10715
  • upcoming: Add PartyMon enum for party slot type safety by @Syreldar in #10670
  • upcoming: Old generation Disable by @Syreldar in #10724
  • Combine UpdateLastMoves and MirrorMove states by @AlexOn1ine in #10740
  • CanBattlerSwitch adjustments by @AlexOn1ine in #10755
  • Faster Item Popups + Bug Fixes by @LinathanZel in #10759
  • Combine two turn move checks for ai and move resolustion by @AlexOn1ine in #10803
  • Clean up after Truant PR by @AlexOn1ine in #10813
  • New Mega Sol interactions (Champions v1.2.0) by @LinathanZel in #10838
  • Clearer trainer slide constants and comments by @grintoul1 in #10840
  • Status move effects refactor by @AlexOn1ine in #10637
  • Allow onSide to be used by any additional effect by @PhallenTree in #10754
    • onSide can now properly be used with any additional effect to allow for additional effects to apply to all battlers on one side. Passing the effect chance check once allows for all battlers on that side to have the effect applied, as that is how G-Max Replenish works.
  • Adds FaintedEffectsBlock by @PhallenTree in #10877
  • Move result flag clean up by @AlexOn1ine in #10889
  • Minor sSetTargetMoveFailureChecks refactor by @AlexOn1ine in #10902
  • Status move effects cleanup by @PhallenTree in #10900
  • Combine Overwrite Ability, Role Play and Entrainment into 1 effect by @PhallenTree in #10903
    • Role Play, Doodle, Entrainment, Simple Beam and Worry Seed now use the same MOVE_EFFECT to apply their effect.
  • Fix Softboil and transfrom adjustments by @AlexOn1ine in #10904
  • Switch order and rename of debug Win/Lose Battle by @grintoul1 in #10925
  • Adds B_HP_RESTORATION_ROUNDING config by @AlexOn1ine in #10919
  • Rename enum PartyMon to enum PartySlot and enum PartyBattleSlot to enum PartyBattleOrder by @grintoul1 in #10945
  • Include stat increases into MoveEndAdditionalEffectsLowerStatsAttacker by @AlexOn1ine in #10962
  • Additions for IsDamageMoveSelfStatChange by @AlexOn1ine in #10966
  • Move onChargeTurnOnly additional effects handling to CancelerCharging by @PhallenTree in #10937
  • Add BattleCalcValues struct to HandleEndTurn functions by @AlexOn1ine in #10970
  • Replace direct gBattleTypeFlags checks with flag check functions by @grintoul1 in #10914
  • Misc clean-up of changes from 12v12 by @grintoul1 in #10856
  • Reset battler back to Attacker on Poison Touch, Stench and Toxic Chain activations by @PhallenTree in #10995
  • Add config for disabling new battle status menu by @hedara90 in #10990
  • Replace PARTY_SLOT_NONE with PARTY_SIZE in loop bound checks by @AlexOn1ine in #11005
  • unify all gimmick item checks into a single function by @pkmnsnfrn in #11011
  • Clean up is party mon alive checks by @AlexOn1ine in #11063
  • Visual revamps of several Expansion battle UI elements by @purrfectdoodle in #10930
  • partner cleanup by @FosterProgramming in #10854
  • Adds Neutralizing Gas + Intimidate + Eject Pack test by @PhallenTree in #11083
  • Poison Touch and Toxic Chain tests for non-volatile status additional effects by @PhallenTree in #11115

Fixed

🤹 Moves 🤹

Changed

🧶 Items 🧶

Changed

  • party menu: handle gText_XsYWereSwapped for long combinations of mon + item names by @montmoguri in #11012

Fixed

🤖 Battle AI 🤖

Added

  • Crit AI improvement by @luuma in #10544
  • Coordinate reliable single-target KOs between doubles AI allies by @moostoet in #10751
    • Added configurable doubles AI target coordination to reduce redundant single-target attacks when an ally has already chosen a reliable KO.
  • Add Dynamic Mon Selection AI Function by @Pawkkie in #10853
  • AI flag for deeper partner move prediction for earlier battler by @grintoul1 in #10041
  • Adds Spite AI for singles and doubles with tests by @grintoul1 in #11081

Changed

Fixed

🧹 Other Cleanup 🧹

🧪 Test Runner 🧪

Changed

Fixed

📚 Documentation 📚

New Contributors

Full Changelog: expansion/1.17.2...expansion/1.18.0

Don't miss a new pokeemerald-expansion release

NewReleases is sending notifications on new releases.