Alchemy
Loading...
Searching...
No Matches

test.c File Reference

Go to the source code of this file.

Macros

#define DEBUG_ITEM_COUNT   270
 The debug item browser covers IDs 0 through 269.
#define DEBUG_ITEM_ROW_STEP   10
#define DEBUG_ITEM_PAGE_STEP   30

Functions

void Engine_EventSetMessage (s16 message)
void Engine_AudioPlayCue (s32 cue)
static __inline__ void DebugMenu_RecalculateParty (void)
 Recalculates the four heroes after a debug inventory or stat change.
u8 * MenuTest_GetEntrances (void)
s32 SceneData_ReturnZero (void)
u8 * MenuTest_GetExits (void)
u8 * MenuTest_GetPlacements (void)
static void SceneDialogue_ShowMessageAndWait (s32 messageId)
 Finishes pending UI work, displays a message, and waits one final frame.
static void DebugMenu_BrowseMessageRange (s32 messageId, s32 messageCount)
 Browses sample dialogue with A/Down and Up; B closes the window.
static void DebugMenu_BrowseWeaponShopMessages (void)
static void DebugMenu_BrowseArmorShopMessages (void)
static void DebugMenu_BrowseItemShopMessages (void)
static void DebugMenu_BrowseSanctumMessages (void)
static void DebugMenu_BrowseWarriorShopMessages (void)
static void DebugMenu_BrowseWarriorArmorShopMessages (void)
static void DebugMenu_BrowseWarriorItemShopMessages (void)
static void DebugMenu_RunPresetShop (void)
 Runs the shop test's preset inventory, money and ailment setup.
static UNUSED void DebugMenu_NoOp (void)
static void DebugMenu_TestItemSelection (void)
 Opens the shop inventory selector and discards its selected owner and slot.
static void DebugMenu_EditIsaacName (void)
static void DebugMenu_IgnorePsynergy (void)
 Leaves the test actor unchanged when targeted by Psynergy.
static void DebugMenu_EnableEffectChildMode (void)
s32 MenuTest_GetEvents (void)
static void DebugMenu_RaisePartyLevels (void)
 Levels the four heroes to the current debug target, then raises it by ten.
static void DebugMenu_GiveConsumableTestStock (void)
 Attempts each consumable grant in order, including calls after a bag fills.
static void DebugMenu_GivePartyDjinn (void)
 Runs the Japanese text-buffer benchmark, then grants and sets test Djinn.
static void DebugMenu_DamageAndAfflictParty (void)
 Reduces HP and PP, then poisons and haunts Isaac and binds and venoms Garet.
static void DebugMenu_GiveEquipmentTestStock (void)
 Adds the test equipment in each owner's original inventory order.
static void DebugMenu_SelectItem (void)
 Browses item definitions and gives the selected item while party bags allow it.
static UNUSED void DebugMenu_OpenItemBrowser (void)
static void DebugMenu_GiveTreasureTestStock (void)
 Adds the original treasure test stock, retaining duplicate tickets and medals.
s32 CommandTable_ConfigureCommandList (void)
 Sets the debug party, stock counters and levels; returns zero.
static s32 DebugMenu_OpenIconBrowser (void)
 Returns the icon browser's status to the event dispatcher.
static s32 DebugMenu_ConfirmShopAction (s32 unitId)
 Forwards the selected owner and shop confirmation status.

Variables

u32 gDebugItemPromptHead []
char gDebugItemPrompt [12] = "Item No:"
char gDebugItemCapacityLabel [24] = "A:Get Item B:Return"
char gDebugItemFullLabel [20] = "ITEM FULL........"
struct SceneEntrance gMenuTest_Entrances []
u32 gMenuTest_Exits []
struct ScenePlacement gMenuTest_Placements []
struct SceneEvent gMenuTest_Events []
s32 gMenuTest_SlotOffsets = 10
s32 gMenuTest_BenchmarkCharacter = 65

Macro Definition Documentation

◆ DEBUG_ITEM_COUNT

#define DEBUG_ITEM_COUNT   270

The debug item browser covers IDs 0 through 269.

Definition at line 43 of file test.c.

Referenced by DebugMenu_SelectItem().

◆ DEBUG_ITEM_ROW_STEP

#define DEBUG_ITEM_ROW_STEP   10

Definition at line 44 of file test.c.

Referenced by DebugMenu_SelectItem().

◆ DEBUG_ITEM_PAGE_STEP

#define DEBUG_ITEM_PAGE_STEP   30

Definition at line 45 of file test.c.

Referenced by DebugMenu_SelectItem().

Function Documentation

◆ Engine_EventSetMessage()

void Engine_EventSetMessage ( s16 message)

◆ Engine_AudioPlayCue()

void Engine_AudioPlayCue ( s32 cue)

◆ DebugMenu_RecalculateParty()

__inline__ void DebugMenu_RecalculateParty ( void )
static

Recalculates the four heroes after a debug inventory or stat change.

Preserve the original Isaac, Garet, Mia, Ivan order.

Definition at line 49 of file test.c.

Referenced by CommandTable_ConfigureCommandList(), DebugMenu_DamageAndAfflictParty(), DebugMenu_GiveConsumableTestStock(), DebugMenu_GiveEquipmentTestStock(), DebugMenu_GivePartyDjinn(), DebugMenu_GiveTreasureTestStock(), DebugMenu_RaisePartyLevels(), and DebugMenu_RecalculateParty().

◆ MenuTest_GetEntrances()

u8 * MenuTest_GetEntrances ( void )

Definition at line 56 of file test.c.

Referenced by MenuTest_GetEntrances().

◆ SceneData_ReturnZero()

s32 SceneData_ReturnZero ( void )

Definition at line 58 of file test.c.

◆ MenuTest_GetExits()

u8 * MenuTest_GetExits ( void )

Definition at line 60 of file test.c.

Referenced by MenuTest_GetExits().

◆ MenuTest_GetPlacements()

u8 * MenuTest_GetPlacements ( void )

Definition at line 62 of file test.c.

Referenced by MenuTest_GetPlacements().

◆ SceneDialogue_ShowMessageAndWait()

void SceneDialogue_ShowMessageAndWait ( s32 messageId)
static

Finishes pending UI work, displays a message, and waits one final frame.

Definition at line 66 of file test.c.

Referenced by DebugMenu_BrowseMessageRange(), and SceneDialogue_ShowMessageAndWait().

◆ DebugMenu_BrowseMessageRange()

void DebugMenu_BrowseMessageRange ( s32 messageId,
s32 messageCount )
static

◆ DebugMenu_BrowseWeaponShopMessages()

void DebugMenu_BrowseWeaponShopMessages ( void )
static

Definition at line 113 of file test.c.

Referenced by DebugMenu_BrowseWeaponShopMessages().

◆ DebugMenu_BrowseArmorShopMessages()

void DebugMenu_BrowseArmorShopMessages ( void )
static

Definition at line 118 of file test.c.

Referenced by DebugMenu_BrowseArmorShopMessages().

◆ DebugMenu_BrowseItemShopMessages()

void DebugMenu_BrowseItemShopMessages ( void )
static

Definition at line 123 of file test.c.

Referenced by DebugMenu_BrowseItemShopMessages().

◆ DebugMenu_BrowseSanctumMessages()

void DebugMenu_BrowseSanctumMessages ( void )
static

Definition at line 128 of file test.c.

Referenced by DebugMenu_BrowseSanctumMessages().

◆ DebugMenu_BrowseWarriorShopMessages()

void DebugMenu_BrowseWarriorShopMessages ( void )
static

Definition at line 133 of file test.c.

Referenced by DebugMenu_BrowseWarriorShopMessages().

◆ DebugMenu_BrowseWarriorArmorShopMessages()

void DebugMenu_BrowseWarriorArmorShopMessages ( void )
static

Definition at line 138 of file test.c.

Referenced by DebugMenu_BrowseWarriorArmorShopMessages().

◆ DebugMenu_BrowseWarriorItemShopMessages()

void DebugMenu_BrowseWarriorItemShopMessages ( void )
static

Definition at line 143 of file test.c.

Referenced by DebugMenu_BrowseWarriorItemShopMessages().

◆ DebugMenu_RunPresetShop()

void DebugMenu_RunPresetShop ( void )
static

Runs the shop test's preset inventory, money and ailment setup.

Definition at line 159 of file test.c.

Referenced by DebugMenu_RunPresetShop().

◆ DebugMenu_NoOp()

UNUSED void DebugMenu_NoOp ( void )
static

Definition at line 163 of file test.c.

Referenced by DebugMenu_NoOp().

◆ DebugMenu_TestItemSelection()

void DebugMenu_TestItemSelection ( void )
static

Opens the shop inventory selector and discards its selected owner and slot.

Definition at line 166 of file test.c.

Referenced by DebugMenu_TestItemSelection().

◆ DebugMenu_EditIsaacName()

void DebugMenu_EditIsaacName ( void )
static

Definition at line 172 of file test.c.

Referenced by DebugMenu_EditIsaacName().

◆ DebugMenu_IgnorePsynergy()

void DebugMenu_IgnorePsynergy ( void )
static

Leaves the test actor unchanged when targeted by Psynergy.

Definition at line 175 of file test.c.

Referenced by DebugMenu_IgnorePsynergy().

◆ DebugMenu_EnableEffectChildMode()

void DebugMenu_EnableEffectChildMode ( void )
static

Definition at line 177 of file test.c.

Referenced by DebugMenu_EnableEffectChildMode().

◆ MenuTest_GetEvents()

s32 MenuTest_GetEvents ( void )

Definition at line 188 of file test.c.

Referenced by MenuTest_GetEvents().

◆ DebugMenu_RaisePartyLevels()

void DebugMenu_RaisePartyLevels ( void )
static

Levels the four heroes to the current debug target, then raises it by ten.

Definition at line 191 of file test.c.

Referenced by DebugMenu_RaisePartyLevels().

◆ DebugMenu_GiveConsumableTestStock()

void DebugMenu_GiveConsumableTestStock ( void )
static

Attempts each consumable grant in order, including calls after a bag fills.

Definition at line 205 of file test.c.

Referenced by DebugMenu_GiveConsumableTestStock().

◆ DebugMenu_GivePartyDjinn()

void DebugMenu_GivePartyDjinn ( void )
static

Runs the Japanese text-buffer benchmark, then grants and sets test Djinn.

Ivan receives six Jupiter Djinn; the other heroes receive seven.

Definition at line 405 of file test.c.

Referenced by DebugMenu_GivePartyDjinn().

◆ DebugMenu_DamageAndAfflictParty()

void DebugMenu_DamageAndAfflictParty ( void )
static

Reduces HP and PP, then poisons and haunts Isaac and binds and venoms Garet.

Definition at line 487 of file test.c.

Referenced by DebugMenu_DamageAndAfflictParty().

◆ DebugMenu_GiveEquipmentTestStock()

void DebugMenu_GiveEquipmentTestStock ( void )
static

Adds the test equipment in each owner's original inventory order.

Definition at line 513 of file test.c.

Referenced by DebugMenu_GiveEquipmentTestStock().

◆ DebugMenu_SelectItem()

void DebugMenu_SelectItem ( void )
static

Browses item definitions and gives the selected item while party bags allow it.

Definition at line 554 of file test.c.

Referenced by DebugMenu_OpenItemBrowser(), and DebugMenu_SelectItem().

◆ DebugMenu_OpenItemBrowser()

UNUSED void DebugMenu_OpenItemBrowser ( void )
static

Definition at line 645 of file test.c.

Referenced by DebugMenu_OpenItemBrowser().

◆ DebugMenu_GiveTreasureTestStock()

void DebugMenu_GiveTreasureTestStock ( void )
static

Adds the original treasure test stock, retaining duplicate tickets and medals.

Definition at line 649 of file test.c.

Referenced by DebugMenu_GiveTreasureTestStock().

◆ CommandTable_ConfigureCommandList()

s32 CommandTable_ConfigureCommandList ( void )

Sets the debug party, stock counters and levels; returns zero.

Definition at line 701 of file test.c.

Referenced by CommandTable_ConfigureCommandList().

◆ DebugMenu_OpenIconBrowser()

s32 DebugMenu_OpenIconBrowser ( void )
static

Returns the icon browser's status to the event dispatcher.

Definition at line 738 of file test.c.

Referenced by DebugMenu_OpenIconBrowser().

◆ DebugMenu_ConfirmShopAction()

s32 DebugMenu_ConfirmShopAction ( s32 unitId)
static

Forwards the selected owner and shop confirmation status.

Definition at line 749 of file test.c.

Referenced by DebugMenu_ConfirmShopAction().

Variable Documentation

◆ gDebugItemPromptHead

u32 gDebugItemPromptHead[]
Initial value:
= {
0x500050, 0, 80, 0x500000, 0x10003, 2, 0,
0x780078, 0, 120, 0x780000, 0x10003, 2, 0,
0x28003c, 0, 128, 0x800000, 0x10002, 1, 0,
0x28003c, 0, 128, 0x800000, 0x10002, 3, 0,
0x800080, 0, 128, 0x800000, 0x20003, 1, 0,
0x800080, 0, 128, 0x800000, 0x20003, 1, 0,
0x200020, 0, 0, 0, 0, 0, 0,
0x800080, 0, 128, 0x800000, 0x20003, 1, 0,
}

Definition at line 754 of file test.c.

◆ gDebugItemPrompt

char gDebugItemPrompt[12] = "Item No:"

Definition at line 765 of file test.c.

Referenced by DebugMenu_SelectItem().

◆ gDebugItemCapacityLabel

char gDebugItemCapacityLabel[24] = "A:Get Item B:Return"

Definition at line 767 of file test.c.

Referenced by DebugMenu_SelectItem().

◆ gDebugItemFullLabel

char gDebugItemFullLabel[20] = "ITEM FULL........"

Definition at line 769 of file test.c.

Referenced by DebugMenu_SelectItem().

◆ gMenuTest_Entrances

struct SceneEntrance gMenuTest_Entrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 60, 0, 94, FACING_NORTH, 0, -1, -1, -1, -1, 0},
}
@ SCENE_TABLE_END
Definition field_scene.h:43
@ CONDITION_ALWAYS
Definition field_scene.h:44
@ FACING_NORTH
Definition field_scene.h:32

Definition at line 771 of file test.c.

Referenced by MenuTest_GetEntrances().

◆ gMenuTest_Exits

u32 gMenuTest_Exits[]
Initial value:
= {
}
#define SCENE_EXITS(scene)
Definition field_scene.h:72

Definition at line 776 of file test.c.

Referenced by MenuTest_GetExits().

◆ gMenuTest_Placements

struct ScenePlacement gMenuTest_Placements[]

Definition at line 780 of file test.c.

Referenced by MenuTest_GetPlacements().

◆ gMenuTest_Events

struct SceneEvent gMenuTest_Events[]

Definition at line 812 of file test.c.

Referenced by MenuTest_GetEvents().

◆ gMenuTest_SlotOffsets

s32 gMenuTest_SlotOffsets = 10

Definition at line 871 of file test.c.

Referenced by DebugMenu_RaisePartyLevels().

◆ gMenuTest_BenchmarkCharacter

s32 gMenuTest_BenchmarkCharacter = 65

Definition at line 873 of file test.c.

Referenced by DebugMenu_GivePartyDjinn().