mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
Merge pull request #1314 from LOuroboros/battle_debug_constant
battle_config.h tweaks
This commit is contained in:
commit
b5b4efdaa0
@ -1,8 +1,6 @@
|
|||||||
#ifndef GUARD_BATTLE_DEBUG_H
|
#ifndef GUARD_BATTLE_DEBUG_H
|
||||||
#define GUARD_BATTLE_DEBUG_H
|
#define GUARD_BATTLE_DEBUG_H
|
||||||
|
|
||||||
#define USE_BATTLE_DEBUG TRUE
|
|
||||||
|
|
||||||
void CB2_BattleDebugMenu(void);
|
void CB2_BattleDebugMenu(void);
|
||||||
|
|
||||||
#endif // GUARD_BATTLE_DEBUG_H
|
#endif // GUARD_BATTLE_DEBUG_H
|
||||||
|
@ -167,7 +167,8 @@
|
|||||||
#define B_NEW_IMPACT_PALETTE TRUE // If set to TRUE, it updates the basic 'hit' palette.
|
#define B_NEW_IMPACT_PALETTE TRUE // If set to TRUE, it updates the basic 'hit' palette.
|
||||||
#define B_NEW_SURF_PARTICLE_PALETTE TRUE // If set to TRUE, it updates Surf's wave palette.
|
#define B_NEW_SURF_PARTICLE_PALETTE TRUE // If set to TRUE, it updates Surf's wave palette.
|
||||||
|
|
||||||
#define HIDE_HEALTHBOXES_DURING_ANIMS TRUE //if TRUE, hides healthboxes during move animations
|
#define HIDE_HEALTHBOXES_DURING_ANIMS TRUE // If set to TRUE, hides healthboxes during move animations
|
||||||
#define B_TERRAIN_BG_CHANGE TRUE // If TRUE, terrain moves permanently change the default battle background until the effect fades.
|
#define B_TERRAIN_BG_CHANGE TRUE // If set to TRUE, terrain moves permanently change the default battle background until the effect fades.
|
||||||
|
#define B_ENABLE_DEBUG TRUE // If set to TRUE, enables a debug menu to use in battles by pressing the Select button.
|
||||||
|
|
||||||
#endif // GUARD_CONSTANTS_BATTLE_CONFIG_H
|
#endif // GUARD_CONSTANTS_BATTLE_CONFIG_H
|
||||||
|
@ -331,7 +331,7 @@ static void HandleInputChooseAction(void)
|
|||||||
{
|
{
|
||||||
SwapHpBarsWithHpText();
|
SwapHpBarsWithHpText();
|
||||||
}
|
}
|
||||||
else if (USE_BATTLE_DEBUG && gMain.newKeys & SELECT_BUTTON)
|
else if (B_ENABLE_DEBUG && gMain.newKeys & SELECT_BUTTON)
|
||||||
{
|
{
|
||||||
BtlController_EmitTwoReturnValues(1, B_ACTION_DEBUG, 0);
|
BtlController_EmitTwoReturnValues(1, B_ACTION_DEBUG, 0);
|
||||||
PlayerBufferExecCompleted();
|
PlayerBufferExecCompleted();
|
||||||
|
@ -6254,7 +6254,7 @@ u32 GetBattlerHoldEffect(u8 battlerId, bool32 checkNegating)
|
|||||||
|
|
||||||
gPotentialItemEffectBattler = battlerId;
|
gPotentialItemEffectBattler = battlerId;
|
||||||
|
|
||||||
if (USE_BATTLE_DEBUG && gBattleStruct->debugHoldEffects[battlerId] != 0 && gBattleMons[battlerId].item)
|
if (B_ENABLE_DEBUG && gBattleStruct->debugHoldEffects[battlerId] != 0 && gBattleMons[battlerId].item)
|
||||||
return gBattleStruct->debugHoldEffects[battlerId];
|
return gBattleStruct->debugHoldEffects[battlerId];
|
||||||
else if (gBattleMons[battlerId].item == ITEM_ENIGMA_BERRY)
|
else if (gBattleMons[battlerId].item == ITEM_ENIGMA_BERRY)
|
||||||
return gEnigmaBerries[battlerId].holdEffect;
|
return gEnigmaBerries[battlerId].holdEffect;
|
||||||
@ -7738,7 +7738,7 @@ bool32 CanMegaEvolve(u8 battlerId)
|
|||||||
// Check if there is an entry in the evolution table for regular Mega Evolution.
|
// Check if there is an entry in the evolution table for regular Mega Evolution.
|
||||||
if (GetMegaEvolutionSpecies(species, itemId) != SPECIES_NONE)
|
if (GetMegaEvolutionSpecies(species, itemId) != SPECIES_NONE)
|
||||||
{
|
{
|
||||||
if (USE_BATTLE_DEBUG && gBattleStruct->debugHoldEffects[battlerId])
|
if (B_ENABLE_DEBUG && gBattleStruct->debugHoldEffects[battlerId])
|
||||||
holdEffect = gBattleStruct->debugHoldEffects[battlerId];
|
holdEffect = gBattleStruct->debugHoldEffects[battlerId];
|
||||||
else if (itemId == ITEM_ENIGMA_BERRY)
|
else if (itemId == ITEM_ENIGMA_BERRY)
|
||||||
holdEffect = gEnigmaBerries[battlerId].holdEffect;
|
holdEffect = gEnigmaBerries[battlerId].holdEffect;
|
||||||
|
Loading…
Reference in New Issue
Block a user