mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
ai lag fixes ready
This commit is contained in:
parent
bb9501449c
commit
25459073e5
@ -70,7 +70,6 @@ Debug_BoxFilledMessage_Text:
|
|||||||
.string "Storage boxes filled!$"
|
.string "Storage boxes filled!$"
|
||||||
|
|
||||||
Debug_Script_1::
|
Debug_Script_1::
|
||||||
multi_fixed_2_vs_2 TRAINER_WALLACE, NULL, TRAINER_JUAN_5, NULL, TRAINER_STEVEN, TRAINER_BACK_PIC_STEVEN
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Debug_Script_2::
|
Debug_Script_2::
|
||||||
|
@ -294,7 +294,7 @@ struct AiLogicData
|
|||||||
u8 moveLimitations[MAX_BATTLERS_COUNT];
|
u8 moveLimitations[MAX_BATTLERS_COUNT];
|
||||||
bool8 shouldSwitchMon; // Because all available moves have no/little effect. Each bit per battler.
|
bool8 shouldSwitchMon; // Because all available moves have no/little effect. Each bit per battler.
|
||||||
u8 monToSwitchId[MAX_BATTLERS_COUNT]; // ID of the mon to switch.
|
u8 monToSwitchId[MAX_BATTLERS_COUNT]; // ID of the mon to switch.
|
||||||
bool8 weatherHasEffect; // WEATHER_HAS_EFFECT, so it doesn't have to be used all the time
|
bool8 weatherHasEffect; // The same as WEATHER_HAS_EFFECT. Stored here, so it's called only once.
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AI_ThinkingStruct
|
struct AI_ThinkingStruct
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// Battle Debug Menu
|
// Battle Debug Menu
|
||||||
#define DEBUG_BATTLE_MENU TRUE // If set to TRUE, enables a debug menu to use in battles by pressing the Select button.
|
#define DEBUG_BATTLE_MENU TRUE // If set to TRUE, enables a debug menu to use in battles by pressing the Select button.
|
||||||
#define DEBUG_AI_DELAY_TIMER TRUE // If set to TRUE, displays the number of frames it takes for the AI to choose a move. Replaces the "What will PKMN do" text. Useful for devs or anyone who modifies the AI code and wants to see if it doesn't take too long to run.
|
#define DEBUG_AI_DELAY_TIMER FALSE // If set to TRUE, displays the number of frames it takes for the AI to choose a move. Replaces the "What will PKMN do" text. Useful for devs or anyone who modifies the AI code and wants to see if it doesn't take too long to run.
|
||||||
|
|
||||||
// Pokémon Debug
|
// Pokémon Debug
|
||||||
#define DEBUG_POKEMON_MENU TRUE // Enables a debug menu for pokemon sprites and icons, accessed by pressing SELECT in the summary screen.
|
#define DEBUG_POKEMON_MENU TRUE // Enables a debug menu for pokemon sprites and icons, accessed by pressing SELECT in the summary screen.
|
||||||
|
@ -4034,7 +4034,7 @@ static bool32 TryChangeBattleTerrain(u32 battler, u32 statusFlag, u8 *timer)
|
|||||||
static void ForewarnChooseMove(u32 battler)
|
static void ForewarnChooseMove(u32 battler)
|
||||||
{
|
{
|
||||||
struct Forewarn {
|
struct Forewarn {
|
||||||
u32 battler;
|
u8 battler;
|
||||||
u8 power;
|
u8 power;
|
||||||
u16 moveId;
|
u16 moveId;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user