Alchemy
Loading...
Searching...
No Matches

vault_djinn.h

Go to the documentation of this file.
1/// @file
2/// Vault and its interiors: Ivan hands back Isaac's Djinni before he leaves
3/// the party. "Oh, wait, I don't want to take your Djinni."
4#include "types.h"
5#include "field_obj.h"
6#include "field_event.h"
7#include "songs.h"
8
9/// Brings every Djinni back from recovery (twenty rounds of it), then, if Ivan
10/// holds the first Venus Djinni, gives it back to Isaac and recalculates both.
11///
12/// Called before Ivan leaves the party, at Vault's gates and in the loft.
13// UB: declared s32 with no return value, as the epilogue shows; UBFIX gives
14// the void form.
15#ifdef UBFIX
16static void Vault_ReturnIsaacsDjinni(void) {
17#else
19#endif
21 if ((UnitGet(IVAN)->djinnAvailable[ELEMENT_VENUS] & 1) != 0) {
26 }
27}
@ ELEMENT_VENUS
Definition battle_unit.h:36
#define ISAAC
Robin.
#define IVAN
Ivan.
The scene script layer: the engine services a scene's events call, declared once (Engine_EventBegin,...
Field objects and actors, and the scene transition styles.
s32 Djinn_Transfer(s32 source, s32 element, s32 djinnIndex, s32 target)
Moves a Djinni from one unit to another, keeping it set or on standby.
Definition djinn.c:204
Song and sound effect ids, indices into gSound_SongTable.
#define SE_RECOVERY
Definition songs.h:119
void Engine_AudioPlayCue()
s32 DjinnRecovery_TickTwenty(void)
Runs DjinnRecovery_Tick twenty times, which sets every recovering Djinni of a party member with HP.
Definition turn_end.c:269
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
void UnitCalc(s32 owner)
Recomputes a unit's stats from its base stats, equipment, set Djinn, class and battle stat levels,...
Definition units.c:149
struct BattleUnit * UnitGet(u32 owner)
Returns the unit record of owner: 0 to 7 are the playable characters in the game state,...
Definition units.c:73
static s32 Vault_ReturnIsaacsDjinni(void)
Brings every Djinni back from recovery (twenty rounds of it), then, if Ivan holds the first Venus Dji...
Definition vault_djinn.h:18