Skip to Content
The Alchemy Project

include/debug/debug.h

What the debug menus and the debug rooms share: the warp menu's presets, the shortcut grid's abilities, the palette editor's swatches and the steps the debug choosers take.

Included by battle_internal.h, battle_effect_internal.h, level.c, shop_test.c, field_engine_internal.h, field_psynergy_internal.h, script_commands_internal.h, menu_internal.h, shop_internal.h, debug_tables.c and window_internal.h.

Structures

NameDescription
structDEBUG_WARP_PRESETOne row of the debug warp menu: its name and what choosing it does.

Macros

NameDescription
#defineDEBUG_BROWSER_ROW_STEP 10The debug rooms' item choosers (dbIncreaseItemAndLevelSelectItem, dbShopTestSelectItem): Right and Left move ten numbers.
#defineDEBUG_BROWSER_PAGE_STEP 30The same choosers' R and L move thirty.
#defineDEBUG_LARGE_STEP 10The step the debug menus take on L and R: ten scenes, entrances, flag pages, portraits or sound numbers (window.c's choosers); the battle test chooser (battle_debug.c) takes it on Up and Down, ten encounters.

Functions

NameDescription
voidmnDebugWarpJupiter (void)The warp menu's handlers, one a row of DebugWarpPresets, each named for its row's label ("0:Jupiter" to "8:Kaoru Special1").
voidmnDebugWarpArafura2 (void)Preset 1, "Arafura2": Briggs caught and the mayor at the ship, Alhafra's mast still blocking it; Felix holds the Large Bread.
voidmnDebugWarpEnergySample (void)Preset 2, "Energy Sample": does nothing.
voidmnDebugWarpArafura3 (void)Preset 3, "Arafura3": as Arafura2 with the mast cleared.
voidmnDebugWarpChampa2 (void)Preset 4, "CHAMPA2": the Trident's three prongs, and Briggs sailed from Alhafra.
voidmnDebugWarpKaoruSpecial4 (void)Preset 5, "Kaoru Special4": Moapa met in Shaman Village, his tests passed and beaten on the Trial Road.
voidmnDebugWarpKaoruSpecial3 (void)Preset 6, "Kaoru Special3": the Mars beacon lit and Prox's clan met and grateful, saving barred.
voidmnDebugWarpKaoruSpecial2 (void)Preset 7, "Kaoru Special2": to the Mars Lighthouse aerie.
voidmnDebugWarpKaoruSpecial1 (void)Preset 8, "Kaoru Special1": to the Mars Lighthouse's star room, where the battle with the Flame Dragons returns the party.
voidmnDebugFlagEditorDrawTable (Sint32 window, Sint32 startFlag)Draws one page of 256 flags as sixteen rows of hexadecimal labels and bits.
Sint32mnDebugFlagEditorHandleInput (Sint32 window, Sint32 *page, Sint32 *cursor)Moves within the flag grid, changes pages, or toggles the selected flag.

Variables

NameDescription
extern const Uint8DebugPaletteSwatchTiles []The palette editor's swatch tiles, compressed; it decompresses them to tile 208 of character block 0, one tile a colour.
extern const DEBUG_WARP_PRESETDebugWarpPresets []The debug warp menu's nine rows (debug_tables.c).
extern const Sint16DebugShortcutAbilities [4][9]The abilities the debug shortcut grid offers, by column and row.

Description

What the debug menus and the debug rooms share: the warp menu's presets, the shortcut grid's abilities, the palette editor's swatches and the steps the debug choosers take.

Macros in detail

DEBUG_BROWSER_ROW_STEP

#define DEBUG_BROWSER_ROW_STEP 10

The debug rooms' item choosers (dbIncreaseItemAndLevelSelectItem, dbShopTestSelectItem): Right and Left move ten numbers.

Referenced by dbIncreaseItemAndLevelSelectItem() and dbShopTestSelectItem().

Definition at line 35 of file debug.h.

DEBUG_BROWSER_PAGE_STEP

#define DEBUG_BROWSER_PAGE_STEP 30

The same choosers' R and L move thirty.

Referenced by dbIncreaseItemAndLevelSelectItem() and dbShopTestSelectItem().

Definition at line 37 of file debug.h.

DEBUG_LARGE_STEP

#define DEBUG_LARGE_STEP 10

The step the debug menus take on L and R: ten scenes, entrances, flag pages, portraits or sound numbers (window.c's choosers); the battle test chooser (battle_debug.c) takes it on Up and Down, ten encounters.

Referenced by btDebugBattleRunMenu(), mnDebugBrowserPortraits(), mnDebugFlagEditorHandleInput(), mnDebugSceneSelectHandleRowInput() and mnDebugSoundTestRun().

Definition at line 41 of file debug.h.

Variables in detail

DebugPaletteSwatchTiles

extern const Uint8 DebugPaletteSwatchTiles[]

The palette editor's swatch tiles, compressed; it decompresses them to tile 208 of character block 0, one tile a colour.

Referenced by fdPaletteEditorRun().

Definition at line 13 of file debug.h.