Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
//CREDITS
|
|
|
|
//TheXaman: https://github.com/TheXaman/pokeemerald/tree/tx_debug_system
|
|
|
|
//CODE USED FROM:
|
|
|
|
//ketsuban: https://github.com/pret/pokeemerald/wiki/Add-a-debug-menu
|
|
|
|
//Pyredrid: https://github.com/Pyredrid/pokeemerald/tree/debugmenu
|
|
|
|
//AsparagusEduardo: https://github.com/AsparagusEduardo/pokeemerald/tree/InfusedEmerald_v2
|
|
|
|
//Ghoulslash: https://github.com/ghoulslash/pokeemerald
|
2021-06-20 16:57:34 +02:00
|
|
|
//Jaizu: https://jaizu.moe/
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "global.h"
|
2021-05-07 11:44:03 +02:00
|
|
|
#include "battle.h"
|
|
|
|
#include "coins.h"
|
2020-11-16 10:32:17 +01:00
|
|
|
#include "credits.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "data.h"
|
2021-05-07 11:44:03 +02:00
|
|
|
#include "daycare.h"
|
2022-08-29 19:46:03 +02:00
|
|
|
#include "debug.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "event_data.h"
|
|
|
|
#include "event_object_movement.h"
|
|
|
|
#include "event_scripts.h"
|
|
|
|
#include "field_message_box.h"
|
|
|
|
#include "field_screen_effect.h"
|
2022-09-14 14:51:03 +02:00
|
|
|
#include "field_weather.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "international_string_util.h"
|
|
|
|
#include "item.h"
|
|
|
|
#include "item_icon.h"
|
|
|
|
#include "list_menu.h"
|
2021-06-22 18:29:04 +02:00
|
|
|
#include "m4a.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "main.h"
|
2020-11-16 10:32:17 +01:00
|
|
|
#include "main_menu.h"
|
2020-11-27 21:12:35 +01:00
|
|
|
#include "malloc.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "map_name_popup.h"
|
|
|
|
#include "menu.h"
|
2021-05-07 11:44:03 +02:00
|
|
|
#include "money.h"
|
2020-11-16 10:32:17 +01:00
|
|
|
#include "naming_screen.h"
|
|
|
|
#include "new_game.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "overworld.h"
|
2022-03-18 13:30:08 -04:00
|
|
|
#include "palette.h"
|
2022-09-03 21:27:29 -04:00
|
|
|
#include "party_menu.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "pokedex.h"
|
|
|
|
#include "pokemon.h"
|
|
|
|
#include "pokemon_icon.h"
|
|
|
|
#include "pokemon_storage_system.h"
|
|
|
|
#include "random.h"
|
|
|
|
#include "region_map.h"
|
|
|
|
#include "script.h"
|
|
|
|
#include "script_pokemon_util.h"
|
|
|
|
#include "sound.h"
|
|
|
|
#include "strings.h"
|
|
|
|
#include "string_util.h"
|
|
|
|
#include "task.h"
|
|
|
|
#include "pokemon_summary_screen.h"
|
|
|
|
#include "constants/abilities.h"
|
2022-08-29 14:48:40 +02:00
|
|
|
#include "constants/battle_frontier.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "constants/flags.h"
|
|
|
|
#include "constants/items.h"
|
|
|
|
#include "constants/map_groups.h"
|
2022-03-18 13:30:08 -04:00
|
|
|
#include "constants/rgb.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#include "constants/songs.h"
|
|
|
|
#include "constants/species.h"
|
2022-09-14 14:51:03 +02:00
|
|
|
#include "constants/weather.h"
|
2023-05-20 15:27:55 -03:00
|
|
|
#include "save.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2022-11-14 10:56:40 -03:00
|
|
|
#if DEBUG_OVERWORLD_MENU == TRUE
|
2020-11-27 21:12:35 +01:00
|
|
|
// *******************************
|
|
|
|
// Enums
|
|
|
|
enum { // Main
|
|
|
|
DEBUG_MENU_ITEM_UTILITIES,
|
2021-06-20 15:48:44 +02:00
|
|
|
DEBUG_MENU_ITEM_SCRIPTS,
|
2020-11-27 21:12:35 +01:00
|
|
|
DEBUG_MENU_ITEM_FLAGS,
|
|
|
|
DEBUG_MENU_ITEM_VARS,
|
|
|
|
DEBUG_MENU_ITEM_GIVE,
|
2021-06-22 12:38:00 +02:00
|
|
|
DEBUG_MENU_ITEM_SOUND,
|
2022-03-18 13:30:08 -04:00
|
|
|
DEBUG_MENU_ITEM_ACCESS_PC,
|
2020-11-27 21:12:35 +01:00
|
|
|
DEBUG_MENU_ITEM_CANCEL
|
|
|
|
};
|
|
|
|
enum { // Util
|
|
|
|
DEBUG_UTIL_MENU_ITEM_HEAL_PARTY,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_FLY,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_WARP,
|
2021-05-07 11:44:03 +02:00
|
|
|
DEBUG_UTIL_MENU_ITEM_RUNNING_SHOES,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_POISON_MONS,
|
2020-11-27 21:12:35 +01:00
|
|
|
DEBUG_UTIL_MENU_ITEM_SAVEBLOCK,
|
2022-09-14 14:51:03 +02:00
|
|
|
DEBUG_UTIL_MENU_ITEM_WEATHER,
|
2020-11-27 21:12:35 +01:00
|
|
|
DEBUG_UTIL_MENU_ITEM_CHECKWALLCLOCK,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SETWALLCLOCK,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_WATCHCREDITS,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_TRAINER_NAME,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_TRAINER_GENDER,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_TRAINER_ID,
|
2023-03-08 15:56:16 -03:00
|
|
|
DEBUG_UTIL_MENU_ITEM_CLEAR_BOXES,
|
2020-11-27 21:12:35 +01:00
|
|
|
};
|
2021-06-22 12:38:00 +02:00
|
|
|
enum { // Scripts
|
2021-06-20 15:48:44 +02:00
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_1,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_2,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_3,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_4,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_5,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_6,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_7,
|
|
|
|
DEBUG_UTIL_MENU_ITEM_SCRIPT_8,
|
|
|
|
};
|
2020-11-27 21:12:35 +01:00
|
|
|
enum { // Flags
|
|
|
|
DEBUG_FLAG_MENU_ITEM_FLAGS,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_POKEDEXFLAGS,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_POKEDEXONOFF,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_NATDEXONOFF,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_POKENAVONOFF,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_FLYANYWHERE,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_GETALLBADGES,
|
2022-08-29 14:48:40 +02:00
|
|
|
DEBUG_FLAG_MENU_ITEM_FRONTIER_PASS,
|
2020-11-27 21:12:35 +01:00
|
|
|
DEBUG_FLAG_MENU_ITEM_COLISSION_ONOFF,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_ENCOUNTER_ONOFF,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_TRAINER_SEE_ONOFF,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_BAG_USE_ONOFF,
|
|
|
|
DEBUG_FLAG_MENU_ITEM_CATCHING_ONOFF,
|
|
|
|
};
|
|
|
|
enum { // Vars
|
|
|
|
DEBUG_VARS_MENU_ITEM_VARS,
|
|
|
|
};
|
|
|
|
enum { // Give
|
2021-05-07 11:52:51 +02:00
|
|
|
DEBUG_GIVE_MENU_ITEM_ITEM_X,
|
|
|
|
DEBUG_GIVE_MENU_ITEM_ALLTMS,
|
2020-11-27 21:12:35 +01:00
|
|
|
DEBUG_GIVE_MENU_ITEM_POKEMON_SIMPLE,
|
|
|
|
DEBUG_GIVE_MENU_ITEM_POKEMON_COMPLEX,
|
2021-05-07 11:44:03 +02:00
|
|
|
DEBUG_GIVE_MENU_ITEM_MAX_MONEY,
|
|
|
|
DEBUG_GIVE_MENU_ITEM_MAX_COINS,
|
2022-08-29 14:48:40 +02:00
|
|
|
DEBUG_GIVE_MENU_ITEM_MAX_BATTLE_POINTS,
|
2021-05-07 11:44:03 +02:00
|
|
|
DEBUG_GIVE_MENU_ITEM_DAYCARE_EGG,
|
|
|
|
DEBUG_GIVE_MENU_ITEM_FILL_PC,
|
2020-11-27 21:12:35 +01:00
|
|
|
DEBUG_GIVE_MENU_ITEM_CHEAT,
|
|
|
|
};
|
2021-06-22 12:38:00 +02:00
|
|
|
enum { //Sound
|
|
|
|
DEBUG_SOUND_MENU_ITEM_SE,
|
|
|
|
DEBUG_SOUND_MENU_ITEM_MUS,
|
|
|
|
};
|
2020-11-27 21:12:35 +01:00
|
|
|
|
|
|
|
// *******************************
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// Constants
|
2022-08-29 14:48:40 +02:00
|
|
|
#define DEBUG_MAIN_MENU_WIDTH 15
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
#define DEBUG_MAIN_MENU_HEIGHT 8
|
|
|
|
|
|
|
|
#define DEBUG_NUMBER_DISPLAY_WIDTH 10
|
|
|
|
#define DEBUG_NUMBER_DISPLAY_HEIGHT 4
|
2022-09-14 14:51:03 +02:00
|
|
|
#define DEBUG_NUMBER_DISPLAY_MEDIUM_WIDTH 15
|
|
|
|
#define DEBUG_NUMBER_DISPLAY_MEDIUM_HEIGHT 3
|
2021-06-22 15:57:02 +02:00
|
|
|
#define DEBUG_NUMBER_DISPLAY_SOUND_WIDTH 20
|
|
|
|
#define DEBUG_NUMBER_DISPLAY_SOUND_HEIGHT 6
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
#define DEBUG_NUMBER_DIGITS_FLAGS 4
|
|
|
|
#define DEBUG_NUMBER_DIGITS_VARIABLES 5
|
|
|
|
#define DEBUG_NUMBER_DIGITS_VARIABLE_VALUE 5
|
|
|
|
#define DEBUG_NUMBER_DIGITS_ITEMS 4
|
2023-03-07 12:20:36 +01:00
|
|
|
#define DEBUG_NUMBER_DIGITS_ITEM_QUANTITY 3
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
#define DEBUG_NUMBER_ICON_X 210
|
|
|
|
#define DEBUG_NUMBER_ICON_Y 50
|
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
// EWRAM
|
|
|
|
static EWRAM_DATA struct DebugMonData *sDebugMonData = NULL;
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
struct DebugMonData
|
|
|
|
{
|
|
|
|
u16 mon_speciesId;
|
|
|
|
u8 mon_level;
|
|
|
|
u8 isShiny;
|
|
|
|
u16 mon_natureId;
|
|
|
|
u16 mon_abilityNum;
|
|
|
|
u8 mon_iv_hp;
|
|
|
|
u8 mon_iv_atk;
|
|
|
|
u8 mon_iv_def;
|
|
|
|
u8 mon_iv_speed;
|
|
|
|
u8 mon_iv_satk;
|
|
|
|
u8 mon_iv_sdef;
|
|
|
|
u16 mon_move_0;
|
|
|
|
u16 mon_move_1;
|
|
|
|
u16 mon_move_2;
|
|
|
|
u16 mon_move_3;
|
|
|
|
};
|
|
|
|
|
|
|
|
// *******************************
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// Define functions
|
|
|
|
static void Debug_ShowMenu(void (*HandleInput)(u8), struct ListMenuTemplate LMtemplate);
|
|
|
|
void Debug_ShowMainMenu(void);
|
2022-09-14 13:39:35 +02:00
|
|
|
static void Debug_DestroyMenu(u8 taskId);
|
|
|
|
static void Debug_DestroyMenu_Full(u8 taskId);
|
|
|
|
static void DebugAction_Cancel(u8 taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_DestroyExtraWindow(u8 taskId);
|
|
|
|
|
2022-09-14 13:39:35 +02:00
|
|
|
static void DebugAction_Util_Script_1(u8 taskId);
|
|
|
|
static void DebugAction_Util_Script_2(u8 taskId);
|
|
|
|
static void DebugAction_Util_Script_3(u8 taskId);
|
|
|
|
static void DebugAction_Util_Script_4(u8 taskId);
|
|
|
|
static void DebugAction_Util_Script_5(u8 taskId);
|
|
|
|
static void DebugAction_Util_Script_6(u8 taskId);
|
|
|
|
static void DebugAction_Util_Script_7(u8 taskId);
|
|
|
|
static void DebugAction_Util_Script_8(u8 taskId);
|
2021-06-20 15:48:44 +02:00
|
|
|
|
2022-09-14 13:39:35 +02:00
|
|
|
static void DebugAction_OpenUtilitiesMenu(u8 taskId);
|
|
|
|
static void DebugAction_OpenScriptsMenu(u8 taskId);
|
|
|
|
static void DebugAction_OpenFlagsMenu(u8 taskId);
|
|
|
|
static void DebugAction_OpenVariablesMenu(u8 taskId);
|
|
|
|
static void DebugAction_OpenGiveMenu(u8 taskId);
|
|
|
|
static void DebugAction_OpenSoundMenu(u8 taskId);
|
|
|
|
static void DebugTask_HandleMenuInput_Main(u8 taskId);
|
|
|
|
static void DebugTask_HandleMenuInput_Utilities(u8 taskId);
|
|
|
|
static void DebugTask_HandleMenuInput_Scripts(u8 taskId);
|
|
|
|
static void DebugTask_HandleMenuInput_Flags(u8 taskId);
|
|
|
|
static void DebugTask_HandleMenuInput_Vars(u8 taskId);
|
|
|
|
static void DebugTask_HandleMenuInput_Give(u8 taskId);
|
|
|
|
static void DebugTask_HandleMenuInput_Sound(u8 taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
static void DebugAction_Util_HealParty(u8 taskId);
|
|
|
|
static void DebugAction_Util_Fly(u8 taskId);
|
|
|
|
static void DebugAction_Util_Warp_Warp(u8 taskId);
|
|
|
|
static void DebugAction_Util_Warp_SelectMapGroup(u8 taskId);
|
|
|
|
static void DebugAction_Util_Warp_SelectMap(u8 taskId);
|
|
|
|
static void DebugAction_Util_Warp_SelectWarp(u8 taskId);
|
2021-05-07 11:44:03 +02:00
|
|
|
static void DebugAction_Util_RunningShoes(u8 taskId);
|
|
|
|
static void DebugAction_Util_PoisonMons(u8 taskId);
|
2022-09-14 13:39:35 +02:00
|
|
|
static void DebugAction_Util_CheckSaveBlock(u8 taskId);
|
2022-09-14 14:51:03 +02:00
|
|
|
static void DebugAction_Util_Weather(u8 taskId);
|
|
|
|
static void DebugAction_Util_Weather_SelectId(u8 taskId);
|
2022-09-14 13:39:35 +02:00
|
|
|
static void DebugAction_Util_CheckWallClock(u8 taskId);
|
|
|
|
static void DebugAction_Util_SetWallClock(u8 taskId);
|
|
|
|
static void DebugAction_Util_WatchCredits(u8 taskId);
|
|
|
|
static void DebugAction_Util_Trainer_Name(u8 taskId);
|
|
|
|
static void DebugAction_Util_Trainer_Gender(u8 taskId);
|
|
|
|
static void DebugAction_Util_Trainer_Id(u8 taskId);
|
2023-03-08 15:56:16 -03:00
|
|
|
static void DebugAction_Util_Clear_Boxes(u8 taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
static void DebugAction_Flags_Flags(u8 taskId);
|
|
|
|
static void DebugAction_Flags_FlagsSelect(u8 taskId);
|
|
|
|
|
2022-08-29 14:48:40 +02:00
|
|
|
static void DebugAction_Flags_SetPokedexFlags(u8 taskId);
|
|
|
|
static void DebugAction_Flags_SwitchDex(u8 taskId);
|
|
|
|
static void DebugAction_Flags_SwitchNatDex(u8 taskId);
|
|
|
|
static void DebugAction_Flags_SwitchPokeNav(u8 taskId);
|
|
|
|
static void DebugAction_Flags_ToggleFlyFlags(u8 taskId);
|
|
|
|
static void DebugAction_Flags_ToggleBadgeFlags(u8 taskId);
|
|
|
|
static void DebugAction_Flags_ToggleFrontierPass(u8 taskId);
|
|
|
|
static void DebugAction_Flags_CollisionOnOff(u8 taskId);
|
|
|
|
static void DebugAction_Flags_EncounterOnOff(u8 taskId);
|
|
|
|
static void DebugAction_Flags_TrainerSeeOnOff(u8 taskId);
|
|
|
|
static void DebugAction_Flags_BagUseOnOff(u8 taskId);
|
|
|
|
static void DebugAction_Flags_CatchingOnOff(u8 taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
static void DebugAction_Vars_Vars(u8 taskId);
|
|
|
|
static void DebugAction_Vars_Select(u8 taskId);
|
|
|
|
static void DebugAction_Vars_SetValue(u8 taskId);
|
|
|
|
|
|
|
|
static void DebugAction_Give_Item(u8 taskId);
|
|
|
|
static void DebugAction_Give_Item_SelectId(u8 taskId);
|
|
|
|
static void DebugAction_Give_Item_SelectQuantity(u8 taskId);
|
2020-11-16 10:32:17 +01:00
|
|
|
static void DebugAction_Give_AllTMs(u8 taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_Give_PokemonSimple(u8 taskId);
|
|
|
|
static void DebugAction_Give_PokemonComplex(u8 taskId);
|
|
|
|
static void DebugAction_Give_Pokemon_SelectId(u8 taskId);
|
|
|
|
static void DebugAction_Give_Pokemon_SelectLevel(u8 taskId);
|
|
|
|
static void DebugAction_Give_Pokemon_SelectShiny(u8 taskId);
|
|
|
|
static void DebugAction_Give_Pokemon_SelectNature(u8 taskId);
|
|
|
|
static void DebugAction_Give_Pokemon_SelectAbility(u8 taskId);
|
|
|
|
static void DebugAction_Give_Pokemon_SelectIVs(u8 taskId);
|
|
|
|
static void DebugAction_Give_Pokemon_ComplexCreateMon(u8 taskId);
|
2020-11-16 10:32:17 +01:00
|
|
|
static void DebugAction_Give_Pokemon_Move(u8 taskId);
|
2021-05-07 11:44:03 +02:00
|
|
|
static void DebugAction_Give_MaxMoney(u8 taskId);
|
|
|
|
static void DebugAction_Give_MaxCoins(u8 taskId);
|
2022-08-29 14:48:40 +02:00
|
|
|
static void DebugAction_Give_MaxBattlePoints(u8 taskId);
|
2021-05-07 11:44:03 +02:00
|
|
|
static void DebugAction_Give_DayCareEgg(u8 taskId);
|
|
|
|
static void DebugAction_Give_FillPC(u8 taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_Give_CHEAT(u8 taskId);
|
|
|
|
static void DebugAction_AccessPC(u8 taskId);
|
|
|
|
|
2021-06-22 12:38:00 +02:00
|
|
|
static void DebugAction_Sound_SE(u8 taskId);
|
|
|
|
static void DebugAction_Sound_SE_SelectId(u8 taskId);
|
|
|
|
static void DebugAction_Sound_MUS(u8 taskId);
|
|
|
|
static void DebugAction_Sound_MUS_SelectId(u8 taskId);
|
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugTask_HandleMenuInput(u8 taskId, void (*HandleInput)(u8));
|
|
|
|
static void DebugAction_OpenSubMenu(u8 taskId, struct ListMenuTemplate LMtemplate);
|
|
|
|
|
2023-03-08 01:51:51 -03:00
|
|
|
extern u8 Debug_FlagsNotSetOverworldConfigMessage[];
|
|
|
|
extern u8 Debug_FlagsNotSetBattleConfigMessage[];
|
2021-06-20 15:48:44 +02:00
|
|
|
extern u8 Debug_Script_1[];
|
|
|
|
extern u8 Debug_Script_2[];
|
|
|
|
extern u8 Debug_Script_3[];
|
|
|
|
extern u8 Debug_Script_4[];
|
|
|
|
extern u8 Debug_Script_5[];
|
|
|
|
extern u8 Debug_Script_6[];
|
|
|
|
extern u8 Debug_Script_7[];
|
|
|
|
extern u8 Debug_Script_8[];
|
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
extern u8 Debug_ShowFieldMessageStringVar4[];
|
|
|
|
extern u8 Debug_CheatStart[];
|
|
|
|
extern u8 PlayersHouse_2F_EventScript_SetWallClock[];
|
|
|
|
extern u8 PlayersHouse_2F_EventScript_CheckWallClock[];
|
2023-05-20 15:27:55 -03:00
|
|
|
extern u8 Debug_CheckSaveBlock[];
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2022-09-09 23:34:05 -04:00
|
|
|
#include "data/map_group_count.h"
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
// Text
|
|
|
|
// Main Menu
|
2022-09-20 02:31:20 -03:00
|
|
|
static const u8 sDebugText_Utilities[] = _("Utilities");
|
|
|
|
static const u8 sDebugText_Scripts[] = _("Scripts");
|
|
|
|
static const u8 sDebugText_Flags[] = _("Flags");
|
|
|
|
static const u8 sDebugText_Vars[] = _("Variables");
|
|
|
|
static const u8 sDebugText_Give[] = _("Give X");
|
|
|
|
static const u8 sDebugText_Sound[] = _("Sound");
|
|
|
|
static const u8 sDebugText_Cancel[] = _("Cancel");
|
2021-06-20 15:48:44 +02:00
|
|
|
// Script menu
|
2022-09-20 02:31:20 -03:00
|
|
|
static const u8 sDebugText_Util_Script_1[] = _("Script 1");
|
|
|
|
static const u8 sDebugText_Util_Script_2[] = _("Script 2");
|
|
|
|
static const u8 sDebugText_Util_Script_3[] = _("Script 3");
|
|
|
|
static const u8 sDebugText_Util_Script_4[] = _("Script 4");
|
|
|
|
static const u8 sDebugText_Util_Script_5[] = _("Script 5");
|
|
|
|
static const u8 sDebugText_Util_Script_6[] = _("Script 6");
|
|
|
|
static const u8 sDebugText_Util_Script_7[] = _("Script 7");
|
|
|
|
static const u8 sDebugText_Util_Script_8[] = _("Script 8");
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// Util Menu
|
2022-09-20 02:31:20 -03:00
|
|
|
static const u8 sDebugText_Util_HealParty[] = _("Heal Party");
|
|
|
|
static const u8 sDebugText_Util_Fly[] = _("Fly to map");
|
|
|
|
static const u8 sDebugText_Util_WarpToMap[] = _("Warp to map warp");
|
|
|
|
static const u8 sDebugText_Util_WarpToMap_SelectMapGroup[] = _("Group: {STR_VAR_1} \n \n\n{STR_VAR_3} ");
|
|
|
|
static const u8 sDebugText_Util_WarpToMap_SelectMap[] = _("Map: {STR_VAR_1} \nMapSec: \n{STR_VAR_2} \n{STR_VAR_3} ");
|
|
|
|
static const u8 sDebugText_Util_WarpToMap_SelectWarp[] = _("Warp: \n{STR_VAR_1} \n \n{STR_VAR_3} ");
|
|
|
|
static const u8 sDebugText_Util_WarpToMap_SelMax[] = _("{STR_VAR_1} / {STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_Util_RunningShoes[] = _("Toggle Running Shoes");
|
|
|
|
static const u8 sDebugText_Util_PoisonMons[] = _("Poison all mons");
|
|
|
|
static const u8 sDebugText_Util_SaveBlockSpace[] = _("SaveBlock Space");
|
|
|
|
static const u8 sDebugText_Util_Weather[] = _("Set weather");
|
|
|
|
static const u8 sDebugText_Util_Weather_ID[] = _("Weather Id: {STR_VAR_3}\n{STR_VAR_1}\n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_Util_CheckWallClock[] = _("Check Wall Clock");
|
|
|
|
static const u8 sDebugText_Util_SetWallClock[] = _("Set Wall Clock");
|
|
|
|
static const u8 sDebugText_Util_WatchCredits[] = _("Watch Credits");
|
|
|
|
static const u8 sDebugText_Util_Trainer_Name[] = _("Trainer name");
|
|
|
|
static const u8 sDebugText_Util_Trainer_Gender[] = _("Toggle T. Gender");
|
|
|
|
static const u8 sDebugText_Util_Trainer_Id[] = _("New Trainer Id");
|
2023-03-08 15:56:16 -03:00
|
|
|
static const u8 sDebugText_Util_Clear_Boxes[] = _("Clear Storage Boxes");
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// Flags Menu
|
2022-09-20 02:31:20 -03:00
|
|
|
static const u8 sDebugText_Flags_Flags[] = _("Set Flag XXXX");
|
|
|
|
static const u8 sDebugText_Flags_SetPokedexFlags[] = _("All Pokédex Flags");
|
|
|
|
static const u8 sDebugText_Flags_SwitchDex[] = _("Pokédex ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_SwitchNationalDex[] = _("NatDex ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_SwitchPokeNav[] = _("PokéNav ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_ToggleFlyFlags[] = _("Fly Flags ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_ToggleAllBadges[] = _("All badges ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_ToggleFrontierPass[] = _("Frontier Pass ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_SwitchCollision[] = _("Collision ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_SwitchEncounter[] = _("Encounter ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_SwitchTrainerSee[] = _("TrainerSee ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_SwitchBagUse[] = _("BagUse ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_SwitchCatching[] = _("Catching ON/OFF");
|
|
|
|
static const u8 sDebugText_Flags_Flag[] = _("Flag: {STR_VAR_1} \n{STR_VAR_2} \n{STR_VAR_3}");
|
|
|
|
static const u8 sDebugText_Flags_FlagHex[] = _("{STR_VAR_1} \n0x{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_Flags_FlagSet[] = _("TRUE");
|
|
|
|
static const u8 sDebugText_Flags_FlagUnset[] = _("FALSE");
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// Variables Menu
|
2022-09-20 02:31:20 -03:00
|
|
|
static const u8 sDebugText_Vars_Vars[] = _("Set Vars XXXX");
|
|
|
|
static const u8 sDebugText_Vars_VariableHex[] = _("{STR_VAR_1} \n0x{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_Vars_Variable[] = _("Var: {STR_VAR_1} \nVal: {STR_VAR_3} \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_Vars_VariableValueSet[] = _("Var: {STR_VAR_1} \nVal: {STR_VAR_3} \n{STR_VAR_2}");
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// Give Menu
|
2022-09-20 02:31:20 -03:00
|
|
|
static const u8 sDebugText_Give_GiveItem[] = _("Give item XXXX");
|
|
|
|
static const u8 sDebugText_ItemQuantity[] = _("Quantity: \n{STR_VAR_1} \n\n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_ItemID[] = _("Item Id: {STR_VAR_3}\n{STR_VAR_1} \n\n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_Give_AllTMs[] = _("Give all TMs");
|
|
|
|
static const u8 sDebugText_Give_GivePokemonSimple[] = _("Pkm(lvl)");
|
|
|
|
static const u8 sDebugText_Give_GivePokemonComplex[] = _("Pkm(l,s,n,a,IV,mov)");
|
|
|
|
static const u8 sDebugText_PokemonID[] = _("Species: {STR_VAR_3}\n{STR_VAR_1} \n\n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_PokemonLevel[] = _("Level: \n{STR_VAR_1} \n \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_PokemonShiny[] = _("Shiny: \n {STR_VAR_2} \n \n ");
|
|
|
|
static const u8 sDebugText_PokemonNature[] = _("NatureId: {STR_VAR_3} \n{STR_VAR_1} \n \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_PokemonAbility[] = _("AbilityNum: {STR_VAR_3} \n{STR_VAR_1} \n \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_PokemonIVs[] = _("All IVs: \n {STR_VAR_3} \n \n{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_PokemonIV_0[] = _("IV HP: \n {STR_VAR_3} \n \n{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_PokemonIV_1[] = _("IV Attack: \n {STR_VAR_3} \n \n{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_PokemonIV_2[] = _("IV Defense: \n {STR_VAR_3} \n \n{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_PokemonIV_3[] = _("IV Speed: \n {STR_VAR_3} \n \n{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_PokemonIV_4[] = _("IV Sp. Attack: \n {STR_VAR_3} \n \n{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_PokemonIV_5[] = _("IV Sp. Defense: \n {STR_VAR_3} \n \n{STR_VAR_2} ");
|
|
|
|
static const u8 sDebugText_PokemonMove_0[] = _("Move 0: {STR_VAR_3} \n{STR_VAR_1} \n \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_PokemonMove_1[] = _("Move 1: {STR_VAR_3} \n{STR_VAR_1} \n \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_PokemonMove_2[] = _("Move 2: {STR_VAR_3} \n{STR_VAR_1} \n \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_PokemonMove_3[] = _("Move 3: {STR_VAR_3} \n{STR_VAR_1} \n \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_Give_MaxMoney[] = _("Max Money");
|
|
|
|
static const u8 sDebugText_Give_MaxCoins[] = _("Max Coins");
|
|
|
|
static const u8 sDebugText_Give_BattlePoints[] = _("Max Battle Points");
|
|
|
|
static const u8 sDebugText_Give_DaycareEgg[] = _("Daycare Egg");
|
|
|
|
static const u8 sDebugText_Give_FillPc[] = _("Fill Pc");
|
|
|
|
static const u8 sDebugText_Give_GiveCHEAT[] = _("CHEAT Start");
|
|
|
|
static const u8 sDebugText_AccessPC[] = _("Access PC");
|
2021-06-22 12:38:00 +02:00
|
|
|
// Sound Mneu
|
2022-09-20 02:31:20 -03:00
|
|
|
static const u8 sDebugText_Sound_SE[] = _("Effects");
|
|
|
|
static const u8 sDebugText_Sound_SE_ID[] = _("Sound Id: {STR_VAR_3}\n{STR_VAR_1} \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_Sound_MUS[] = _("Music");
|
|
|
|
static const u8 sDebugText_Sound_MUS_ID[] = _("Music Id: {STR_VAR_3}\n{STR_VAR_1} \n{STR_VAR_2}");
|
|
|
|
static const u8 sDebugText_Sound_Empty[] = _("");
|
2022-09-03 21:22:15 -04:00
|
|
|
|
|
|
|
static const u8 digitInidicator_1[] = _("{LEFT_ARROW}+1{RIGHT_ARROW} ");
|
|
|
|
static const u8 digitInidicator_10[] = _("{LEFT_ARROW}+10{RIGHT_ARROW} ");
|
|
|
|
static const u8 digitInidicator_100[] = _("{LEFT_ARROW}+100{RIGHT_ARROW} ");
|
|
|
|
static const u8 digitInidicator_1000[] = _("{LEFT_ARROW}+1000{RIGHT_ARROW} ");
|
|
|
|
static const u8 digitInidicator_10000[] = _("{LEFT_ARROW}+10000{RIGHT_ARROW} ");
|
|
|
|
static const u8 digitInidicator_100000[] = _("{LEFT_ARROW}+100000{RIGHT_ARROW} ");
|
|
|
|
static const u8 digitInidicator_1000000[] = _("{LEFT_ARROW}+1000000{RIGHT_ARROW} ");
|
|
|
|
static const u8 digitInidicator_10000000[] = _("{LEFT_ARROW}+10000000{RIGHT_ARROW} ");
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
const u8 * const gText_DigitIndicator[] =
|
|
|
|
{
|
|
|
|
digitInidicator_1,
|
|
|
|
digitInidicator_10,
|
|
|
|
digitInidicator_100,
|
|
|
|
digitInidicator_1000,
|
|
|
|
digitInidicator_10000,
|
|
|
|
digitInidicator_100000,
|
|
|
|
digitInidicator_1000000,
|
|
|
|
digitInidicator_10000000
|
|
|
|
};
|
|
|
|
static const s32 sPowersOfTen[] =
|
|
|
|
{
|
|
|
|
1,
|
|
|
|
10,
|
|
|
|
100,
|
|
|
|
1000,
|
|
|
|
10000,
|
|
|
|
100000,
|
|
|
|
1000000,
|
|
|
|
10000000,
|
|
|
|
100000000,
|
|
|
|
1000000000,
|
|
|
|
};
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// List Menu Items
|
|
|
|
static const struct ListMenuItem sDebugMenu_Items_Main[] =
|
|
|
|
{
|
2022-09-20 02:31:20 -03:00
|
|
|
[DEBUG_MENU_ITEM_UTILITIES] = {sDebugText_Utilities, DEBUG_MENU_ITEM_UTILITIES},
|
|
|
|
[DEBUG_MENU_ITEM_SCRIPTS] = {sDebugText_Scripts, DEBUG_MENU_ITEM_SCRIPTS},
|
|
|
|
[DEBUG_MENU_ITEM_FLAGS] = {sDebugText_Flags, DEBUG_MENU_ITEM_FLAGS},
|
|
|
|
[DEBUG_MENU_ITEM_VARS] = {sDebugText_Vars, DEBUG_MENU_ITEM_VARS},
|
|
|
|
[DEBUG_MENU_ITEM_GIVE] = {sDebugText_Give, DEBUG_MENU_ITEM_GIVE},
|
|
|
|
[DEBUG_MENU_ITEM_SOUND] = {sDebugText_Sound, DEBUG_MENU_ITEM_SOUND},
|
|
|
|
[DEBUG_MENU_ITEM_ACCESS_PC] = {sDebugText_AccessPC, DEBUG_MENU_ITEM_ACCESS_PC},
|
|
|
|
[DEBUG_MENU_ITEM_CANCEL] = {sDebugText_Cancel, DEBUG_MENU_ITEM_CANCEL}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
|
|
|
static const struct ListMenuItem sDebugMenu_Items_Utilities[] =
|
|
|
|
{
|
2022-09-20 02:31:20 -03:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_HEAL_PARTY] = {sDebugText_Util_HealParty, DEBUG_UTIL_MENU_ITEM_HEAL_PARTY},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_FLY] = {sDebugText_Util_Fly, DEBUG_UTIL_MENU_ITEM_FLY},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_WARP] = {sDebugText_Util_WarpToMap, DEBUG_UTIL_MENU_ITEM_WARP},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_RUNNING_SHOES] = {sDebugText_Util_RunningShoes, DEBUG_UTIL_MENU_ITEM_RUNNING_SHOES},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_POISON_MONS] = {sDebugText_Util_PoisonMons, DEBUG_UTIL_MENU_ITEM_POISON_MONS},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SAVEBLOCK] = {sDebugText_Util_SaveBlockSpace, DEBUG_UTIL_MENU_ITEM_SAVEBLOCK},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_WEATHER] = {sDebugText_Util_Weather, DEBUG_UTIL_MENU_ITEM_WEATHER},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_CHECKWALLCLOCK] = {sDebugText_Util_CheckWallClock, DEBUG_UTIL_MENU_ITEM_CHECKWALLCLOCK},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SETWALLCLOCK] = {sDebugText_Util_SetWallClock, DEBUG_UTIL_MENU_ITEM_SETWALLCLOCK},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_WATCHCREDITS] = {sDebugText_Util_WatchCredits, DEBUG_UTIL_MENU_ITEM_WATCHCREDITS},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_TRAINER_NAME] = {sDebugText_Util_Trainer_Name, DEBUG_UTIL_MENU_ITEM_TRAINER_NAME},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_TRAINER_GENDER] = {sDebugText_Util_Trainer_Gender, DEBUG_UTIL_MENU_ITEM_TRAINER_GENDER},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_TRAINER_ID] = {sDebugText_Util_Trainer_Id, DEBUG_UTIL_MENU_ITEM_TRAINER_ID},
|
2023-03-08 15:56:16 -03:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_CLEAR_BOXES] = {sDebugText_Util_Clear_Boxes, DEBUG_UTIL_MENU_ITEM_CLEAR_BOXES},
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
2021-06-20 15:48:44 +02:00
|
|
|
static const struct ListMenuItem sDebugMenu_Items_Scripts[] =
|
|
|
|
{
|
2022-09-20 02:31:20 -03:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_1] = {sDebugText_Util_Script_1, DEBUG_UTIL_MENU_ITEM_SCRIPT_1},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_2] = {sDebugText_Util_Script_2, DEBUG_UTIL_MENU_ITEM_SCRIPT_2},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_3] = {sDebugText_Util_Script_3, DEBUG_UTIL_MENU_ITEM_SCRIPT_3},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_4] = {sDebugText_Util_Script_4, DEBUG_UTIL_MENU_ITEM_SCRIPT_4},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_5] = {sDebugText_Util_Script_5, DEBUG_UTIL_MENU_ITEM_SCRIPT_5},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_6] = {sDebugText_Util_Script_6, DEBUG_UTIL_MENU_ITEM_SCRIPT_6},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_7] = {sDebugText_Util_Script_7, DEBUG_UTIL_MENU_ITEM_SCRIPT_7},
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_8] = {sDebugText_Util_Script_8, DEBUG_UTIL_MENU_ITEM_SCRIPT_8},
|
2021-06-20 15:48:44 +02:00
|
|
|
};
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static const struct ListMenuItem sDebugMenu_Items_Flags[] =
|
|
|
|
{
|
2022-09-20 02:31:20 -03:00
|
|
|
[DEBUG_FLAG_MENU_ITEM_FLAGS] = {sDebugText_Flags_Flags, DEBUG_FLAG_MENU_ITEM_FLAGS},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_POKEDEXFLAGS] = {sDebugText_Flags_SetPokedexFlags, DEBUG_FLAG_MENU_ITEM_POKEDEXFLAGS},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_POKEDEXONOFF] = {sDebugText_Flags_SwitchDex, DEBUG_FLAG_MENU_ITEM_POKEDEXONOFF},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_NATDEXONOFF] = {sDebugText_Flags_SwitchNationalDex, DEBUG_FLAG_MENU_ITEM_NATDEXONOFF},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_POKENAVONOFF] = {sDebugText_Flags_SwitchPokeNav, DEBUG_FLAG_MENU_ITEM_POKENAVONOFF},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_FLYANYWHERE] = {sDebugText_Flags_ToggleFlyFlags, DEBUG_FLAG_MENU_ITEM_FLYANYWHERE},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_GETALLBADGES] = {sDebugText_Flags_ToggleAllBadges, DEBUG_FLAG_MENU_ITEM_GETALLBADGES},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_FRONTIER_PASS] = {sDebugText_Flags_ToggleFrontierPass, DEBUG_FLAG_MENU_ITEM_FRONTIER_PASS},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_COLISSION_ONOFF] = {sDebugText_Flags_SwitchCollision, DEBUG_FLAG_MENU_ITEM_COLISSION_ONOFF},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_ENCOUNTER_ONOFF] = {sDebugText_Flags_SwitchEncounter, DEBUG_FLAG_MENU_ITEM_ENCOUNTER_ONOFF},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_TRAINER_SEE_ONOFF] = {sDebugText_Flags_SwitchTrainerSee, DEBUG_FLAG_MENU_ITEM_TRAINER_SEE_ONOFF},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_BAG_USE_ONOFF] = {sDebugText_Flags_SwitchBagUse, DEBUG_FLAG_MENU_ITEM_BAG_USE_ONOFF},
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_CATCHING_ONOFF] = {sDebugText_Flags_SwitchCatching, DEBUG_FLAG_MENU_ITEM_CATCHING_ONOFF},
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
|
|
|
static const struct ListMenuItem sDebugMenu_Items_Vars[] =
|
|
|
|
{
|
2022-09-20 02:31:20 -03:00
|
|
|
[DEBUG_VARS_MENU_ITEM_VARS] = {sDebugText_Vars_Vars, DEBUG_FLAG_MENU_ITEM_FLAGS},
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
|
|
|
static const struct ListMenuItem sDebugMenu_Items_Give[] =
|
|
|
|
{
|
2022-09-20 02:31:20 -03:00
|
|
|
[DEBUG_GIVE_MENU_ITEM_ITEM_X] = {sDebugText_Give_GiveItem, DEBUG_GIVE_MENU_ITEM_ITEM_X},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_ALLTMS] = {sDebugText_Give_AllTMs, DEBUG_GIVE_MENU_ITEM_ALLTMS},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_POKEMON_SIMPLE] = {sDebugText_Give_GivePokemonSimple, DEBUG_GIVE_MENU_ITEM_POKEMON_SIMPLE},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_POKEMON_COMPLEX] = {sDebugText_Give_GivePokemonComplex, DEBUG_GIVE_MENU_ITEM_POKEMON_COMPLEX},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_MAX_MONEY] = {sDebugText_Give_MaxMoney, DEBUG_GIVE_MENU_ITEM_MAX_MONEY},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_MAX_COINS] = {sDebugText_Give_MaxCoins, DEBUG_GIVE_MENU_ITEM_MAX_COINS},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_MAX_BATTLE_POINTS] = {sDebugText_Give_BattlePoints, DEBUG_GIVE_MENU_ITEM_MAX_BATTLE_POINTS},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_DAYCARE_EGG] = {sDebugText_Give_DaycareEgg, DEBUG_GIVE_MENU_ITEM_DAYCARE_EGG},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_FILL_PC] = {sDebugText_Give_FillPc, DEBUG_GIVE_MENU_ITEM_FILL_PC},
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_CHEAT] = {sDebugText_Give_GiveCHEAT, DEBUG_GIVE_MENU_ITEM_CHEAT},
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
2021-06-22 12:38:00 +02:00
|
|
|
static const struct ListMenuItem sDebugMenu_Items_Sound[] =
|
|
|
|
{
|
2022-09-20 02:31:20 -03:00
|
|
|
[DEBUG_SOUND_MENU_ITEM_SE] = {sDebugText_Sound_SE, DEBUG_SOUND_MENU_ITEM_SE},
|
|
|
|
[DEBUG_SOUND_MENU_ITEM_MUS] = {sDebugText_Sound_MUS, DEBUG_SOUND_MENU_ITEM_MUS},
|
2021-06-22 12:38:00 +02:00
|
|
|
};
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Menu Actions
|
|
|
|
static void (*const sDebugMenu_Actions_Main[])(u8) =
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_MENU_ITEM_UTILITIES] = DebugAction_OpenUtilitiesMenu,
|
|
|
|
[DEBUG_MENU_ITEM_SCRIPTS] = DebugAction_OpenScriptsMenu,
|
|
|
|
[DEBUG_MENU_ITEM_FLAGS] = DebugAction_OpenFlagsMenu,
|
|
|
|
[DEBUG_MENU_ITEM_VARS] = DebugAction_OpenVariablesMenu,
|
|
|
|
[DEBUG_MENU_ITEM_GIVE] = DebugAction_OpenGiveMenu,
|
|
|
|
[DEBUG_MENU_ITEM_SOUND] = DebugAction_OpenSoundMenu,
|
|
|
|
[DEBUG_MENU_ITEM_ACCESS_PC] = DebugAction_AccessPC,
|
|
|
|
[DEBUG_MENU_ITEM_CANCEL] = DebugAction_Cancel
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
|
|
|
static void (*const sDebugMenu_Actions_Utilities[])(u8) =
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_HEAL_PARTY] = DebugAction_Util_HealParty,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_FLY] = DebugAction_Util_Fly,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_WARP] = DebugAction_Util_Warp_Warp,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_RUNNING_SHOES] = DebugAction_Util_RunningShoes,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_POISON_MONS] = DebugAction_Util_PoisonMons,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SAVEBLOCK] = DebugAction_Util_CheckSaveBlock,
|
2022-09-14 14:51:03 +02:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_WEATHER] = DebugAction_Util_Weather,
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_CHECKWALLCLOCK] = DebugAction_Util_CheckWallClock,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SETWALLCLOCK] = DebugAction_Util_SetWallClock,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_WATCHCREDITS] = DebugAction_Util_WatchCredits,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_TRAINER_NAME] = DebugAction_Util_Trainer_Name,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_TRAINER_GENDER] = DebugAction_Util_Trainer_Gender,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_TRAINER_ID] = DebugAction_Util_Trainer_Id,
|
2023-03-08 15:56:16 -03:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_CLEAR_BOXES] = DebugAction_Util_Clear_Boxes,
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
2021-06-20 15:48:44 +02:00
|
|
|
static void (*const sDebugMenu_Actions_Scripts[])(u8) =
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_1] = DebugAction_Util_Script_1,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_2] = DebugAction_Util_Script_2,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_3] = DebugAction_Util_Script_3,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_4] = DebugAction_Util_Script_4,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_5] = DebugAction_Util_Script_5,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_6] = DebugAction_Util_Script_6,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_7] = DebugAction_Util_Script_7,
|
|
|
|
[DEBUG_UTIL_MENU_ITEM_SCRIPT_8] = DebugAction_Util_Script_8,
|
2021-06-20 15:48:44 +02:00
|
|
|
};
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void (*const sDebugMenu_Actions_Flags[])(u8) =
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_FLAG_MENU_ITEM_FLAGS] = DebugAction_Flags_Flags,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_POKEDEXFLAGS] = DebugAction_Flags_SetPokedexFlags,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_POKEDEXONOFF] = DebugAction_Flags_SwitchDex,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_NATDEXONOFF] = DebugAction_Flags_SwitchNatDex,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_POKENAVONOFF] = DebugAction_Flags_SwitchPokeNav,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_FLYANYWHERE] = DebugAction_Flags_ToggleFlyFlags,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_GETALLBADGES] = DebugAction_Flags_ToggleBadgeFlags,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_FRONTIER_PASS] = DebugAction_Flags_ToggleFrontierPass,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_COLISSION_ONOFF] = DebugAction_Flags_CollisionOnOff,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_ENCOUNTER_ONOFF] = DebugAction_Flags_EncounterOnOff,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_TRAINER_SEE_ONOFF] = DebugAction_Flags_TrainerSeeOnOff,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_BAG_USE_ONOFF] = DebugAction_Flags_BagUseOnOff,
|
|
|
|
[DEBUG_FLAG_MENU_ITEM_CATCHING_ONOFF] = DebugAction_Flags_CatchingOnOff,
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
|
|
|
static void (*const sDebugMenu_Actions_Vars[])(u8) =
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_VARS_MENU_ITEM_VARS] = DebugAction_Vars_Vars,
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
|
|
|
static void (*const sDebugMenu_Actions_Give[])(u8) =
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_GIVE_MENU_ITEM_ITEM_X] = DebugAction_Give_Item,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_ALLTMS] = DebugAction_Give_AllTMs,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_POKEMON_SIMPLE] = DebugAction_Give_PokemonSimple,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_POKEMON_COMPLEX] = DebugAction_Give_PokemonComplex,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_MAX_MONEY] = DebugAction_Give_MaxMoney,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_MAX_COINS] = DebugAction_Give_MaxCoins,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_MAX_BATTLE_POINTS] = DebugAction_Give_MaxBattlePoints,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_DAYCARE_EGG] = DebugAction_Give_DayCareEgg,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_FILL_PC] = DebugAction_Give_FillPC,
|
|
|
|
[DEBUG_GIVE_MENU_ITEM_CHEAT] = DebugAction_Give_CHEAT,
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
};
|
2021-06-22 12:38:00 +02:00
|
|
|
static void (*const sDebugMenu_Actions_Sound[])(u8) =
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
[DEBUG_SOUND_MENU_ITEM_SE] = DebugAction_Sound_SE,
|
|
|
|
[DEBUG_SOUND_MENU_ITEM_MUS] = DebugAction_Sound_MUS,
|
2021-06-22 12:38:00 +02:00
|
|
|
};
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Windows
|
|
|
|
static const struct WindowTemplate sDebugMenuWindowTemplate =
|
|
|
|
{
|
|
|
|
.bg = 0,
|
|
|
|
.tilemapLeft = 1,
|
|
|
|
.tilemapTop = 1,
|
|
|
|
.width = DEBUG_MAIN_MENU_WIDTH,
|
|
|
|
.height = 2 * DEBUG_MAIN_MENU_HEIGHT,
|
|
|
|
.paletteNum = 15,
|
|
|
|
.baseBlock = 1,
|
|
|
|
};
|
|
|
|
static const struct WindowTemplate sDebugNumberDisplayWindowTemplate =
|
|
|
|
{
|
|
|
|
.bg = 0,
|
2022-08-29 14:51:40 +02:00
|
|
|
.tilemapLeft = 4 + DEBUG_MAIN_MENU_WIDTH,
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
.tilemapTop = 1,
|
|
|
|
.width = DEBUG_NUMBER_DISPLAY_WIDTH,
|
|
|
|
.height = 2 * DEBUG_NUMBER_DISPLAY_HEIGHT,
|
|
|
|
.paletteNum = 15,
|
|
|
|
.baseBlock = 1,
|
|
|
|
};
|
2022-09-14 14:51:03 +02:00
|
|
|
static const struct WindowTemplate sDebugNumberDisplayMediumWindowTemplate =
|
|
|
|
{
|
|
|
|
.bg = 0,
|
|
|
|
.tilemapLeft = 30 - DEBUG_NUMBER_DISPLAY_MEDIUM_WIDTH - 1,
|
|
|
|
.tilemapTop = 1,
|
|
|
|
.width = DEBUG_NUMBER_DISPLAY_MEDIUM_WIDTH,
|
|
|
|
.height = 2 * DEBUG_NUMBER_DISPLAY_MEDIUM_HEIGHT,
|
|
|
|
.paletteNum = 15,
|
|
|
|
.baseBlock = 1,
|
|
|
|
};
|
2021-06-22 15:57:02 +02:00
|
|
|
static const struct WindowTemplate sDebugNumberDisplayLargeWindowTemplate =
|
|
|
|
{
|
|
|
|
.bg = 0,
|
|
|
|
.tilemapLeft = 30 - DEBUG_NUMBER_DISPLAY_SOUND_WIDTH -1,
|
|
|
|
.tilemapTop = 1,
|
|
|
|
.width = DEBUG_NUMBER_DISPLAY_SOUND_WIDTH,
|
|
|
|
.height = DEBUG_NUMBER_DISPLAY_SOUND_HEIGHT,
|
|
|
|
.paletteNum = 15,
|
|
|
|
.baseBlock = 1,
|
|
|
|
};
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// List Menu Templates
|
|
|
|
static const struct ListMenuTemplate sDebugMenu_ListTemplate_Main =
|
|
|
|
{
|
|
|
|
.items = sDebugMenu_Items_Main,
|
|
|
|
.moveCursorFunc = ListMenuDefaultCursorMoveFunc,
|
|
|
|
.totalItems = ARRAY_COUNT(sDebugMenu_Items_Main),
|
|
|
|
};
|
|
|
|
static const struct ListMenuTemplate sDebugMenu_ListTemplate_Utilities =
|
|
|
|
{
|
|
|
|
.items = sDebugMenu_Items_Utilities,
|
|
|
|
.moveCursorFunc = ListMenuDefaultCursorMoveFunc,
|
|
|
|
.totalItems = ARRAY_COUNT(sDebugMenu_Items_Utilities),
|
|
|
|
};
|
2021-06-20 15:48:44 +02:00
|
|
|
static const struct ListMenuTemplate sDebugMenu_ListTemplate_Scripts =
|
|
|
|
{
|
|
|
|
.items = sDebugMenu_Items_Scripts,
|
|
|
|
.moveCursorFunc = ListMenuDefaultCursorMoveFunc,
|
|
|
|
.totalItems = ARRAY_COUNT(sDebugMenu_Items_Scripts),
|
|
|
|
};
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static const struct ListMenuTemplate sDebugMenu_ListTemplate_Flags =
|
|
|
|
{
|
|
|
|
.items = sDebugMenu_Items_Flags,
|
|
|
|
.moveCursorFunc = ListMenuDefaultCursorMoveFunc,
|
|
|
|
.totalItems = ARRAY_COUNT(sDebugMenu_Items_Flags),
|
|
|
|
};
|
|
|
|
static const struct ListMenuTemplate sDebugMenu_ListTemplate_Vars =
|
|
|
|
{
|
|
|
|
.items = sDebugMenu_Items_Vars,
|
|
|
|
.moveCursorFunc = ListMenuDefaultCursorMoveFunc,
|
|
|
|
.totalItems = ARRAY_COUNT(sDebugMenu_Items_Vars),
|
|
|
|
};
|
|
|
|
static const struct ListMenuTemplate sDebugMenu_ListTemplate_Give =
|
|
|
|
{
|
|
|
|
.items = sDebugMenu_Items_Give,
|
|
|
|
.moveCursorFunc = ListMenuDefaultCursorMoveFunc,
|
|
|
|
.totalItems = ARRAY_COUNT(sDebugMenu_Items_Give),
|
|
|
|
};
|
2021-06-22 12:38:00 +02:00
|
|
|
static const struct ListMenuTemplate sDebugMenu_ListTemplate_Sound =
|
|
|
|
{
|
|
|
|
.items = sDebugMenu_Items_Sound,
|
|
|
|
.moveCursorFunc = ListMenuDefaultCursorMoveFunc,
|
|
|
|
.totalItems = ARRAY_COUNT(sDebugMenu_Items_Sound),
|
|
|
|
};
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Functions universal
|
|
|
|
void Debug_ShowMainMenu(void)
|
|
|
|
{
|
|
|
|
Debug_ShowMenu(DebugTask_HandleMenuInput_Main, sDebugMenu_ListTemplate_Main);
|
|
|
|
}
|
|
|
|
static void Debug_ShowMenu(void (*HandleInput)(u8), struct ListMenuTemplate LMtemplate)
|
|
|
|
{
|
|
|
|
struct ListMenuTemplate menuTemplate;
|
|
|
|
u8 windowId;
|
|
|
|
u8 menuTaskId;
|
|
|
|
u8 inputTaskId;
|
|
|
|
|
|
|
|
// create window
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugMenuWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
// create list menu
|
|
|
|
menuTemplate = LMtemplate;
|
|
|
|
menuTemplate.maxShowed = DEBUG_MAIN_MENU_HEIGHT;
|
|
|
|
menuTemplate.windowId = windowId;
|
|
|
|
menuTemplate.header_X = 0;
|
|
|
|
menuTemplate.item_X = 8;
|
|
|
|
menuTemplate.cursor_X = 0;
|
|
|
|
menuTemplate.upText_Y = 1;
|
|
|
|
menuTemplate.cursorPal = 2;
|
|
|
|
menuTemplate.fillValue = 1;
|
|
|
|
menuTemplate.cursorShadowPal = 3;
|
|
|
|
menuTemplate.lettersSpacing = 1;
|
|
|
|
menuTemplate.itemVerticalPadding = 0;
|
|
|
|
menuTemplate.scrollMultiple = LIST_NO_MULTIPLE_SCROLL;
|
|
|
|
menuTemplate.fontId = 1;
|
|
|
|
menuTemplate.cursorKind = 0;
|
|
|
|
menuTaskId = ListMenuInit(&menuTemplate, 0, 0);
|
|
|
|
|
|
|
|
// draw everything
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
// create input handler task
|
|
|
|
inputTaskId = CreateTask(HandleInput, 3);
|
|
|
|
gTasks[inputTaskId].data[0] = menuTaskId;
|
|
|
|
gTasks[inputTaskId].data[1] = windowId;
|
|
|
|
}
|
|
|
|
static void Debug_DestroyMenu(u8 taskId)
|
2022-09-12 12:12:26 +02:00
|
|
|
{
|
|
|
|
DestroyListMenuTask(gTasks[taskId].data[0], NULL, NULL);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
DestroyTask(taskId);
|
|
|
|
}
|
|
|
|
static void Debug_DestroyMenu_Full(u8 taskId)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
DestroyListMenuTask(gTasks[taskId].data[0], NULL, NULL);
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
DestroyTask(taskId);
|
2022-09-14 13:43:26 +02:00
|
|
|
UnfreezeObjectEvents();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Cancel(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_DestroyExtraWindow(u8 taskId)
|
|
|
|
{
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[2], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[2]);
|
|
|
|
|
|
|
|
DestroyTask(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
2022-09-14 13:43:26 +02:00
|
|
|
UnfreezeObjectEvents();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Handle Inputs
|
|
|
|
static void DebugTask_HandleMenuInput_Main(u8 taskId)
|
|
|
|
{
|
|
|
|
void (*func)(u8);
|
|
|
|
u32 input = ListMenu_ProcessInput(gTasks[taskId].data[0]);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
if ((func = sDebugMenu_Actions_Main[input]) != NULL)
|
|
|
|
func(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugTask_HandleMenuInput_Utilities(u8 taskId)
|
|
|
|
{
|
|
|
|
void (*func)(u8);
|
|
|
|
u32 input = ListMenu_ProcessInput(gTasks[taskId].data[0]);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
if ((func = sDebugMenu_Actions_Utilities[input]) != NULL)
|
|
|
|
func(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMainMenu();
|
|
|
|
}
|
|
|
|
}
|
2021-06-20 15:48:44 +02:00
|
|
|
static void DebugTask_HandleMenuInput_Scripts(u8 taskId)
|
|
|
|
{
|
|
|
|
void (*func)(u8);
|
|
|
|
u32 input = ListMenu_ProcessInput(gTasks[taskId].data[0]);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
2021-06-20 15:48:44 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
if ((func = sDebugMenu_Actions_Scripts[input]) != NULL)
|
|
|
|
func(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
2021-06-20 15:48:44 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMainMenu();
|
|
|
|
}
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugTask_HandleMenuInput_Flags(u8 taskId)
|
|
|
|
{
|
|
|
|
void (*func)(u8);
|
|
|
|
u32 input = ListMenu_ProcessInput(gTasks[taskId].data[0]);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
if ((func = sDebugMenu_Actions_Flags[input]) != NULL)
|
|
|
|
func(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMainMenu();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugTask_HandleMenuInput_Vars(u8 taskId)
|
|
|
|
{
|
|
|
|
void (*func)(u8);
|
|
|
|
u32 input = ListMenu_ProcessInput(gTasks[taskId].data[0]);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
if ((func = sDebugMenu_Actions_Vars[input]) != NULL)
|
|
|
|
func(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMainMenu();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugTask_HandleMenuInput_Give(u8 taskId)
|
|
|
|
{
|
|
|
|
void (*func)(u8);
|
|
|
|
u32 input = ListMenu_ProcessInput(gTasks[taskId].data[0]);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
if ((func = sDebugMenu_Actions_Give[input]) != NULL)
|
|
|
|
func(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMainMenu();
|
|
|
|
}
|
|
|
|
}
|
2021-06-22 12:38:00 +02:00
|
|
|
static void DebugTask_HandleMenuInput_Sound(u8 taskId)
|
|
|
|
{
|
|
|
|
void (*func)(u8);
|
|
|
|
u32 input = ListMenu_ProcessInput(gTasks[taskId].data[0]);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
if ((func = sDebugMenu_Actions_Sound[input]) != NULL)
|
|
|
|
func(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMainMenu();
|
|
|
|
}
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Open sub-menus
|
|
|
|
static void DebugAction_OpenUtilitiesMenu(u8 taskId)
|
|
|
|
{
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMenu(DebugTask_HandleMenuInput_Utilities, sDebugMenu_ListTemplate_Utilities);
|
|
|
|
}
|
2021-06-20 15:48:44 +02:00
|
|
|
static void DebugAction_OpenScriptsMenu(u8 taskId)
|
|
|
|
{
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMenu(DebugTask_HandleMenuInput_Scripts, sDebugMenu_ListTemplate_Scripts);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_OpenFlagsMenu(u8 taskId)
|
|
|
|
{
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMenu(DebugTask_HandleMenuInput_Flags, sDebugMenu_ListTemplate_Flags);
|
|
|
|
}
|
|
|
|
static void DebugAction_OpenVariablesMenu(u8 taskId)
|
|
|
|
{
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMenu(DebugTask_HandleMenuInput_Vars, sDebugMenu_ListTemplate_Vars);
|
|
|
|
}
|
|
|
|
static void DebugAction_OpenGiveMenu(u8 taskId)
|
|
|
|
{
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMenu(DebugTask_HandleMenuInput_Give, sDebugMenu_ListTemplate_Give);
|
|
|
|
}
|
2021-06-22 12:38:00 +02:00
|
|
|
static void DebugAction_OpenSoundMenu(u8 taskId)
|
|
|
|
{
|
|
|
|
Debug_DestroyMenu(taskId);
|
|
|
|
Debug_ShowMenu(DebugTask_HandleMenuInput_Sound, sDebugMenu_ListTemplate_Sound);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Actions Utilities
|
|
|
|
static void DebugAction_Util_HealParty(u8 taskId)
|
|
|
|
{
|
|
|
|
PlaySE(SE_USE_ITEM);
|
|
|
|
HealPlayerParty();
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Fly(u8 taskId)
|
|
|
|
{
|
|
|
|
FlagSet(FLAG_VISITED_LITTLEROOT_TOWN);
|
|
|
|
FlagSet(FLAG_VISITED_OLDALE_TOWN);
|
|
|
|
FlagSet(FLAG_VISITED_DEWFORD_TOWN);
|
|
|
|
FlagSet(FLAG_VISITED_LAVARIDGE_TOWN);
|
|
|
|
FlagSet(FLAG_VISITED_FALLARBOR_TOWN);
|
|
|
|
FlagSet(FLAG_VISITED_VERDANTURF_TOWN);
|
|
|
|
FlagSet(FLAG_VISITED_PACIFIDLOG_TOWN);
|
|
|
|
FlagSet(FLAG_VISITED_PETALBURG_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_SLATEPORT_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_MAUVILLE_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_RUSTBORO_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_FORTREE_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_LILYCOVE_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_MOSSDEEP_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_SOOTOPOLIS_CITY);
|
|
|
|
FlagSet(FLAG_VISITED_EVER_GRANDE_CITY);
|
|
|
|
FlagSet(FLAG_LANDMARK_POKEMON_LEAGUE);
|
|
|
|
FlagSet(FLAG_LANDMARK_BATTLE_FRONTIER);
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
SetMainCallback2(CB2_OpenFlyMap);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Util_Warp_Warp(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugNumberDisplayWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar2, MAP_GROUPS_COUNT-1, STR_CONV_MODE_LEADING_ZEROS, 2);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Util_WarpToMap_SelMax);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[0]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_WarpToMap_SelectMapGroup);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Util_Warp_SelectMapGroup;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
|
|
|
gTasks[taskId].data[3] = 0; //Current Flag
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
|
|
|
gTasks[taskId].data[5] = 0; //Map Group
|
|
|
|
gTasks[taskId].data[6] = 0; //Map
|
|
|
|
gTasks[taskId].data[7] = 0; //warp
|
|
|
|
}
|
|
|
|
static void DebugAction_Util_Warp_SelectMapGroup(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > MAP_GROUPS_COUNT - 1)
|
|
|
|
gTasks[taskId].data[3] = MAP_GROUPS_COUNT - 1;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < 2)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
2022-09-03 21:22:15 -04:00
|
|
|
ConvertIntToDecimalStringN(gStringVar2, MAP_GROUPS_COUNT - 1, STR_CONV_MODE_LEADING_ZEROS, 2);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Util_WarpToMap_SelMax);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_WarpToMap_SelectMapGroup);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[5] = gTasks[taskId].data[3];
|
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
2023-03-07 12:20:36 +01:00
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, (MAP_GROUP_COUNT[gTasks[taskId].data[5]] - 1 >= 100) ? 3 : 2);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar2, MAP_GROUP_COUNT[gTasks[taskId].data[5]] - 1, STR_CONV_MODE_LEADING_ZEROS, (MAP_GROUP_COUNT[gTasks[taskId].data[5]] - 1 >= 100) ? 3 : 2);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Util_WarpToMap_SelMax);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
GetMapName(gStringVar2, Overworld_GetMapHeaderByGroupAndId(gTasks[taskId].data[5], gTasks[taskId].data[3])->regionMapSectionId, 0);
|
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_WarpToMap_SelectMap);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Util_Warp_SelectMap;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Util_Warp_SelectMap(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 max_value = MAP_GROUP_COUNT[gTasks[taskId].data[5]]; //maps in the selected map group
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[3] > max_value - 1)
|
2022-09-03 21:22:15 -04:00
|
|
|
gTasks[taskId].data[3] = max_value - 1;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[4] < 2)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
2023-03-07 12:20:36 +01:00
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, (max_value >= 100) ? 3 : 2);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar2, MAP_GROUP_COUNT[gTasks[taskId].data[5]] - 1, STR_CONV_MODE_LEADING_ZEROS, (max_value >= 100) ? 3 : 2);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Util_WarpToMap_SelMax);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
GetMapName(gStringVar2, Overworld_GetMapHeaderByGroupAndId(gTasks[taskId].data[5], gTasks[taskId].data[3])->regionMapSectionId, 0);
|
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_WarpToMap_SelectMap);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[6] = gTasks[taskId].data[3];
|
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_WarpToMap_SelectWarp);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
gTasks[taskId].func = DebugAction_Util_Warp_SelectWarp;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Util_Warp_SelectWarp(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[3] > 10)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 10;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_WarpToMap_SelectWarp);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[7] = gTasks[taskId].data[3];
|
|
|
|
//WARP
|
2022-09-03 21:22:15 -04:00
|
|
|
//If there's no warp with the number available, warp to the center of the map.
|
|
|
|
SetWarpDestinationToMapWarp(gTasks[taskId].data[5], gTasks[taskId].data[6], gTasks[taskId].data[7]);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DoWarp();
|
|
|
|
ResetInitialPlayerAvatarState();
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-07 11:44:03 +02:00
|
|
|
static void DebugAction_Util_RunningShoes(u8 taskId)
|
|
|
|
{
|
|
|
|
if (FlagGet(FLAG_SYS_B_DASH))
|
|
|
|
{
|
|
|
|
FlagClear(FLAG_SYS_B_DASH);
|
|
|
|
PlaySE(SE_PC_OFF);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
FlagSet(FLAG_SYS_B_DASH);
|
|
|
|
PlaySE(SE_PC_LOGIN);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Util_PoisonMons(u8 taskId)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < PARTY_SIZE; i++)
|
|
|
|
{
|
|
|
|
if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES, 0)
|
2023-03-03 11:00:50 -03:00
|
|
|
&& GetMonData(&gPlayerParty[i], MON_DATA_SPECIES_OR_EGG) != SPECIES_NONE
|
|
|
|
&& GetMonData(&gPlayerParty[i], MON_DATA_SPECIES_OR_EGG) != SPECIES_EGG)
|
2021-05-07 11:44:03 +02:00
|
|
|
{
|
|
|
|
u32 curStatus = STATUS1_POISON;
|
|
|
|
SetMonData(&gPlayerParty[i], MON_DATA_STATUS, &curStatus);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
PlaySE(SE_FIELD_POISON);
|
|
|
|
}
|
|
|
|
|
2023-05-20 15:27:55 -03:00
|
|
|
void CheckSaveBlock1Size(void)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2023-05-20 15:27:55 -03:00
|
|
|
u32 currSb1Size = sizeof(struct SaveBlock1);
|
|
|
|
u32 maxSb1Size = SECTOR_DATA_SIZE * (SECTOR_ID_SAVEBLOCK1_END - SECTOR_ID_SAVEBLOCK1_START + 1);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, currSb1Size, STR_CONV_MODE_LEFT_ALIGN, 6);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar2, maxSb1Size, STR_CONV_MODE_LEFT_ALIGN, 6);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2023-05-20 15:27:55 -03:00
|
|
|
void CheckSaveBlock2Size(void)
|
|
|
|
{
|
|
|
|
u32 currSb2Size = (sizeof(struct SaveBlock2));
|
|
|
|
u32 maxSb2Size = SECTOR_DATA_SIZE;
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, currSb2Size, STR_CONV_MODE_LEFT_ALIGN, 6);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar2, maxSb2Size, STR_CONV_MODE_LEFT_ALIGN, 6);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2023-05-20 15:27:55 -03:00
|
|
|
void CheckPokemonStorageSize(void)
|
|
|
|
{
|
|
|
|
u32 currPkmnStorageSize = sizeof(struct PokemonStorage);
|
|
|
|
u32 maxPkmnStorageSize = SECTOR_DATA_SIZE * (SECTOR_ID_PKMN_STORAGE_END - SECTOR_ID_PKMN_STORAGE_START + 1);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, currPkmnStorageSize, STR_CONV_MODE_LEFT_ALIGN, 6);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar2, maxPkmnStorageSize, STR_CONV_MODE_LEFT_ALIGN, 6);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Util_CheckSaveBlock(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
2023-05-20 15:27:55 -03:00
|
|
|
ScriptContext_SetupScript(Debug_CheckSaveBlock);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-14 14:51:03 +02:00
|
|
|
|
|
|
|
static const u8 sWeatherNames[22][24] = {
|
|
|
|
[WEATHER_NONE] = _("NONE"),
|
|
|
|
[WEATHER_SUNNY_CLOUDS] = _("SUNNY CLOUDS"),
|
|
|
|
[WEATHER_SUNNY] = _("SUNNY"),
|
|
|
|
[WEATHER_RAIN] = _("RAIN"),
|
|
|
|
[WEATHER_SNOW] = _("SNOW"),
|
|
|
|
[WEATHER_RAIN_THUNDERSTORM] = _("RAIN THUNDERSTORM"),
|
|
|
|
[WEATHER_FOG_HORIZONTAL] = _("FOG HORIZONTAL"),
|
|
|
|
[WEATHER_VOLCANIC_ASH] = _("VOLCANIC ASH"),
|
|
|
|
[WEATHER_SANDSTORM] = _("SANDSTORM"),
|
|
|
|
[WEATHER_FOG_DIAGONAL] = _("FOG DIAGONAL"),
|
|
|
|
[WEATHER_UNDERWATER] = _("UNDERWATER"),
|
|
|
|
[WEATHER_SHADE] = _("SHADE"),
|
|
|
|
[WEATHER_DROUGHT] = _("DROUGHT"),
|
|
|
|
[WEATHER_DOWNPOUR] = _("DOWNPOUR"),
|
|
|
|
[WEATHER_UNDERWATER_BUBBLES] = _("UNDERWATER BUBBLES"),
|
|
|
|
[WEATHER_ABNORMAL] = _("ABNORMAL(NOT WORKING)"),
|
|
|
|
[WEATHER_ROUTE119_CYCLE] = _("ROUTE119 CYCLE"),
|
|
|
|
[WEATHER_ROUTE123_CYCLE] = _("ROUTE123 CYCLE"),
|
|
|
|
};
|
|
|
|
static const u8 sText_WeatherNotDefined[] = _("NOT DEFINED!!!");
|
|
|
|
static void DebugAction_Util_Weather(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugNumberDisplayMediumWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial ID
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[0]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, 1, STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar1, sWeatherNames[0], CHAR_SPACE, 30);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_Weather_ID);
|
2022-09-14 14:51:03 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Util_Weather_SelectId;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
|
|
|
gTasks[taskId].data[3] = 0; //Current ID
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
|
|
|
}
|
|
|
|
static void DebugAction_Util_Weather_SelectId(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
2022-09-14 14:51:03 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
2022-09-14 14:51:03 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
|
|
|
if (gTasks[taskId].data[3] > WEATHER_ROUTE123_CYCLE)
|
|
|
|
gTasks[taskId].data[3] = WEATHER_ROUTE123_CYCLE;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
2022-09-14 14:51:03 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
|
|
|
if (gTasks[taskId].data[3] < WEATHER_NONE)
|
|
|
|
gTasks[taskId].data[3] = WEATHER_NONE;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
2022-09-14 14:51:03 +02:00
|
|
|
{
|
|
|
|
if (gTasks[taskId].data[4] > 0)
|
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
2022-09-14 14:51:03 +02:00
|
|
|
{
|
|
|
|
if (gTasks[taskId].data[4] < 2)
|
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
|
|
|
|
if (gTasks[taskId].data[3] <= 15 || gTasks[taskId].data[3] >= 20)
|
|
|
|
StringCopyPadded(gStringVar1, sWeatherNames[gTasks[taskId].data[3]], CHAR_SPACE, 30);
|
|
|
|
else
|
2023-02-26 18:43:15 -03:00
|
|
|
StringCopyPadded(gStringVar1, sText_WeatherNotDefined, CHAR_SPACE, 30);
|
2022-09-14 14:51:03 +02:00
|
|
|
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Util_Weather_ID);
|
2022-09-14 14:51:03 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
2022-09-14 14:51:03 +02:00
|
|
|
{
|
|
|
|
if (gTasks[taskId].data[3] <= 14 || gTasks[taskId].data[3] >= 20)
|
|
|
|
{
|
|
|
|
gTasks[taskId].data[5] = gTasks[taskId].data[3];
|
|
|
|
SetWeather(gTasks[taskId].data[5]);
|
|
|
|
}
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
2022-09-14 14:51:03 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_Util_CheckWallClock(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(PlayersHouse_2F_EventScript_CheckWallClock);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_SetWallClock(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(PlayersHouse_2F_EventScript_SetWallClock);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2020-11-16 10:32:17 +01:00
|
|
|
static void DebugAction_Util_WatchCredits(u8 taskId)
|
|
|
|
{
|
|
|
|
struct Task* task = &gTasks[taskId];
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2020-11-16 10:32:17 +01:00
|
|
|
SetMainCallback2(CB2_StartCreditsSequence);
|
|
|
|
}
|
|
|
|
static void DebugAction_Util_Trainer_Name(u8 taskId)
|
|
|
|
{
|
|
|
|
NewGameBirchSpeech_SetDefaultPlayerName(Random() % 20);
|
|
|
|
DoNamingScreen(0, gSaveBlock2Ptr->playerName, gSaveBlock2Ptr->playerGender, 0, 0, CB2_ReturnToFieldContinueScript);
|
|
|
|
}
|
|
|
|
static void DebugAction_Util_Trainer_Gender(u8 taskId)
|
|
|
|
{
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gSaveBlock2Ptr->playerGender == 0) // 0 Male, 1 Female
|
2020-11-16 10:32:17 +01:00
|
|
|
gSaveBlock2Ptr->playerGender = 1;
|
|
|
|
else
|
|
|
|
gSaveBlock2Ptr->playerGender = 0;
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
2020-11-16 10:32:17 +01:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Trainer_Id(u8 taskId)
|
|
|
|
{
|
2021-05-07 10:31:59 +02:00
|
|
|
u32 trainerId = ((Random() << 16) | Random());
|
2020-11-16 10:32:17 +01:00
|
|
|
SetTrainerId(trainerId, gSaveBlock2Ptr->playerTrainerId);
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
2020-11-16 10:32:17 +01:00
|
|
|
}
|
2023-03-08 15:56:16 -03:00
|
|
|
static void DebugAction_Util_Clear_Boxes(u8 taskId)
|
|
|
|
{
|
|
|
|
ResetPokemonStorageSystem();
|
|
|
|
Debug_DestroyMenu_Full(taskId);
|
|
|
|
ScriptContext_Enable();
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2021-06-20 15:48:44 +02:00
|
|
|
// *******************************
|
|
|
|
// Actions Scripts
|
|
|
|
static void DebugAction_Util_Script_1(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_1);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Script_2(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_2);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Script_3(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_3);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Script_4(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_4);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Script_5(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_5);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Script_6(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_6);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Script_7(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_7);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Util_Script_8(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_Script_8);
|
2021-06-20 15:48:44 +02:00
|
|
|
}
|
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// *******************************
|
|
|
|
// Actions Flags
|
|
|
|
static void DebugAction_Flags_Flags(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugNumberDisplayWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial Flag
|
2022-09-14 14:51:03 +02:00
|
|
|
ConvertIntToDecimalStringN(gStringVar1, 1, STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_FLAGS);
|
|
|
|
ConvertIntToHexStringN(gStringVar2, 1, STR_CONV_MODE_LEFT_ALIGN, 3);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Flags_FlagHex);
|
2022-09-14 14:51:03 +02:00
|
|
|
if (FlagGet(FLAG_TEMP_1) == TRUE)
|
2022-09-20 02:31:20 -03:00
|
|
|
StringCopyPadded(gStringVar2, sDebugText_Flags_FlagSet, CHAR_SPACE, 15);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
else
|
2022-09-20 02:31:20 -03:00
|
|
|
StringCopyPadded(gStringVar2, sDebugText_Flags_FlagUnset, CHAR_SPACE, 15);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[0]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Flags_Flag);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Flags_FlagsSelect;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
2022-09-14 14:51:03 +02:00
|
|
|
gTasks[taskId].data[3] = FLAG_TEMP_1; //Current Flag
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_FlagsSelect(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
FlagToggle(gTasks[taskId].data[3]);
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] >= FLAGS_COUNT){
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = FLAGS_COUNT - 1;
|
|
|
|
}
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[3] < 1){
|
|
|
|
gTasks[taskId].data[3] = 1;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
gTasks[taskId].data[4] -= 1;
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
}
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
gTasks[taskId].data[4] += 1;
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > DEBUG_NUMBER_DIGITS_FLAGS - 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
gTasks[taskId].data[4] = DEBUG_NUMBER_DIGITS_FLAGS - 1;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY) || JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_FLAGS);
|
|
|
|
ConvertIntToHexStringN(gStringVar2, gTasks[taskId].data[3], STR_CONV_MODE_LEFT_ALIGN, 3);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Flags_FlagHex);
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(gTasks[taskId].data[3]) == TRUE)
|
2022-09-20 02:31:20 -03:00
|
|
|
StringCopyPadded(gStringVar2, sDebugText_Flags_FlagSet, CHAR_SPACE, 15);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
else
|
2022-09-20 02:31:20 -03:00
|
|
|
StringCopyPadded(gStringVar2, sDebugText_Flags_FlagUnset, CHAR_SPACE, 15);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopy(gStringVar3, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Flags_Flag);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Flags_SetPokedexFlags(u8 taskId)
|
|
|
|
{
|
|
|
|
u16 i;
|
|
|
|
for (i = 0; i < NATIONAL_DEX_COUNT; i++)
|
|
|
|
{
|
|
|
|
GetSetPokedexFlag(i + 1, FLAG_SET_CAUGHT);
|
|
|
|
GetSetPokedexFlag(i + 1, FLAG_SET_SEEN);
|
|
|
|
}
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_SwitchDex(u8 taskId)
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(FLAG_SYS_POKEDEX_GET))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
else
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
FlagToggle(FLAG_SYS_POKEDEX_GET);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_SwitchNatDex(u8 taskId)
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (IsNationalPokedexEnabled())
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
DisableNationalPokedex();
|
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
EnableNationalPokedex();
|
|
|
|
PlaySE(SE_PC_LOGIN);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Flags_SwitchPokeNav(u8 taskId)
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(FLAG_SYS_POKENAV_GET))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
else
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
FlagToggle(FLAG_SYS_POKENAV_GET);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_ToggleFlyFlags(u8 taskId)
|
|
|
|
{
|
|
|
|
// Sound effect
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(FLAG_LANDMARK_BATTLE_FRONTIER))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
|
|
|
else
|
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
FlagToggle(FLAG_VISITED_LITTLEROOT_TOWN);
|
|
|
|
FlagToggle(FLAG_VISITED_OLDALE_TOWN);
|
|
|
|
FlagToggle(FLAG_VISITED_DEWFORD_TOWN);
|
|
|
|
FlagToggle(FLAG_VISITED_LAVARIDGE_TOWN);
|
|
|
|
FlagToggle(FLAG_VISITED_FALLARBOR_TOWN);
|
|
|
|
FlagToggle(FLAG_VISITED_VERDANTURF_TOWN);
|
|
|
|
FlagToggle(FLAG_VISITED_PACIFIDLOG_TOWN);
|
|
|
|
FlagToggle(FLAG_VISITED_PETALBURG_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_SLATEPORT_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_MAUVILLE_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_RUSTBORO_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_FORTREE_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_LILYCOVE_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_MOSSDEEP_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_SOOTOPOLIS_CITY);
|
|
|
|
FlagToggle(FLAG_VISITED_EVER_GRANDE_CITY);
|
|
|
|
FlagToggle(FLAG_LANDMARK_POKEMON_LEAGUE);
|
|
|
|
FlagToggle(FLAG_LANDMARK_BATTLE_FRONTIER);
|
|
|
|
}
|
|
|
|
static void DebugAction_Flags_ToggleBadgeFlags(u8 taskId)
|
|
|
|
{
|
|
|
|
// Sound effect
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(FLAG_BADGE08_GET))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
|
|
|
else
|
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
FlagToggle(FLAG_BADGE01_GET);
|
|
|
|
FlagToggle(FLAG_BADGE02_GET);
|
|
|
|
FlagToggle(FLAG_BADGE03_GET);
|
|
|
|
FlagToggle(FLAG_BADGE04_GET);
|
|
|
|
FlagToggle(FLAG_BADGE05_GET);
|
|
|
|
FlagToggle(FLAG_BADGE06_GET);
|
|
|
|
FlagToggle(FLAG_BADGE07_GET);
|
|
|
|
FlagToggle(FLAG_BADGE08_GET);
|
|
|
|
}
|
2022-08-29 14:48:40 +02:00
|
|
|
static void DebugAction_Flags_ToggleFrontierPass(u8 taskId)
|
|
|
|
{
|
|
|
|
// Sound effect
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(FLAG_SYS_FRONTIER_PASS))
|
2022-08-29 14:48:40 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
|
|
|
else
|
|
|
|
PlaySE(SE_PC_LOGIN);
|
|
|
|
FlagToggle(FLAG_SYS_FRONTIER_PASS);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_Flags_CollisionOnOff(u8 taskId)
|
|
|
|
{
|
2023-03-08 01:51:51 -03:00
|
|
|
#if OW_FLAG_NO_COLLISION == 0
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-09-02 18:39:38 +02:00
|
|
|
LockPlayerFieldControls();
|
2023-03-08 01:51:51 -03:00
|
|
|
ScriptContext_SetupScript(Debug_FlagsNotSetOverworldConfigMessage);
|
2022-09-02 18:39:38 +02:00
|
|
|
#else
|
2023-03-08 01:51:51 -03:00
|
|
|
if (FlagGet(OW_FLAG_NO_COLLISION))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
else
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_LOGIN);
|
2023-03-08 01:51:51 -03:00
|
|
|
FlagToggle(OW_FLAG_NO_COLLISION);
|
2022-09-02 18:39:38 +02:00
|
|
|
#endif
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_EncounterOnOff(u8 taskId)
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
#if OW_FLAG_NO_ENCOUNTER == 0
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-09-02 18:39:38 +02:00
|
|
|
LockPlayerFieldControls();
|
2023-03-08 01:51:51 -03:00
|
|
|
ScriptContext_SetupScript(Debug_FlagsNotSetOverworldConfigMessage);
|
2022-09-02 18:39:38 +02:00
|
|
|
#else
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(OW_FLAG_NO_ENCOUNTER))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
else
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
FlagToggle(OW_FLAG_NO_ENCOUNTER);
|
2022-09-02 18:39:38 +02:00
|
|
|
#endif
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_TrainerSeeOnOff(u8 taskId)
|
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
#if OW_FLAG_NO_TRAINER_SEE == 0
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-09-02 18:39:38 +02:00
|
|
|
LockPlayerFieldControls();
|
2023-03-08 01:51:51 -03:00
|
|
|
ScriptContext_SetupScript(Debug_FlagsNotSetOverworldConfigMessage);
|
2022-09-02 18:39:38 +02:00
|
|
|
#else
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(OW_FLAG_NO_TRAINER_SEE))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
else
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
FlagToggle(OW_FLAG_NO_TRAINER_SEE);
|
2022-09-02 18:39:38 +02:00
|
|
|
#endif
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_BagUseOnOff(u8 taskId)
|
|
|
|
{
|
2022-09-02 18:39:38 +02:00
|
|
|
#if B_FLAG_NO_BAG_USE == 0
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-09-02 18:39:38 +02:00
|
|
|
LockPlayerFieldControls();
|
2023-03-08 01:51:51 -03:00
|
|
|
ScriptContext_SetupScript(Debug_FlagsNotSetBattleConfigMessage);
|
2022-09-02 18:39:38 +02:00
|
|
|
#else
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(B_FLAG_NO_BAG_USE))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
else
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
FlagToggle(B_FLAG_NO_BAG_USE);
|
2022-09-02 18:39:38 +02:00
|
|
|
#endif
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Flags_CatchingOnOff(u8 taskId)
|
|
|
|
{
|
2023-03-08 01:51:51 -03:00
|
|
|
#if B_FLAG_NO_CATCHING == 0
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-09-02 18:39:38 +02:00
|
|
|
LockPlayerFieldControls();
|
2023-03-08 01:51:51 -03:00
|
|
|
ScriptContext_SetupScript(Debug_FlagsNotSetBattleConfigMessage);
|
2022-09-02 18:39:38 +02:00
|
|
|
#else
|
2022-09-03 21:22:15 -04:00
|
|
|
if (FlagGet(B_FLAG_NO_CATCHING))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_OFF);
|
2022-09-03 21:22:15 -04:00
|
|
|
else
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
PlaySE(SE_PC_LOGIN);
|
2022-09-03 21:22:15 -04:00
|
|
|
FlagToggle(B_FLAG_NO_CATCHING);
|
2022-09-02 18:39:38 +02:00
|
|
|
#endif
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-13 16:26:36 -03:00
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
// *******************************
|
|
|
|
// Actions Variables
|
|
|
|
static void DebugAction_Vars_Vars(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugNumberDisplayWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial Variable
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, VARS_START, STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
ConvertIntToHexStringN(gStringVar2, VARS_START, STR_CONV_MODE_LEFT_ALIGN, 4);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Vars_VariableHex);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
ConvertIntToDecimalStringN(gStringVar3, 0, STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[0]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Vars_Variable);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Vars_Select;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
2022-09-03 21:22:15 -04:00
|
|
|
gTasks[taskId].data[3] = VARS_START; //Current Variable
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[5] = 0; //Current Variable VALUE
|
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Vars_Select(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[3] > VARS_END)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = VARS_END;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < VARS_START)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = VARS_START;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[4] -= 1;
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[4] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[4] += 1;
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > DEBUG_NUMBER_DIGITS_VARIABLES - 1)
|
|
|
|
gTasks[taskId].data[4] = DEBUG_NUMBER_DIGITS_VARIABLES - 1;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
ConvertIntToHexStringN(gStringVar2, gTasks[taskId].data[3], STR_CONV_MODE_LEFT_ALIGN, 4);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Vars_VariableHex);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
if (VarGetIfExist(gTasks[taskId].data[3]) == 65535) //Current value, if 65535 the value hasnt been set
|
|
|
|
gTasks[taskId].data[5] = 0;
|
|
|
|
else
|
|
|
|
gTasks[taskId].data[5] = VarGet(gTasks[taskId].data[3]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[5], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]); //Current digit
|
|
|
|
|
|
|
|
//Combine str's to full window string
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Vars_Variable);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
ConvertIntToHexStringN(gStringVar2, gTasks[taskId].data[3], STR_CONV_MODE_LEFT_ALIGN, 4);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Vars_VariableHex);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
if (VarGetIfExist(gTasks[taskId].data[3]) == 65535) //Current value if 65535 the value hasnt been set
|
|
|
|
gTasks[taskId].data[5] = 0;
|
|
|
|
else
|
|
|
|
gTasks[taskId].data[5] = VarGet(gTasks[taskId].data[3]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[5], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]); //Current digit
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Vars_VariableValueSet);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].data[6] = gTasks[taskId].data[5]; //New value selector
|
|
|
|
gTasks[taskId].func = DebugAction_Vars_SetValue;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Vars_SetValue(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2021-03-25 10:21:27 +01:00
|
|
|
if (gTasks[taskId].data[6] + sPowersOfTen[gTasks[taskId].data[4]] <= 32000)
|
|
|
|
gTasks[taskId].data[6] += sPowersOfTen[gTasks[taskId].data[4]];
|
|
|
|
else
|
2022-09-03 21:22:15 -04:00
|
|
|
gTasks[taskId].data[6] = 32000 - 1;
|
|
|
|
|
|
|
|
if (gTasks[taskId].data[6] >= 32000)
|
|
|
|
gTasks[taskId].data[6] = 32000 - 1;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[6] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[6] < 0){
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[6] = 0;
|
|
|
|
}
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[4] -= 1;
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
}
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[4] += 1;
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 4)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2021-03-25 10:21:27 +01:00
|
|
|
gTasks[taskId].data[4] = 4;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2021-03-25 10:21:27 +01:00
|
|
|
VarSet(gTasks[taskId].data[3], gTasks[taskId].data[6]);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY) || JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
ConvertIntToHexStringN(gStringVar2, gTasks[taskId].data[3], STR_CONV_MODE_LEFT_ALIGN, 4);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar1, sDebugText_Vars_VariableHex);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[6], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_VARIABLES);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]); //Current digit
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Vars_VariableValueSet);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Actions Give
|
|
|
|
#define ITEM_TAG 0xFDF3
|
|
|
|
static void DebugAction_Give_Item(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugNumberDisplayWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial ID
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[0]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, 1, STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEMS);
|
|
|
|
CopyItemName(1, gStringVar1);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_ItemID);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Item_SelectId;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
|
|
|
gTasks[taskId].data[3] = 1; //Current ID
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
|
|
|
gTasks[taskId].data[6] = AddItemIconSprite(ITEM_TAG, ITEM_TAG, gTasks[taskId].data[3]);
|
2021-11-28 20:28:54 +01:00
|
|
|
gSprites[gTasks[taskId].data[6]].x2 = DEBUG_NUMBER_ICON_X+10;
|
|
|
|
gSprites[gTasks[taskId].data[6]].y2 = DEBUG_NUMBER_ICON_Y+10;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0;
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Item_SelectId(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[3] >= ITEMS_COUNT)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = ITEMS_COUNT - 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < DEBUG_NUMBER_DIGITS_ITEMS - 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
CopyItemName(gTasks[taskId].data[3], gStringVar1);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEMS);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_ItemID);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
FreeSpriteTilesByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpritePaletteByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpriteOamMatrix(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
DestroySprite(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
gTasks[taskId].data[6] = AddItemIconSprite(ITEM_TAG, ITEM_TAG, gTasks[taskId].data[3]);
|
2021-11-28 20:28:54 +01:00
|
|
|
gSprites[gTasks[taskId].data[6]].x2 = DEBUG_NUMBER_ICON_X+10;
|
|
|
|
gSprites[gTasks[taskId].data[6]].y2 = DEBUG_NUMBER_ICON_Y+10;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0;
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[5] = gTasks[taskId].data[3];
|
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEM_QUANTITY);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_ItemQuantity);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Item_SelectQuantity;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
FreeSpriteTilesByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpritePaletteByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpriteOamMatrix(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
DestroySprite(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Item_SelectQuantity(u8 taskId)
|
|
|
|
{
|
2023-03-07 12:20:36 +01:00
|
|
|
u32 itemId = gTasks[taskId].data[5];
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2023-03-07 12:20:36 +01:00
|
|
|
u32 maxCapacity = (ItemId_GetPocket(itemId) - 1 == BERRIES_POCKET) ? MAX_BERRY_CAPACITY : MAX_BAG_ITEM_CAPACITY;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2023-03-07 12:20:36 +01:00
|
|
|
if (gTasks[taskId].data[3] > maxCapacity)
|
|
|
|
gTasks[taskId].data[3] = maxCapacity;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < 2)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEM_QUANTITY);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_ItemQuantity);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
FreeSpriteTilesByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpritePaletteByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpriteOamMatrix(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
DestroySprite(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
|
|
|
|
PlaySE(MUS_OBTAIN_ITEM);
|
2023-03-07 12:20:36 +01:00
|
|
|
AddBagItem(itemId, gTasks[taskId].data[3]);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
FreeSpriteTilesByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpritePaletteByTag(ITEM_TAG); //Destroy item icon
|
|
|
|
FreeSpriteOamMatrix(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
DestroySprite(&gSprites[gTasks[taskId].data[6]]); //Destroy item icon
|
|
|
|
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-16 10:32:17 +01:00
|
|
|
//TMs
|
|
|
|
static void DebugAction_Give_AllTMs(u8 taskId)
|
|
|
|
{
|
|
|
|
u16 i;
|
|
|
|
PlayFanfare(MUS_OBTAIN_TMHM);
|
2022-09-03 21:22:15 -04:00
|
|
|
for (i = ITEM_TM01; i <= ITEM_HM08; i++)
|
|
|
|
{
|
|
|
|
if (ItemIdToBattleMoveId(i) != MOVE_NONE && !CheckBagHasItem(i, 1))
|
2020-11-16 10:32:17 +01:00
|
|
|
AddBagItem(i, 1);
|
2022-09-03 21:22:15 -04:00
|
|
|
}
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
ScriptContext_Enable();
|
2020-11-16 10:32:17 +01:00
|
|
|
}
|
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
//Pokemon
|
2020-11-27 21:12:35 +01:00
|
|
|
static void ResetMonDataStruct(struct DebugMonData *sDebugMonData)
|
|
|
|
{
|
|
|
|
sDebugMonData->mon_speciesId = 1;
|
|
|
|
sDebugMonData->mon_level = 1;
|
|
|
|
sDebugMonData->isShiny = 0;
|
|
|
|
sDebugMonData->mon_natureId = 0;
|
|
|
|
sDebugMonData->mon_abilityNum = 0;
|
|
|
|
sDebugMonData->mon_iv_hp = 0;
|
|
|
|
sDebugMonData->mon_iv_atk = 0;
|
|
|
|
sDebugMonData->mon_iv_def = 0;
|
|
|
|
sDebugMonData->mon_iv_speed = 0;
|
|
|
|
sDebugMonData->mon_iv_satk = 0;
|
|
|
|
sDebugMonData->mon_iv_sdef = 0;
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_Give_PokemonSimple(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
//Mon data struct
|
|
|
|
sDebugMonData = AllocZeroed(sizeof(struct DebugMonData));
|
|
|
|
ResetMonDataStruct(sDebugMonData);
|
|
|
|
|
|
|
|
//Window initialization
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugNumberDisplayWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial ID
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[0]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, 1, STR_CONV_MODE_LEADING_ZEROS, 3);
|
2020-11-27 21:12:35 +01:00
|
|
|
StringCopy(gStringVar1, gSpeciesNames[1]);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonID);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
//Set task data
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectId;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
|
|
|
gTasks[taskId].data[3] = 1; //Current ID
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
2020-11-27 21:12:35 +01:00
|
|
|
gTasks[taskId].data[5] = 0; //Complex?
|
|
|
|
FreeMonIconPalettes(); //Free space for new pallete
|
2020-10-27 09:07:06 +01:00
|
|
|
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
2022-09-03 21:22:15 -04:00
|
|
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0); //Create pokemon sprite
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0; //Mon Icon ID
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_PokemonComplex(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
//Mon data struct
|
|
|
|
sDebugMonData = AllocZeroed(sizeof(struct DebugMonData));
|
|
|
|
ResetMonDataStruct(sDebugMonData);
|
|
|
|
|
|
|
|
//Window initialization
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
|
|
|
windowId = AddWindow(&sDebugNumberDisplayWindowTemplate);
|
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial ID
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[0]);
|
2020-11-27 21:12:35 +01:00
|
|
|
ConvertIntToDecimalStringN(gStringVar3, 1, STR_CONV_MODE_LEADING_ZEROS, 4);
|
|
|
|
StringCopy(gStringVar1, gSpeciesNames[1]);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonID);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectId;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
|
|
|
gTasks[taskId].data[3] = 1; //Current ID
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
2020-11-27 21:12:35 +01:00
|
|
|
gTasks[taskId].data[5] = 1; //Complex?
|
|
|
|
FreeMonIconPalettes(); //Free space for new palletes
|
2020-10-26 21:12:18 +01:00
|
|
|
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
2022-09-03 21:22:15 -04:00
|
|
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0); //Create pokemon sprite
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0; //Mon Icon ID
|
2020-11-27 21:12:35 +01:00
|
|
|
gTasks[taskId].data[7] = 0; //iterator
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Give_Pokemon_SelectId(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] >= NUM_SPECIES)
|
2021-05-24 10:19:22 +02:00
|
|
|
gTasks[taskId].data[3] = NUM_SPECIES - 1;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < DEBUG_NUMBER_DIGITS_ITEMS - 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
StringCopy(gStringVar1, gSpeciesNames[gTasks[taskId].data[3]]); //CopyItemName(gTasks[taskId].data[3], gStringVar1);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2020-11-27 21:12:35 +01:00
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 4);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonID);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
FreeAndDestroyMonIconSprite(&gSprites[gTasks[taskId].data[6]]);
|
2020-10-26 21:12:18 +01:00
|
|
|
FreeMonIconPalettes(); //Free space for new pallete
|
|
|
|
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
2022-09-03 21:22:15 -04:00
|
|
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0); //Create pokemon sprite
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0;
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
sDebugMonData->mon_speciesId = gTasks[taskId].data[3]; //Species ID
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 3);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonLevel);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectLevel;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
2020-10-26 21:12:18 +01:00
|
|
|
FreeMonIconPalettes();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
FreeAndDestroyMonIconSprite(&gSprites[gTasks[taskId].data[6]]); //Destroy pokemon sprite
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Pokemon_SelectLevel(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > 100)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 100;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < 2)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar1, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 3);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonLevel);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2020-10-26 21:12:18 +01:00
|
|
|
FreeMonIconPalettes();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
FreeAndDestroyMonIconSprite(&gSprites[gTasks[taskId].data[6]]); //Destroy pokemon sprite
|
2020-11-27 21:12:35 +01:00
|
|
|
if (gTasks[taskId].data[5] == 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(MUS_LEVEL_UP);
|
2020-11-27 21:12:35 +01:00
|
|
|
ScriptGiveMon(sDebugMonData->mon_speciesId, gTasks[taskId].data[3], ITEM_NONE, 0,0,0);
|
2023-03-08 15:56:16 -03:00
|
|
|
// Set flag for user convenience
|
2022-12-11 22:09:23 +01:00
|
|
|
FlagSet(FLAG_SYS_POKEMON_GET);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
2020-11-27 21:12:35 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
sDebugMonData->mon_level = gTasks[taskId].data[3]; //Level
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 0);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringCopyPadded(gStringVar2, sDebugText_Flags_FlagUnset, CHAR_SPACE, 15);
|
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonShiny);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectShiny;
|
|
|
|
}
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
2020-10-26 21:12:18 +01:00
|
|
|
FreeMonIconPalettes();
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
FreeAndDestroyMonIconSprite(&gSprites[gTasks[taskId].data[6]]); //Destroy pokemon sprite
|
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//If complex
|
|
|
|
static void DebugAction_Give_Pokemon_SelectShiny(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > 1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
}
|
|
|
|
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] == 1)
|
2022-09-20 02:31:20 -03:00
|
|
|
StringCopyPadded(gStringVar2, sDebugText_Flags_FlagSet, CHAR_SPACE, 15);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
else
|
2022-09-20 02:31:20 -03:00
|
|
|
StringCopyPadded(gStringVar2, sDebugText_Flags_FlagUnset, CHAR_SPACE, 15);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 0);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonShiny);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
sDebugMonData->isShiny = gTasks[taskId].data[3]; //isShiny
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
|
|
|
StringCopy(gStringVar1, gNatureNamePointers[0]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonNature);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectNature;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Pokemon_SelectNature(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > NUM_NATURES-1)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = NUM_NATURES-1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-14 14:51:03 +02:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
|
|
|
StringCopy(gStringVar1, gNatureNamePointers[gTasks[taskId].data[3]]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonNature);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2020-11-16 10:32:17 +01:00
|
|
|
u8 abilityId;
|
2020-11-27 21:12:35 +01:00
|
|
|
sDebugMonData->mon_natureId = gTasks[taskId].data[3]; //NatureId
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].data[3] = 0;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
2020-11-27 21:12:35 +01:00
|
|
|
abilityId = GetAbilityBySpecies(sDebugMonData->mon_speciesId, 0);
|
2020-11-16 10:32:17 +01:00
|
|
|
StringCopy(gStringVar1, gAbilityNames[abilityId]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonAbility);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectAbility;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Pokemon_SelectAbility(u8 taskId)
|
|
|
|
{
|
2023-05-12 14:02:14 +02:00
|
|
|
u16 abilityId;
|
2022-09-03 21:22:15 -04:00
|
|
|
u8 abilityCount = NUM_ABILITY_SLOTS - 1; //-1 for proper iteration
|
2021-06-30 10:44:09 +02:00
|
|
|
u8 i = 0;
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > abilityCount)
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].data[3] = abilityCount;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].data[3] = 0;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
|
2022-09-05 11:15:18 +02:00
|
|
|
while (GetAbilityBySpecies(sDebugMonData->mon_speciesId, gTasks[taskId].data[3] - i) == ABILITY_NONE && gTasks[taskId].data[3] - i < NUM_ABILITY_SLOTS)
|
2021-06-30 10:44:09 +02:00
|
|
|
{
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
abilityId = GetAbilityBySpecies(sDebugMonData->mon_speciesId, gTasks[taskId].data[3] - i);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
2020-11-16 10:32:17 +01:00
|
|
|
StringCopy(gStringVar1, gAbilityNames[abilityId]);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonAbility);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2021-06-30 10:44:09 +02:00
|
|
|
sDebugMonData->mon_abilityNum = gTasks[taskId].data[3] - i; //AbilityNum
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_0);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectIVs;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Pokemon_SelectIVs(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > 31)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 31;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < 2)
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
2020-11-27 21:12:35 +01:00
|
|
|
switch (gTasks[taskId].data[7])
|
|
|
|
{
|
|
|
|
case 0:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_0);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 1:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_1);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 2:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_2);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 3:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_3);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 4:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_4);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 5:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_5);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
//If A or B button
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
switch (gTasks[taskId].data[7])
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
sDebugMonData->mon_iv_hp = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
sDebugMonData->mon_iv_atk = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
sDebugMonData->mon_iv_def = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
sDebugMonData->mon_iv_speed = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
sDebugMonData->mon_iv_satk = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
sDebugMonData->mon_iv_sdef = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
}
|
2020-11-16 10:32:17 +01:00
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
//Check if all IVs set
|
|
|
|
if (gTasks[taskId].data[7] != 5)
|
|
|
|
{
|
|
|
|
gTasks[taskId].data[7] += 1;
|
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
2020-11-16 10:32:17 +01:00
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 2);
|
|
|
|
StringCopyPadded(gStringVar3, gStringVar3, CHAR_SPACE, 15);
|
|
|
|
switch (gTasks[taskId].data[7])
|
|
|
|
{
|
|
|
|
case 0:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_0);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 1:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_1);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 2:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_2);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 3:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_3);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 4:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_4);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
case 5:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonIV_5);
|
2020-11-27 21:12:35 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_SelectIVs;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
gTasks[taskId].data[7] = 0; //Reset iterator
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
StringCopy(gStringVar1, gMoveNames[gTasks[taskId].data[3]]);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 3);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_0);
|
2020-11-27 21:12:35 +01:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_Move;
|
|
|
|
}
|
2020-11-16 10:32:17 +01:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
2020-11-16 10:32:17 +01:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Pokemon_Move(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] >= MOVES_COUNT)
|
2022-03-07 21:17:31 -03:00
|
|
|
gTasks[taskId].data[3] = MOVES_COUNT - 1;
|
2020-11-16 10:32:17 +01:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 0)
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < 3)
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
StringCopy(gStringVar1, gMoveNames[gTasks[taskId].data[3]]);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 3);
|
2020-11-27 21:12:35 +01:00
|
|
|
switch (gTasks[taskId].data[7])
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
case 0:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_0);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
2020-11-27 21:12:35 +01:00
|
|
|
case 1:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_1);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
2020-11-27 21:12:35 +01:00
|
|
|
case 2:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_2);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
2020-11-27 21:12:35 +01:00
|
|
|
case 3:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_3);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
//If MOVE_NONE selected, stop asking for additional moves
|
2020-11-16 10:32:17 +01:00
|
|
|
if (gTasks[taskId].data[3] == 0)
|
2020-11-27 21:12:35 +01:00
|
|
|
gTasks[taskId].data[7] = 4;
|
2020-11-16 10:32:17 +01:00
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
//Set current value
|
|
|
|
switch (gTasks[taskId].data[7])
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
sDebugMonData->mon_move_0 = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
sDebugMonData->mon_move_1 = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
sDebugMonData->mon_move_2 = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
sDebugMonData->mon_move_3 = gTasks[taskId].data[3];
|
|
|
|
break;
|
|
|
|
}
|
2020-11-16 10:32:17 +01:00
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
//If NOT last move or selected MOVE_NONE ask for next move, else make mon
|
|
|
|
if (gTasks[taskId].data[7] < 3)
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
gTasks[taskId].data[7] += 1;
|
2020-11-16 10:32:17 +01:00
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
|
|
|
StringCopy(gStringVar1, gMoveNames[gTasks[taskId].data[3]]);
|
|
|
|
StringCopyPadded(gStringVar1, gStringVar1, CHAR_SPACE, 15);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, 3);
|
2020-11-27 21:12:35 +01:00
|
|
|
switch (gTasks[taskId].data[7])
|
2020-11-16 10:32:17 +01:00
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
case 0:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_0);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
2020-11-27 21:12:35 +01:00
|
|
|
case 1:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_1);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
2020-11-27 21:12:35 +01:00
|
|
|
case 2:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_2);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
2020-11-27 21:12:35 +01:00
|
|
|
case 3:
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_PokemonMove_3);
|
2020-11-16 10:32:17 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_Move;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] = 0;
|
|
|
|
gTasks[taskId].data[4] = 0;
|
|
|
|
|
|
|
|
PlaySE(MUS_LEVEL_UP);
|
|
|
|
gTasks[taskId].func = DebugAction_Give_Pokemon_ComplexCreateMon;
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
static void DebugAction_Give_Pokemon_ComplexCreateMon(u8 taskId) //https://github.com/ghoulslash/pokeemerald/tree/custom-givemon
|
|
|
|
{
|
|
|
|
u16 nationalDexNum;
|
|
|
|
int sentToPc;
|
|
|
|
struct Pokemon mon;
|
|
|
|
u8 i;
|
2020-11-16 10:32:17 +01:00
|
|
|
u16 moves[4];
|
2020-11-27 21:12:35 +01:00
|
|
|
u8 IVs[6];
|
|
|
|
u8 iv_val;
|
|
|
|
u16 species = sDebugMonData->mon_speciesId;
|
|
|
|
u8 level = sDebugMonData->mon_level;
|
|
|
|
u8 isShiny = sDebugMonData->isShiny; //Shiny: no 0, yes 1
|
|
|
|
u8 nature = sDebugMonData->mon_natureId;
|
|
|
|
u8 abilityNum = sDebugMonData->mon_abilityNum;
|
|
|
|
moves[0] = sDebugMonData->mon_move_0;
|
|
|
|
moves[1] = sDebugMonData->mon_move_1;
|
|
|
|
moves[2] = sDebugMonData->mon_move_2;
|
|
|
|
moves[3] = sDebugMonData->mon_move_3;
|
|
|
|
IVs[0] = sDebugMonData->mon_iv_hp;
|
|
|
|
IVs[1] = sDebugMonData->mon_iv_atk;
|
|
|
|
IVs[2] = sDebugMonData->mon_iv_def;
|
|
|
|
IVs[3] = sDebugMonData->mon_iv_speed;
|
|
|
|
IVs[4] = sDebugMonData->mon_iv_satk;
|
|
|
|
IVs[5] = sDebugMonData->mon_iv_sdef;
|
|
|
|
|
2020-11-16 10:32:17 +01:00
|
|
|
//Nature
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
if (nature == NUM_NATURES || nature == 0xFF)
|
|
|
|
nature = Random() % NUM_NATURES;
|
|
|
|
|
2022-09-03 21:22:15 -04:00
|
|
|
//Shininess
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
if (isShiny == 1)
|
2020-11-27 21:12:35 +01:00
|
|
|
{
|
|
|
|
u32 personality;
|
|
|
|
u32 otid = gSaveBlock2Ptr->playerTrainerId[0]
|
|
|
|
| (gSaveBlock2Ptr->playerTrainerId[1] << 8)
|
|
|
|
| (gSaveBlock2Ptr->playerTrainerId[2] << 16)
|
|
|
|
| (gSaveBlock2Ptr->playerTrainerId[3] << 24);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
do
|
|
|
|
{
|
|
|
|
personality = Random32();
|
|
|
|
personality = ((((Random() % 8) ^ (HIHALF(otid) ^ LOHALF(otid))) ^ LOHALF(personality)) << 16) | LOHALF(personality);
|
|
|
|
} while (nature != GetNatureFromPersonality(personality));
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
CreateMon(&mon, species, level, 32, 1, personality, OT_ID_PRESET, otid);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
else
|
|
|
|
CreateMonWithNature(&mon, species, level, 32, nature);
|
|
|
|
|
2022-09-03 21:22:15 -04:00
|
|
|
//IVs
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
for (i = 0; i < NUM_STATS; i++)
|
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
iv_val = IVs[i];
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
if (iv_val != 32 && iv_val != 0xFF)
|
|
|
|
SetMonData(&mon, MON_DATA_HP_IV + i, &iv_val);
|
|
|
|
}
|
|
|
|
CalculateMonStats(&mon);
|
|
|
|
|
2020-11-16 10:32:17 +01:00
|
|
|
//Moves
|
|
|
|
for (i = 0; i < MAX_MON_MOVES; i++)
|
|
|
|
{
|
2022-03-07 21:17:31 -03:00
|
|
|
if (moves[i] == 0 || moves[i] == 0xFF || moves[i] >= MOVES_COUNT)
|
2020-11-16 10:32:17 +01:00
|
|
|
continue;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2020-11-16 10:32:17 +01:00
|
|
|
SetMonMoveSlot(&mon, moves[i], i);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2020-11-16 10:32:17 +01:00
|
|
|
//Ability
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
if (abilityNum == 0xFF || GetAbilityBySpecies(species, abilityNum) == 0)
|
|
|
|
{
|
|
|
|
do {
|
|
|
|
abilityNum = Random() % 3; // includes hidden abilities
|
|
|
|
} while (GetAbilityBySpecies(species, abilityNum) == 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
SetMonData(&mon, MON_DATA_ABILITY_NUM, &abilityNum);
|
|
|
|
|
|
|
|
// give player the mon
|
|
|
|
SetMonData(&mon, MON_DATA_OT_NAME, gSaveBlock2Ptr->playerName);
|
|
|
|
SetMonData(&mon, MON_DATA_OT_GENDER, &gSaveBlock2Ptr->playerGender);
|
|
|
|
for (i = 0; i < PARTY_SIZE; i++)
|
|
|
|
{
|
|
|
|
if (GetMonData(&gPlayerParty[i], MON_DATA_SPECIES, NULL) == SPECIES_NONE)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (i >= PARTY_SIZE)
|
|
|
|
sentToPc = SendMonToPC(&mon);
|
|
|
|
else
|
|
|
|
{
|
|
|
|
sentToPc = MON_GIVEN_TO_PARTY;
|
|
|
|
CopyMon(&gPlayerParty[i], &mon, sizeof(mon));
|
|
|
|
gPlayerPartyCount = i + 1;
|
|
|
|
}
|
|
|
|
|
2020-11-16 10:32:17 +01:00
|
|
|
//Pokedex entry
|
2022-09-13 16:26:36 -03:00
|
|
|
nationalDexNum = SpeciesToNationalPokedexNum(species);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
switch(sentToPc)
|
|
|
|
{
|
2020-11-27 21:12:35 +01:00
|
|
|
case MON_GIVEN_TO_PARTY:
|
|
|
|
case MON_GIVEN_TO_PC:
|
|
|
|
GetSetPokedexFlag(nationalDexNum, FLAG_SET_SEEN);
|
|
|
|
GetSetPokedexFlag(nationalDexNum, FLAG_SET_CAUGHT);
|
|
|
|
break;
|
|
|
|
case MON_CANT_GIVE:
|
|
|
|
break;
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
|
2023-03-08 15:56:16 -03:00
|
|
|
// Set flag for user convenience
|
2022-12-11 22:09:23 +01:00
|
|
|
FlagSet(FLAG_SYS_POKEMON_GET);
|
|
|
|
|
2020-11-27 21:12:35 +01:00
|
|
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId); //return sentToPc;
|
|
|
|
}
|
|
|
|
|
2021-05-07 11:44:03 +02:00
|
|
|
static void DebugAction_Give_MaxMoney(u8 taskId)
|
|
|
|
{
|
2023-05-20 05:25:59 -07:00
|
|
|
SetMoney(&gSaveBlock1Ptr->money, MAX_MONEY);
|
2021-05-07 11:44:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Give_MaxCoins(u8 taskId)
|
|
|
|
{
|
|
|
|
SetCoins(9999);
|
|
|
|
}
|
|
|
|
|
2022-08-29 14:48:40 +02:00
|
|
|
static void DebugAction_Give_MaxBattlePoints(u8 taskId)
|
|
|
|
{
|
|
|
|
gSaveBlock2Ptr->frontier.battlePoints = MAX_BATTLE_FRONTIER_POINTS;
|
|
|
|
}
|
|
|
|
|
2021-05-07 11:44:03 +02:00
|
|
|
static void DebugAction_Give_DayCareEgg(u8 taskId)
|
|
|
|
{
|
|
|
|
TriggerPendingDaycareEgg();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Give_FillPC(u8 taskId) //Credit: Sierraffinity
|
|
|
|
{
|
|
|
|
int boxId, boxPosition;
|
|
|
|
u32 personality;
|
|
|
|
struct BoxPokemon boxMon;
|
2023-03-08 15:56:16 -03:00
|
|
|
u16 species = SPECIES_BULBASAUR;
|
2021-05-07 11:44:03 +02:00
|
|
|
|
|
|
|
personality = Random32();
|
|
|
|
|
|
|
|
CreateBoxMon(&boxMon,
|
2023-03-08 15:56:16 -03:00
|
|
|
species,
|
2021-05-07 11:44:03 +02:00
|
|
|
100,
|
|
|
|
32,
|
|
|
|
personality,
|
|
|
|
0,
|
|
|
|
OT_ID_PLAYER_ID,
|
|
|
|
0);
|
|
|
|
|
|
|
|
for (boxId = 0; boxId < TOTAL_BOXES_COUNT; boxId++)
|
|
|
|
{
|
|
|
|
for (boxPosition = 0; boxPosition < IN_BOX_COUNT; boxPosition++)
|
|
|
|
{
|
|
|
|
if (!GetBoxMonData(&gPokemonStoragePtr->boxes[boxId][boxPosition], MON_DATA_SANITY_HAS_SPECIES))
|
|
|
|
{
|
|
|
|
gPokemonStoragePtr->boxes[boxId][boxPosition] = boxMon;
|
2023-03-08 15:56:16 -03:00
|
|
|
SetBoxMonData(&gPokemonStoragePtr->boxes[boxId][boxPosition], MON_DATA_SPECIES, &species);
|
|
|
|
GetSetPokedexFlag(species, FLAG_SET_SEEN);
|
|
|
|
GetSetPokedexFlag(species, FLAG_SET_CAUGHT);
|
|
|
|
species++;
|
2021-05-07 11:44:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-08 15:56:16 -03:00
|
|
|
|
|
|
|
// Set flag for user convenience
|
|
|
|
FlagSet(FLAG_SYS_POKEMON_GET);
|
2021-05-07 11:44:03 +02:00
|
|
|
}
|
|
|
|
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
static void DebugAction_Give_CHEAT(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-08-29 19:13:11 +02:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(Debug_CheatStart);
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
}
|
|
|
|
|
2022-03-18 13:30:08 -04:00
|
|
|
static void DebugAction_AccessPC(u8 taskId)
|
|
|
|
{
|
2022-09-12 12:12:26 +02:00
|
|
|
Debug_DestroyMenu_Full(taskId);
|
2022-09-24 17:26:41 -03:00
|
|
|
LockPlayerFieldControls();
|
|
|
|
ScriptContext_SetupScript(EventScript_PC);
|
2022-03-18 13:30:08 -04:00
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
|
|
|
|
2021-06-22 12:38:00 +02:00
|
|
|
// *******************************
|
|
|
|
// Sound Scripts
|
2022-09-19 04:19:19 -03:00
|
|
|
static const u8 *const sBGMNames[];
|
|
|
|
static const u8 *const sSENames[];
|
2021-06-22 12:38:00 +02:00
|
|
|
static void DebugAction_Sound_SE(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
2021-06-22 15:57:02 +02:00
|
|
|
windowId = AddWindow(&sDebugNumberDisplayLargeWindowTemplate);
|
2021-06-22 12:38:00 +02:00
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial ID
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[0]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, 1, STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEMS);
|
2022-09-19 04:19:19 -03:00
|
|
|
StringCopyPadded(gStringVar1, sSENames[0], CHAR_SPACE, 35);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Sound_SE_ID);
|
2021-06-22 12:38:00 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
StopMapMusic(); //Stop map music to better hear sounds
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Sound_SE_SelectId;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
2021-06-22 18:29:04 +02:00
|
|
|
gTasks[taskId].data[3] = 1; //Current ID
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
|
|
|
gTasks[taskId].data[5] = gTasks[taskId].data[3]; //Last song played (for stopping)
|
2021-06-22 12:38:00 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Sound_SE_SelectId(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > END_SE)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[3] = END_SE;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < 1)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[3] = 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < DEBUG_NUMBER_DIGITS_ITEMS - 1)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
2022-09-19 04:19:19 -03:00
|
|
|
StringCopyPadded(gStringVar1, sSENames[gTasks[taskId].data[3]-1], CHAR_SPACE, 35);
|
2021-06-22 12:38:00 +02:00
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEMS);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Sound_SE_ID);
|
2021-06-22 12:38:00 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2021-06-22 18:29:04 +02:00
|
|
|
m4aSongNumStop(gTasks[taskId].data[5]);
|
|
|
|
gTasks[taskId].data[5] = gTasks[taskId].data[3];
|
|
|
|
m4aSongNumStart(gTasks[taskId].data[3]);
|
2021-06-22 12:38:00 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2021-06-22 18:29:04 +02:00
|
|
|
m4aSongNumStop(gTasks[taskId].data[5]);
|
2021-06-22 12:38:00 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void DebugAction_Sound_MUS(u8 taskId)
|
|
|
|
{
|
|
|
|
u8 windowId;
|
|
|
|
|
|
|
|
ClearStdWindowAndFrame(gTasks[taskId].data[1], TRUE);
|
|
|
|
RemoveWindow(gTasks[taskId].data[1]);
|
|
|
|
|
|
|
|
HideMapNamePopUpWindow();
|
|
|
|
LoadMessageBoxAndBorderGfx();
|
2021-06-22 15:57:02 +02:00
|
|
|
windowId = AddWindow(&sDebugNumberDisplayLargeWindowTemplate);
|
2021-06-22 12:38:00 +02:00
|
|
|
DrawStdWindowFrame(windowId, FALSE);
|
|
|
|
|
|
|
|
CopyWindowToVram(windowId, 3);
|
|
|
|
|
|
|
|
//Display initial ID
|
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[0]);
|
|
|
|
ConvertIntToDecimalStringN(gStringVar3, START_MUS, STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEMS);
|
2022-09-19 04:19:19 -03:00
|
|
|
StringCopyPadded(gStringVar1, sBGMNames[0], CHAR_SPACE, 35);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Sound_MUS_ID);
|
2021-06-22 12:38:00 +02:00
|
|
|
AddTextPrinterParameterized(windowId, 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
|
|
|
|
StopMapMusic(); //Stop map music to better hear new music
|
|
|
|
|
|
|
|
gTasks[taskId].func = DebugAction_Sound_MUS_SelectId;
|
|
|
|
gTasks[taskId].data[2] = windowId;
|
2021-06-22 18:29:04 +02:00
|
|
|
gTasks[taskId].data[3] = START_MUS; //Current ID
|
|
|
|
gTasks[taskId].data[4] = 0; //Digit Selected
|
|
|
|
gTasks[taskId].data[5] = gTasks[taskId].data[3]; //Last song played (for stopping)
|
2021-06-22 12:38:00 +02:00
|
|
|
}
|
|
|
|
static void DebugAction_Sound_MUS_SelectId(u8 taskId)
|
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_ANY))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_UP))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] > END_MUS)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[3] = END_MUS;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_DOWN))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
gTasks[taskId].data[3] -= sPowersOfTen[gTasks[taskId].data[4]];
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[3] < START_MUS)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[3] = START_MUS;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_LEFT))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] > 0)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[4] -= 1;
|
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(DPAD_RIGHT))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2022-09-03 21:22:15 -04:00
|
|
|
if (gTasks[taskId].data[4] < DEBUG_NUMBER_DIGITS_ITEMS - 1)
|
2021-06-22 12:38:00 +02:00
|
|
|
gTasks[taskId].data[4] += 1;
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2021-06-22 12:38:00 +02:00
|
|
|
StringCopy(gStringVar2, gText_DigitIndicator[gTasks[taskId].data[4]]);
|
2022-09-19 04:19:19 -03:00
|
|
|
StringCopyPadded(gStringVar1, sBGMNames[gTasks[taskId].data[3]-START_MUS], CHAR_SPACE, 35);
|
2021-06-22 12:38:00 +02:00
|
|
|
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].data[3], STR_CONV_MODE_LEADING_ZEROS, DEBUG_NUMBER_DIGITS_ITEMS);
|
2022-09-20 02:31:20 -03:00
|
|
|
StringExpandPlaceholders(gStringVar4, sDebugText_Sound_MUS_ID);
|
2021-06-22 12:38:00 +02:00
|
|
|
AddTextPrinterParameterized(gTasks[taskId].data[2], 1, gStringVar4, 1, 1, 0, NULL);
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2022-09-25 13:05:18 -03:00
|
|
|
if (JOY_NEW(A_BUTTON))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
2021-06-22 18:29:04 +02:00
|
|
|
m4aSongNumStop(gTasks[taskId].data[5]);
|
|
|
|
gTasks[taskId].data[5] = gTasks[taskId].data[3];
|
|
|
|
m4aSongNumStart(gTasks[taskId].data[3]);
|
2021-06-22 12:38:00 +02:00
|
|
|
}
|
2022-09-25 13:05:18 -03:00
|
|
|
else if (JOY_NEW(B_BUTTON))
|
2021-06-22 12:38:00 +02:00
|
|
|
{
|
|
|
|
PlaySE(SE_SELECT);
|
2021-06-22 18:29:04 +02:00
|
|
|
// m4aSongNumStop(gTasks[taskId].data[5]); //Uncomment if music should stop after leaving menu
|
2021-06-22 12:38:00 +02:00
|
|
|
DebugAction_DestroyExtraWindow(taskId);
|
|
|
|
}
|
|
|
|
}
|
Implementation if Pyredrid and AsparagusEduardo debug menu plus huge rewrite and tons of additions
V2: Fly, Warp, Flags, Vars, give items, give pkm 2 versions
Improved cheats, reworked the vars system
vars function now starts at VARS_START and end VARS_END
Figured out how to display FieldMessages, reimplemented CheckSafeBlock, cleanup
DebugAction_DestroyExtraWindow instead of multiple, renamed text variables
cleanup + pokemon simple
give pokemon complex nearly done
Complex pkm works, items now with icons
if statement cleanup
alter build tools to include maps per map group
Warp functionallity
added hex value to flags and vars
cleanup
Credits
2020-09-26 00:51:02 +02:00
|
|
|
|
2021-06-22 15:57:02 +02:00
|
|
|
#define SOUND_LIST_BGM \
|
2022-09-09 16:44:34 -04:00
|
|
|
X(MUS_LITTLEROOT_TEST) \
|
|
|
|
X(MUS_GSC_ROUTE38) \
|
|
|
|
X(MUS_CAUGHT) \
|
|
|
|
X(MUS_VICTORY_WILD) \
|
|
|
|
X(MUS_VICTORY_GYM_LEADER) \
|
|
|
|
X(MUS_VICTORY_LEAGUE) \
|
|
|
|
X(MUS_C_COMM_CENTER) \
|
|
|
|
X(MUS_GSC_PEWTER) \
|
|
|
|
X(MUS_C_VS_LEGEND_BEAST) \
|
|
|
|
X(MUS_ROUTE101) \
|
|
|
|
X(MUS_ROUTE110) \
|
|
|
|
X(MUS_ROUTE120) \
|
|
|
|
X(MUS_PETALBURG) \
|
|
|
|
X(MUS_OLDALE) \
|
|
|
|
X(MUS_GYM) \
|
|
|
|
X(MUS_SURF) \
|
|
|
|
X(MUS_PETALBURG_WOODS) \
|
|
|
|
X(MUS_LEVEL_UP) \
|
|
|
|
X(MUS_HEAL) \
|
|
|
|
X(MUS_OBTAIN_BADGE) \
|
|
|
|
X(MUS_OBTAIN_ITEM) \
|
|
|
|
X(MUS_EVOLVED) \
|
|
|
|
X(MUS_OBTAIN_TMHM) \
|
|
|
|
X(MUS_LILYCOVE_MUSEUM) \
|
|
|
|
X(MUS_ROUTE122) \
|
|
|
|
X(MUS_OCEANIC_MUSEUM) \
|
|
|
|
X(MUS_EVOLUTION_INTRO) \
|
|
|
|
X(MUS_EVOLUTION) \
|
|
|
|
X(MUS_MOVE_DELETED) \
|
|
|
|
X(MUS_ENCOUNTER_GIRL) \
|
|
|
|
X(MUS_ENCOUNTER_MALE) \
|
|
|
|
X(MUS_ABANDONED_SHIP) \
|
|
|
|
X(MUS_FORTREE) \
|
|
|
|
X(MUS_BIRCH_LAB) \
|
|
|
|
X(MUS_B_TOWER_RS) \
|
|
|
|
X(MUS_ENCOUNTER_SWIMMER) \
|
|
|
|
X(MUS_CAVE_OF_ORIGIN) \
|
|
|
|
X(MUS_OBTAIN_BERRY) \
|
|
|
|
X(MUS_AWAKEN_LEGEND) \
|
|
|
|
X(MUS_SLOTS_JACKPOT) \
|
|
|
|
X(MUS_SLOTS_WIN) \
|
|
|
|
X(MUS_TOO_BAD) \
|
|
|
|
X(MUS_ROULETTE) \
|
|
|
|
X(MUS_LINK_CONTEST_P1) \
|
|
|
|
X(MUS_LINK_CONTEST_P2) \
|
|
|
|
X(MUS_LINK_CONTEST_P3) \
|
|
|
|
X(MUS_LINK_CONTEST_P4) \
|
|
|
|
X(MUS_ENCOUNTER_RICH) \
|
|
|
|
X(MUS_VERDANTURF) \
|
|
|
|
X(MUS_RUSTBORO) \
|
|
|
|
X(MUS_POKE_CENTER) \
|
|
|
|
X(MUS_ROUTE104) \
|
|
|
|
X(MUS_ROUTE119) \
|
|
|
|
X(MUS_CYCLING) \
|
|
|
|
X(MUS_POKE_MART) \
|
|
|
|
X(MUS_LITTLEROOT) \
|
|
|
|
X(MUS_MT_CHIMNEY) \
|
|
|
|
X(MUS_ENCOUNTER_FEMALE) \
|
|
|
|
X(MUS_LILYCOVE) \
|
|
|
|
X(MUS_ROUTE111) \
|
|
|
|
X(MUS_HELP) \
|
|
|
|
X(MUS_UNDERWATER) \
|
|
|
|
X(MUS_VICTORY_TRAINER) \
|
|
|
|
X(MUS_TITLE) \
|
|
|
|
X(MUS_INTRO) \
|
|
|
|
X(MUS_ENCOUNTER_MAY) \
|
|
|
|
X(MUS_ENCOUNTER_INTENSE) \
|
|
|
|
X(MUS_ENCOUNTER_COOL) \
|
|
|
|
X(MUS_ROUTE113) \
|
|
|
|
X(MUS_ENCOUNTER_AQUA) \
|
|
|
|
X(MUS_FOLLOW_ME) \
|
|
|
|
X(MUS_ENCOUNTER_BRENDAN) \
|
|
|
|
X(MUS_EVER_GRANDE) \
|
|
|
|
X(MUS_ENCOUNTER_SUSPICIOUS) \
|
|
|
|
X(MUS_VICTORY_AQUA_MAGMA) \
|
|
|
|
X(MUS_CABLE_CAR) \
|
|
|
|
X(MUS_GAME_CORNER) \
|
|
|
|
X(MUS_DEWFORD) \
|
|
|
|
X(MUS_SAFARI_ZONE) \
|
|
|
|
X(MUS_VICTORY_ROAD) \
|
|
|
|
X(MUS_AQUA_MAGMA_HIDEOUT) \
|
|
|
|
X(MUS_SAILING) \
|
|
|
|
X(MUS_MT_PYRE) \
|
|
|
|
X(MUS_SLATEPORT) \
|
|
|
|
X(MUS_MT_PYRE_EXTERIOR) \
|
|
|
|
X(MUS_SCHOOL) \
|
|
|
|
X(MUS_HALL_OF_FAME) \
|
|
|
|
X(MUS_FALLARBOR) \
|
|
|
|
X(MUS_SEALED_CHAMBER) \
|
|
|
|
X(MUS_CONTEST_WINNER) \
|
|
|
|
X(MUS_CONTEST) \
|
|
|
|
X(MUS_ENCOUNTER_MAGMA) \
|
|
|
|
X(MUS_INTRO_BATTLE) \
|
|
|
|
X(MUS_WEATHER_KYOGRE) \
|
|
|
|
X(MUS_WEATHER_GROUDON) \
|
|
|
|
X(MUS_SOOTOPOLIS) \
|
|
|
|
X(MUS_CONTEST_RESULTS) \
|
|
|
|
X(MUS_HALL_OF_FAME_ROOM) \
|
|
|
|
X(MUS_TRICK_HOUSE) \
|
|
|
|
X(MUS_ENCOUNTER_TWINS) \
|
|
|
|
X(MUS_ENCOUNTER_ELITE_FOUR) \
|
|
|
|
X(MUS_ENCOUNTER_HIKER) \
|
|
|
|
X(MUS_CONTEST_LOBBY) \
|
|
|
|
X(MUS_ENCOUNTER_INTERVIEWER) \
|
|
|
|
X(MUS_ENCOUNTER_CHAMPION) \
|
|
|
|
X(MUS_CREDITS) \
|
|
|
|
X(MUS_END) \
|
|
|
|
X(MUS_B_FRONTIER) \
|
|
|
|
X(MUS_B_ARENA) \
|
|
|
|
X(MUS_OBTAIN_B_POINTS) \
|
|
|
|
X(MUS_REGISTER_MATCH_CALL) \
|
|
|
|
X(MUS_B_PYRAMID) \
|
|
|
|
X(MUS_B_PYRAMID_TOP) \
|
|
|
|
X(MUS_B_PALACE) \
|
|
|
|
X(MUS_RAYQUAZA_APPEARS) \
|
|
|
|
X(MUS_B_TOWER) \
|
|
|
|
X(MUS_OBTAIN_SYMBOL) \
|
|
|
|
X(MUS_B_DOME) \
|
|
|
|
X(MUS_B_PIKE) \
|
|
|
|
X(MUS_B_FACTORY) \
|
|
|
|
X(MUS_VS_RAYQUAZA) \
|
|
|
|
X(MUS_VS_FRONTIER_BRAIN) \
|
|
|
|
X(MUS_VS_MEW) \
|
|
|
|
X(MUS_B_DOME_LOBBY) \
|
|
|
|
X(MUS_VS_WILD) \
|
|
|
|
X(MUS_VS_AQUA_MAGMA) \
|
|
|
|
X(MUS_VS_TRAINER) \
|
|
|
|
X(MUS_VS_GYM_LEADER) \
|
|
|
|
X(MUS_VS_CHAMPION) \
|
|
|
|
X(MUS_VS_REGI) \
|
|
|
|
X(MUS_VS_KYOGRE_GROUDON) \
|
|
|
|
X(MUS_VS_RIVAL) \
|
|
|
|
X(MUS_VS_ELITE_FOUR) \
|
|
|
|
X(MUS_VS_AQUA_MAGMA_LEADER) \
|
|
|
|
X(MUS_RG_FOLLOW_ME) \
|
|
|
|
X(MUS_RG_GAME_CORNER) \
|
|
|
|
X(MUS_RG_ROCKET_HIDEOUT) \
|
|
|
|
X(MUS_RG_GYM) \
|
|
|
|
X(MUS_RG_JIGGLYPUFF) \
|
|
|
|
X(MUS_RG_INTRO_FIGHT) \
|
|
|
|
X(MUS_RG_TITLE) \
|
|
|
|
X(MUS_RG_CINNABAR) \
|
|
|
|
X(MUS_RG_LAVENDER) \
|
|
|
|
X(MUS_RG_HEAL) \
|
|
|
|
X(MUS_RG_CYCLING) \
|
|
|
|
X(MUS_RG_ENCOUNTER_ROCKET) \
|
|
|
|
X(MUS_RG_ENCOUNTER_GIRL) \
|
|
|
|
X(MUS_RG_ENCOUNTER_BOY) \
|
|
|
|
X(MUS_RG_HALL_OF_FAME) \
|
|
|
|
X(MUS_RG_VIRIDIAN_FOREST) \
|
|
|
|
X(MUS_RG_MT_MOON) \
|
|
|
|
X(MUS_RG_POKE_MANSION) \
|
|
|
|
X(MUS_RG_CREDITS) \
|
|
|
|
X(MUS_RG_ROUTE1) \
|
|
|
|
X(MUS_RG_ROUTE24) \
|
|
|
|
X(MUS_RG_ROUTE3) \
|
|
|
|
X(MUS_RG_ROUTE11) \
|
|
|
|
X(MUS_RG_VICTORY_ROAD) \
|
|
|
|
X(MUS_RG_VS_GYM_LEADER) \
|
|
|
|
X(MUS_RG_VS_TRAINER) \
|
|
|
|
X(MUS_RG_VS_WILD) \
|
|
|
|
X(MUS_RG_VS_CHAMPION) \
|
|
|
|
X(MUS_RG_PALLET) \
|
|
|
|
X(MUS_RG_OAK_LAB) \
|
|
|
|
X(MUS_RG_OAK) \
|
|
|
|
X(MUS_RG_POKE_CENTER) \
|
|
|
|
X(MUS_RG_SS_ANNE) \
|
|
|
|
X(MUS_RG_SURF) \
|
|
|
|
X(MUS_RG_POKE_TOWER) \
|
|
|
|
X(MUS_RG_SILPH) \
|
|
|
|
X(MUS_RG_FUCHSIA) \
|
|
|
|
X(MUS_RG_CELADON) \
|
|
|
|
X(MUS_RG_VICTORY_TRAINER) \
|
|
|
|
X(MUS_RG_VICTORY_WILD) \
|
|
|
|
X(MUS_RG_VICTORY_GYM_LEADER) \
|
|
|
|
X(MUS_RG_VERMILLION) \
|
|
|
|
X(MUS_RG_PEWTER) \
|
|
|
|
X(MUS_RG_ENCOUNTER_RIVAL) \
|
|
|
|
X(MUS_RG_RIVAL_EXIT) \
|
|
|
|
X(MUS_RG_DEX_RATING) \
|
|
|
|
X(MUS_RG_OBTAIN_KEY_ITEM) \
|
|
|
|
X(MUS_RG_CAUGHT_INTRO) \
|
|
|
|
X(MUS_RG_PHOTO) \
|
|
|
|
X(MUS_RG_GAME_FREAK) \
|
|
|
|
X(MUS_RG_CAUGHT) \
|
|
|
|
X(MUS_RG_NEW_GAME_INSTRUCT) \
|
|
|
|
X(MUS_RG_NEW_GAME_INTRO) \
|
|
|
|
X(MUS_RG_NEW_GAME_EXIT) \
|
|
|
|
X(MUS_RG_POKE_JUMP) \
|
|
|
|
X(MUS_RG_UNION_ROOM) \
|
|
|
|
X(MUS_RG_NET_CENTER) \
|
|
|
|
X(MUS_RG_MYSTERY_GIFT) \
|
|
|
|
X(MUS_RG_BERRY_PICK) \
|
|
|
|
X(MUS_RG_SEVII_CAVE) \
|
|
|
|
X(MUS_RG_TEACHY_TV_SHOW) \
|
|
|
|
X(MUS_RG_SEVII_ROUTE) \
|
|
|
|
X(MUS_RG_SEVII_DUNGEON) \
|
|
|
|
X(MUS_RG_SEVII_123) \
|
|
|
|
X(MUS_RG_SEVII_45) \
|
|
|
|
X(MUS_RG_SEVII_67) \
|
|
|
|
X(MUS_RG_POKE_FLUTE) \
|
|
|
|
X(MUS_RG_VS_DEOXYS) \
|
|
|
|
X(MUS_RG_VS_MEWTWO) \
|
|
|
|
X(MUS_RG_VS_LEGEND) \
|
|
|
|
X(MUS_RG_ENCOUNTER_GYM_LEADER) \
|
|
|
|
X(MUS_RG_ENCOUNTER_DEOXYS) \
|
|
|
|
X(MUS_RG_TRAINER_TOWER) \
|
|
|
|
X(MUS_RG_SLOW_PALLET) \
|
|
|
|
X(MUS_RG_TEACHY_TV_MENU) \
|
|
|
|
X(PH_TRAP_BLEND) \
|
|
|
|
X(PH_TRAP_HELD) \
|
|
|
|
X(PH_TRAP_SOLO) \
|
|
|
|
X(PH_FACE_BLEND) \
|
|
|
|
X(PH_FACE_HELD) \
|
|
|
|
X(PH_FACE_SOLO) \
|
|
|
|
X(PH_CLOTH_BLEND) \
|
|
|
|
X(PH_CLOTH_HELD) \
|
|
|
|
X(PH_CLOTH_SOLO) \
|
|
|
|
X(PH_DRESS_BLEND) \
|
|
|
|
X(PH_DRESS_HELD) \
|
|
|
|
X(PH_DRESS_SOLO) \
|
|
|
|
X(PH_FLEECE_BLEND) \
|
|
|
|
X(PH_FLEECE_HELD) \
|
|
|
|
X(PH_FLEECE_SOLO) \
|
|
|
|
X(PH_KIT_BLEND) \
|
|
|
|
X(PH_KIT_HELD) \
|
|
|
|
X(PH_KIT_SOLO) \
|
|
|
|
X(PH_PRICE_BLEND) \
|
|
|
|
X(PH_PRICE_HELD) \
|
|
|
|
X(PH_PRICE_SOLO) \
|
|
|
|
X(PH_LOT_BLEND) \
|
|
|
|
X(PH_LOT_HELD) \
|
|
|
|
X(PH_LOT_SOLO) \
|
|
|
|
X(PH_GOAT_BLEND) \
|
|
|
|
X(PH_GOAT_HELD) \
|
|
|
|
X(PH_GOAT_SOLO) \
|
|
|
|
X(PH_THOUGHT_BLEND) \
|
|
|
|
X(PH_THOUGHT_HELD) \
|
|
|
|
X(PH_THOUGHT_SOLO) \
|
|
|
|
X(PH_CHOICE_BLEND) \
|
|
|
|
X(PH_CHOICE_HELD) \
|
|
|
|
X(PH_CHOICE_SOLO) \
|
|
|
|
X(PH_MOUTH_BLEND) \
|
|
|
|
X(PH_MOUTH_HELD) \
|
|
|
|
X(PH_MOUTH_SOLO) \
|
|
|
|
X(PH_FOOT_BLEND) \
|
|
|
|
X(PH_FOOT_HELD) \
|
|
|
|
X(PH_FOOT_SOLO) \
|
|
|
|
X(PH_GOOSE_BLEND) \
|
|
|
|
X(PH_GOOSE_HELD) \
|
|
|
|
X(PH_GOOSE_SOLO) \
|
|
|
|
X(PH_STRUT_BLEND) \
|
|
|
|
X(PH_STRUT_HELD) \
|
|
|
|
X(PH_STRUT_SOLO) \
|
|
|
|
X(PH_CURE_BLEND) \
|
|
|
|
X(PH_CURE_HELD) \
|
|
|
|
X(PH_CURE_SOLO) \
|
|
|
|
X(PH_NURSE_BLEND) \
|
|
|
|
X(PH_NURSE_HELD) \
|
|
|
|
X(PH_NURSE_SOLO) \
|
2021-06-22 15:57:02 +02:00
|
|
|
|
|
|
|
#define SOUND_LIST_SE \
|
2022-09-09 16:44:34 -04:00
|
|
|
X(SE_USE_ITEM) \
|
|
|
|
X(SE_PC_LOGIN) \
|
|
|
|
X(SE_PC_OFF) \
|
|
|
|
X(SE_PC_ON) \
|
|
|
|
X(SE_SELECT) \
|
|
|
|
X(SE_WIN_OPEN) \
|
|
|
|
X(SE_WALL_HIT) \
|
|
|
|
X(SE_DOOR) \
|
|
|
|
X(SE_EXIT) \
|
|
|
|
X(SE_LEDGE) \
|
|
|
|
X(SE_BIKE_BELL) \
|
|
|
|
X(SE_NOT_EFFECTIVE) \
|
|
|
|
X(SE_EFFECTIVE) \
|
|
|
|
X(SE_SUPER_EFFECTIVE) \
|
|
|
|
X(SE_BALL_OPEN) \
|
|
|
|
X(SE_FAINT) \
|
|
|
|
X(SE_FLEE) \
|
|
|
|
X(SE_SLIDING_DOOR) \
|
|
|
|
X(SE_SHIP) \
|
|
|
|
X(SE_BANG) \
|
|
|
|
X(SE_PIN) \
|
|
|
|
X(SE_BOO) \
|
|
|
|
X(SE_BALL) \
|
|
|
|
X(SE_CONTEST_PLACE) \
|
|
|
|
X(SE_A) \
|
|
|
|
X(SE_I) \
|
|
|
|
X(SE_U) \
|
|
|
|
X(SE_E) \
|
|
|
|
X(SE_O) \
|
|
|
|
X(SE_N) \
|
|
|
|
X(SE_SUCCESS) \
|
|
|
|
X(SE_FAILURE) \
|
|
|
|
X(SE_EXP) \
|
|
|
|
X(SE_BIKE_HOP) \
|
|
|
|
X(SE_SWITCH) \
|
|
|
|
X(SE_CLICK) \
|
|
|
|
X(SE_FU_ZAKU) \
|
|
|
|
X(SE_CONTEST_CONDITION_LOSE) \
|
|
|
|
X(SE_LAVARIDGE_FALL_WARP) \
|
|
|
|
X(SE_ICE_STAIRS) \
|
|
|
|
X(SE_ICE_BREAK) \
|
|
|
|
X(SE_ICE_CRACK) \
|
|
|
|
X(SE_FALL) \
|
|
|
|
X(SE_UNLOCK) \
|
|
|
|
X(SE_WARP_IN) \
|
|
|
|
X(SE_WARP_OUT) \
|
|
|
|
X(SE_REPEL) \
|
|
|
|
X(SE_ROTATING_GATE) \
|
|
|
|
X(SE_TRUCK_MOVE) \
|
|
|
|
X(SE_TRUCK_STOP) \
|
|
|
|
X(SE_TRUCK_UNLOAD) \
|
|
|
|
X(SE_TRUCK_DOOR) \
|
|
|
|
X(SE_BERRY_BLENDER) \
|
|
|
|
X(SE_CARD) \
|
|
|
|
X(SE_SAVE) \
|
|
|
|
X(SE_BALL_BOUNCE_1) \
|
|
|
|
X(SE_BALL_BOUNCE_2) \
|
|
|
|
X(SE_BALL_BOUNCE_3) \
|
|
|
|
X(SE_BALL_BOUNCE_4) \
|
|
|
|
X(SE_BALL_TRADE) \
|
|
|
|
X(SE_BALL_THROW) \
|
|
|
|
X(SE_NOTE_C) \
|
|
|
|
X(SE_NOTE_D) \
|
|
|
|
X(SE_NOTE_E) \
|
|
|
|
X(SE_NOTE_F) \
|
|
|
|
X(SE_NOTE_G) \
|
|
|
|
X(SE_NOTE_A) \
|
|
|
|
X(SE_NOTE_B) \
|
|
|
|
X(SE_NOTE_C_HIGH) \
|
|
|
|
X(SE_PUDDLE) \
|
|
|
|
X(SE_BRIDGE_WALK) \
|
|
|
|
X(SE_ITEMFINDER) \
|
|
|
|
X(SE_DING_DONG) \
|
|
|
|
X(SE_BALLOON_RED) \
|
|
|
|
X(SE_BALLOON_BLUE) \
|
|
|
|
X(SE_BALLOON_YELLOW) \
|
|
|
|
X(SE_BREAKABLE_DOOR) \
|
|
|
|
X(SE_MUD_BALL) \
|
|
|
|
X(SE_FIELD_POISON) \
|
|
|
|
X(SE_ESCALATOR) \
|
|
|
|
X(SE_THUNDERSTORM) \
|
|
|
|
X(SE_THUNDERSTORM_STOP) \
|
|
|
|
X(SE_DOWNPOUR) \
|
|
|
|
X(SE_DOWNPOUR_STOP) \
|
|
|
|
X(SE_RAIN) \
|
|
|
|
X(SE_RAIN_STOP) \
|
|
|
|
X(SE_THUNDER) \
|
|
|
|
X(SE_THUNDER2) \
|
|
|
|
X(SE_ELEVATOR) \
|
|
|
|
X(SE_LOW_HEALTH) \
|
|
|
|
X(SE_EXP_MAX) \
|
|
|
|
X(SE_ROULETTE_BALL) \
|
|
|
|
X(SE_ROULETTE_BALL2) \
|
|
|
|
X(SE_TAILLOW_WING_FLAP) \
|
|
|
|
X(SE_SHOP) \
|
|
|
|
X(SE_CONTEST_HEART) \
|
|
|
|
X(SE_CONTEST_CURTAIN_RISE) \
|
|
|
|
X(SE_CONTEST_CURTAIN_FALL) \
|
|
|
|
X(SE_CONTEST_ICON_CHANGE) \
|
|
|
|
X(SE_CONTEST_ICON_CLEAR) \
|
|
|
|
X(SE_CONTEST_MONS_TURN) \
|
|
|
|
X(SE_SHINY) \
|
|
|
|
X(SE_INTRO_BLAST) \
|
|
|
|
X(SE_MUGSHOT) \
|
|
|
|
X(SE_APPLAUSE) \
|
|
|
|
X(SE_VEND) \
|
|
|
|
X(SE_ORB) \
|
|
|
|
X(SE_DEX_SCROLL) \
|
|
|
|
X(SE_DEX_PAGE) \
|
|
|
|
X(SE_POKENAV_ON) \
|
|
|
|
X(SE_POKENAV_OFF) \
|
|
|
|
X(SE_DEX_SEARCH) \
|
|
|
|
X(SE_EGG_HATCH) \
|
|
|
|
X(SE_BALL_TRAY_ENTER) \
|
|
|
|
X(SE_BALL_TRAY_BALL) \
|
|
|
|
X(SE_BALL_TRAY_EXIT) \
|
|
|
|
X(SE_GLASS_FLUTE) \
|
|
|
|
X(SE_M_THUNDERBOLT) \
|
|
|
|
X(SE_M_THUNDERBOLT2) \
|
|
|
|
X(SE_M_HARDEN) \
|
|
|
|
X(SE_M_NIGHTMARE) \
|
|
|
|
X(SE_M_VITAL_THROW) \
|
|
|
|
X(SE_M_VITAL_THROW2) \
|
|
|
|
X(SE_M_BUBBLE) \
|
|
|
|
X(SE_M_BUBBLE2) \
|
|
|
|
X(SE_M_BUBBLE3) \
|
|
|
|
X(SE_M_RAIN_DANCE) \
|
|
|
|
X(SE_M_CUT) \
|
|
|
|
X(SE_M_STRING_SHOT) \
|
|
|
|
X(SE_M_STRING_SHOT2) \
|
|
|
|
X(SE_M_ROCK_THROW) \
|
|
|
|
X(SE_M_GUST) \
|
|
|
|
X(SE_M_GUST2) \
|
|
|
|
X(SE_M_DOUBLE_SLAP) \
|
|
|
|
X(SE_M_DOUBLE_TEAM) \
|
|
|
|
X(SE_M_RAZOR_WIND) \
|
|
|
|
X(SE_M_ICY_WIND) \
|
|
|
|
X(SE_M_THUNDER_WAVE) \
|
|
|
|
X(SE_M_COMET_PUNCH) \
|
|
|
|
X(SE_M_MEGA_KICK) \
|
|
|
|
X(SE_M_MEGA_KICK2) \
|
|
|
|
X(SE_M_CRABHAMMER) \
|
|
|
|
X(SE_M_JUMP_KICK) \
|
|
|
|
X(SE_M_FLAME_WHEEL) \
|
|
|
|
X(SE_M_FLAME_WHEEL2) \
|
|
|
|
X(SE_M_FLAMETHROWER) \
|
|
|
|
X(SE_M_FIRE_PUNCH) \
|
|
|
|
X(SE_M_TOXIC) \
|
|
|
|
X(SE_M_SACRED_FIRE) \
|
|
|
|
X(SE_M_SACRED_FIRE2) \
|
|
|
|
X(SE_M_EMBER) \
|
|
|
|
X(SE_M_TAKE_DOWN) \
|
|
|
|
X(SE_M_BLIZZARD) \
|
|
|
|
X(SE_M_BLIZZARD2) \
|
|
|
|
X(SE_M_SCRATCH) \
|
|
|
|
X(SE_M_VICEGRIP) \
|
|
|
|
X(SE_M_WING_ATTACK) \
|
|
|
|
X(SE_M_FLY) \
|
|
|
|
X(SE_M_SAND_ATTACK) \
|
|
|
|
X(SE_M_RAZOR_WIND2) \
|
|
|
|
X(SE_M_BITE) \
|
|
|
|
X(SE_M_HEADBUTT) \
|
|
|
|
X(SE_M_SURF) \
|
|
|
|
X(SE_M_HYDRO_PUMP) \
|
|
|
|
X(SE_M_WHIRLPOOL) \
|
|
|
|
X(SE_M_HORN_ATTACK) \
|
|
|
|
X(SE_M_TAIL_WHIP) \
|
|
|
|
X(SE_M_MIST) \
|
|
|
|
X(SE_M_POISON_POWDER) \
|
|
|
|
X(SE_M_BIND) \
|
|
|
|
X(SE_M_DRAGON_RAGE) \
|
|
|
|
X(SE_M_SING) \
|
|
|
|
X(SE_M_PERISH_SONG) \
|
|
|
|
X(SE_M_PAY_DAY) \
|
|
|
|
X(SE_M_DIG) \
|
|
|
|
X(SE_M_DIZZY_PUNCH) \
|
|
|
|
X(SE_M_SELF_DESTRUCT) \
|
|
|
|
X(SE_M_EXPLOSION) \
|
|
|
|
X(SE_M_ABSORB_2) \
|
|
|
|
X(SE_M_ABSORB) \
|
|
|
|
X(SE_M_SCREECH) \
|
|
|
|
X(SE_M_BUBBLE_BEAM) \
|
|
|
|
X(SE_M_BUBBLE_BEAM2) \
|
|
|
|
X(SE_M_SUPERSONIC) \
|
|
|
|
X(SE_M_BELLY_DRUM) \
|
|
|
|
X(SE_M_METRONOME) \
|
|
|
|
X(SE_M_BONEMERANG) \
|
|
|
|
X(SE_M_LICK) \
|
|
|
|
X(SE_M_PSYBEAM) \
|
|
|
|
X(SE_M_FAINT_ATTACK) \
|
|
|
|
X(SE_M_SWORDS_DANCE) \
|
|
|
|
X(SE_M_LEER) \
|
|
|
|
X(SE_M_SWAGGER) \
|
|
|
|
X(SE_M_SWAGGER2) \
|
|
|
|
X(SE_M_HEAL_BELL) \
|
|
|
|
X(SE_M_CONFUSE_RAY) \
|
|
|
|
X(SE_M_SNORE) \
|
|
|
|
X(SE_M_BRICK_BREAK) \
|
|
|
|
X(SE_M_GIGA_DRAIN) \
|
|
|
|
X(SE_M_PSYBEAM2) \
|
|
|
|
X(SE_M_SOLAR_BEAM) \
|
|
|
|
X(SE_M_PETAL_DANCE) \
|
|
|
|
X(SE_M_TELEPORT) \
|
|
|
|
X(SE_M_MINIMIZE) \
|
|
|
|
X(SE_M_SKETCH) \
|
|
|
|
X(SE_M_SWIFT) \
|
|
|
|
X(SE_M_REFLECT) \
|
|
|
|
X(SE_M_BARRIER) \
|
|
|
|
X(SE_M_DETECT) \
|
|
|
|
X(SE_M_LOCK_ON) \
|
|
|
|
X(SE_M_MOONLIGHT) \
|
|
|
|
X(SE_M_CHARM) \
|
|
|
|
X(SE_M_CHARGE) \
|
|
|
|
X(SE_M_STRENGTH) \
|
|
|
|
X(SE_M_HYPER_BEAM) \
|
|
|
|
X(SE_M_WATERFALL) \
|
|
|
|
X(SE_M_REVERSAL) \
|
|
|
|
X(SE_M_ACID_ARMOR) \
|
|
|
|
X(SE_M_SANDSTORM) \
|
|
|
|
X(SE_M_TRI_ATTACK) \
|
|
|
|
X(SE_M_TRI_ATTACK2) \
|
|
|
|
X(SE_M_ENCORE) \
|
|
|
|
X(SE_M_ENCORE2) \
|
|
|
|
X(SE_M_BATON_PASS) \
|
|
|
|
X(SE_M_MILK_DRINK) \
|
|
|
|
X(SE_M_ATTRACT) \
|
|
|
|
X(SE_M_ATTRACT2) \
|
|
|
|
X(SE_M_MORNING_SUN) \
|
|
|
|
X(SE_M_FLATTER) \
|
|
|
|
X(SE_M_SAND_TOMB) \
|
|
|
|
X(SE_M_GRASSWHISTLE) \
|
|
|
|
X(SE_M_SPIT_UP) \
|
|
|
|
X(SE_M_DIVE) \
|
|
|
|
X(SE_M_EARTHQUAKE) \
|
|
|
|
X(SE_M_TWISTER) \
|
|
|
|
X(SE_M_SWEET_SCENT) \
|
|
|
|
X(SE_M_YAWN) \
|
|
|
|
X(SE_M_SKY_UPPERCUT) \
|
|
|
|
X(SE_M_STAT_INCREASE) \
|
|
|
|
X(SE_M_HEAT_WAVE) \
|
|
|
|
X(SE_M_UPROAR) \
|
|
|
|
X(SE_M_HAIL) \
|
|
|
|
X(SE_M_COSMIC_POWER) \
|
|
|
|
X(SE_M_TEETER_DANCE) \
|
|
|
|
X(SE_M_STAT_DECREASE) \
|
|
|
|
X(SE_M_HAZE) \
|
|
|
|
X(SE_M_HYPER_BEAM2) \
|
|
|
|
X(SE_RG_DOOR) \
|
|
|
|
X(SE_RG_CARD_FLIP) \
|
|
|
|
X(SE_RG_CARD_FLIPPING) \
|
|
|
|
X(SE_RG_CARD_OPEN) \
|
|
|
|
X(SE_RG_BAG_CURSOR) \
|
|
|
|
X(SE_RG_BAG_POCKET) \
|
|
|
|
X(SE_RG_BALL_CLICK) \
|
|
|
|
X(SE_RG_SHOP) \
|
|
|
|
X(SE_RG_SS_ANNE_HORN) \
|
|
|
|
X(SE_RG_HELP_OPEN) \
|
|
|
|
X(SE_RG_HELP_CLOSE) \
|
|
|
|
X(SE_RG_HELP_ERROR) \
|
|
|
|
X(SE_RG_DEOXYS_MOVE) \
|
|
|
|
X(SE_RG_POKE_JUMP_SUCCESS) \
|
|
|
|
X(SE_RG_POKE_JUMP_FAILURE) \
|
|
|
|
X(SE_PHONE_CALL) \
|
|
|
|
X(SE_PHONE_CLICK) \
|
|
|
|
X(SE_ARENA_TIMEUP1) \
|
|
|
|
X(SE_ARENA_TIMEUP2) \
|
|
|
|
X(SE_PIKE_CURTAIN_CLOSE) \
|
|
|
|
X(SE_PIKE_CURTAIN_OPEN) \
|
|
|
|
X(SE_SUDOWOODO_SHAKE) \
|
2021-06-22 15:57:02 +02:00
|
|
|
|
|
|
|
// Create BGM list
|
2022-09-09 16:44:34 -04:00
|
|
|
#define X(songId) static const u8 sBGMName_##songId[] = _(#songId);
|
2021-06-22 15:57:02 +02:00
|
|
|
SOUND_LIST_BGM
|
|
|
|
#undef X
|
|
|
|
|
2022-09-09 16:44:34 -04:00
|
|
|
#define X(songId) sBGMName_##songId,
|
2022-09-19 04:19:19 -03:00
|
|
|
static const u8 *const sBGMNames[] =
|
2021-06-22 15:57:02 +02:00
|
|
|
{
|
|
|
|
SOUND_LIST_BGM
|
|
|
|
};
|
|
|
|
#undef X
|
|
|
|
|
|
|
|
// Create SE list
|
2022-09-09 16:44:34 -04:00
|
|
|
#define X(songId) static const u8 sSEName_##songId[] = _(#songId);
|
2021-06-22 15:57:02 +02:00
|
|
|
SOUND_LIST_SE
|
|
|
|
#undef X
|
|
|
|
|
2022-09-09 16:44:34 -04:00
|
|
|
#define X(songId) sSEName_##songId,
|
2022-09-19 04:19:19 -03:00
|
|
|
static const u8 *const sSENames[] =
|
2021-06-22 15:57:02 +02:00
|
|
|
{
|
|
|
|
SOUND_LIST_SE
|
|
|
|
};
|
|
|
|
#undef X
|
|
|
|
|
2022-11-14 10:56:40 -03:00
|
|
|
#endif //DEBUG_OVERWORLD_MENU == TRUE
|