Alchemy

summon_menu.c

The battle summon menu.

games/tbs/src/window/battle_command/summon_menu.c on GitHub

The battle summon menu. Part of battle_command.c, the menu object, compiled only through it.

Functions

SummonMenu_SelectSummon

s32 SummonMenu_SelectSummon(s32 unused0, s32 unused1, const u8 *standby)

The battle summon list: the summons the party holds enough Djinn for (Summon_ListLearnedFar, BattleSummonState.availableMask), four to a page, those standby can pay for first, each with its Djinn cost by element, the others in colour 2. Above it the summon's description, and the standby Djinn of each element, the elements it needs blinking. standby is what the earlier commands this round leave (BattleMenuWork.standbyDjinn). Returns the chosen summon, even one that cannot be paid for (Battle_CollectPartyCommands then plays the error sound and goes on), or -1 when cancelled or when the link battle's time runs out. The Djinn tutorial presses A every 120 frames.

Used by Battle_CollectPartyCommands.

Line 28

Macros

SUMMON_END

#define SUMMON_END 32

Ends the summon lists, and marks a summon already moved to the front.

Used by SummonMenu_SelectSummon.

Line 16

Also, macros without a comment: SUMMON_COST_X, SUMMON_COST_X.

On this page