Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
setup.c File Reference

WFIGHTMN's display layers and the battle's fighters: their stats, the ambush roll, the WFIGHTMN_RECOVERY_ITEM checks and the record of who fought. More...

Include dependency graph for setup.c:

Go to the source code of this file.

Functions

void WFIGHTMN_createLayers (void)
 Sets up the display and the battle's layers.
 
static void WFIGHTMN_setStat (s16 *cur, s16 *max, s16 value)
 Sets a stat and its maximum.
 
void WFIGHTMN_initFighters (s32 digimon)
 Fills the battle's fighters: the party's partners (the first one with the id DIGIMON) and the encounter's enemies, with their battle table items.
 
s32 WFIGHTMN_rollAmbush (void)
 Checks the chance in BATTLE_SETUP.ambushChance, scaled by how far the first partner's level and the first enemy's level are under 32.
 
void WFIGHTMN_checkEquip (s32 member)
 Queues a recovery (FIGHTSTG_queueRecovery) for party member MEMBER's partner when it has WFIGHTMN_RECOVERY_ITEM in one of its last two equipment slots.
 
void WFIGHTMN_checkParty (void)
 Checks each of the party's three partners for WFIGHTMN_RECOVERY_ITEM (WFIGHTMN_checkEquip)
 
void WFIGHTMN_markFought (void)
 Marks in BATTLE_RESULT that the current partner fought, and with which of its slots' Digimon if it isn't in its own form.
 
void WFIGHTMN_markPicked (BattleMenu *task, BattleMenuChildren *children)
 Records in BATTLE_RESULT that the partner of the player's turn fought, and which of its digivolution slots it fought as.
 

Detailed Description

WFIGHTMN's display layers and the battle's fighters: their stats, the ambush roll, the WFIGHTMN_RECOVERY_ITEM checks and the record of who fought.

Definition in file setup.c.

Function Documentation

◆ WFIGHTMN_createLayers()

void WFIGHTMN_createLayers ( void  )

Sets up the display and the battle's layers.

setup.c

< the battle camera's and the lights'

< the models' wireframe copies, in a Digimon change

< the HUD, the menus and the messages

< the fades, the flashes and the sprite effects over all

Definition at line 7 of file setup.c.

Referenced by WFIGHTMN_updateMenu().

Here is the caller graph for this function:

◆ WFIGHTMN_setStat()

static void WFIGHTMN_setStat ( s16 *  cur,
s16 *  max,
s16  value 
)
inlinestatic

Sets a stat and its maximum.

The match depends on the pointers: stores through them aren't struct accesses to GCC, so the load of FIGHTSTG_battleTableFunc stays after them

Definition at line 14 of file setup.c.

Referenced by WFIGHTMN_initFighters().

Here is the caller graph for this function:

◆ WFIGHTMN_initFighters()

void WFIGHTMN_initFighters ( s32  digimon)

Fills the battle's fighters: the party's partners (the first one with the id DIGIMON) and the encounter's enemies, with their battle table items.

Definition at line 20 of file setup.c.

Referenced by addFighters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WFIGHTMN_rollAmbush()

s32 WFIGHTMN_rollAmbush ( void  )

Checks the chance in BATTLE_SETUP.ambushChance, scaled by how far the first partner's level and the first enemy's level are under 32.

Definition at line 60 of file setup.c.

Referenced by addFighters().

Here is the caller graph for this function:

◆ WFIGHTMN_checkEquip()

void WFIGHTMN_checkEquip ( s32  member)

Queues a recovery (FIGHTSTG_queueRecovery) for party member MEMBER's partner when it has WFIGHTMN_RECOVERY_ITEM in one of its last two equipment slots.

Definition at line 81 of file setup.c.

Referenced by FIGHTSTG_reviveFighter(), restoreSide(), reviveParty(), reviveSide(), and WFIGHTMN_checkParty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WFIGHTMN_checkParty()

void WFIGHTMN_checkParty ( void  )

Checks each of the party's three partners for WFIGHTMN_RECOVERY_ITEM (WFIGHTMN_checkEquip)

Definition at line 99 of file setup.c.

Referenced by WFIGHTMN_updateMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WFIGHTMN_markFought()

void WFIGHTMN_markFought ( void  )

Marks in BATTLE_RESULT that the current partner fought, and with which of its slots' Digimon if it isn't in its own form.

Definition at line 109 of file setup.c.

Referenced by WFIGHTMN_digivolve(), WFIGHTMN_tag(), and WFIGHTMN_updateMenu().

Here is the caller graph for this function:

◆ WFIGHTMN_markPicked()

void WFIGHTMN_markPicked ( BattleMenu *  task,
BattleMenuChildren *  children 
)

Records in BATTLE_RESULT that the partner of the player's turn fought, and which of its digivolution slots it fought as.

Definition at line 132 of file setup.c.

Referenced by WFIGHTMN_pairTech().

Here is the caller graph for this function: