Alchemy
Loading...
Searching...
No Matches

vault_toggle.h File Reference

Vault, before and after the thieves are caught: touch triggers 1 and 2 swap the collision of the 4x2 cells at cell (23, 26) between two versions kept elsewhere in the map. More...

Go to the source code of this file.

Functions

static void Vault_EnableAlternatePassageCells (void)
 Cell code 1 selects the passage's alternate collision and sets FLAG_SCENE_TEMP_00, preserving that choice across a kept-position return.
static void Vault_RestorePassageCells (void)
 Cell code 2 restores the passage's usual collision and clears FLAG_SCENE_TEMP_00.

Detailed Description

Vault, before and after the thieves are caught: touch triggers 1 and 2 swap the collision of the 4x2 cells at cell (23, 26) between two versions kept elsewhere in the map.

FLAG_SCENE_TEMP_00 remembers the alternate version, which each scene restores on a kept-position return, such as after battle.

Definition in file vault_toggle.h.

Function Documentation

◆ Vault_EnableAlternatePassageCells()

void Vault_EnableAlternatePassageCells ( void )
static

Cell code 1 selects the passage's alternate collision and sets FLAG_SCENE_TEMP_00, preserving that choice across a kept-position return.

Definition at line 13 of file vault_toggle.h.

Referenced by Vault_EnableAlternatePassageCells().

◆ Vault_RestorePassageCells()

void Vault_RestorePassageCells ( void )
static

Cell code 2 restores the passage's usual collision and clears FLAG_SCENE_TEMP_00.

Definition at line 20 of file vault_toggle.h.

Referenced by Vault_RestorePassageCells().