src/game/game_snapshot.c
The equipment put aside for the Trial Road, as The Broken Seal's for the Colosso: Felix's, Jenna's, Sheba's and Piers's inventories, and giving them back. More…
Included by game.c.
Macros
| Name | Description | |
|---|---|---|
#define | INVENTORY_SNAPSHOT_SENTINEL 26484 | The first halfword of InventorySnapshot while it holds the party's equipment, put aside while the Trial Road takes it away. |
Functions
| Name | Description | |
|---|---|---|
Bool | gmItemRaisesStat (Sint32 id) | Returns 1 for the six items that raise a stat for good: Power Bread, Cookie, Apple, Hard Nut, Mint and Lucky Pepper (an inventory entry may be passed). |
void | gmInventorySnapshotSave (void) | Saves the inventories of Felix's party (FELIX to PIERS), the shortcuts and the party order as the leader and Moapa set off on the Trial Road (scShamanVillageTakeLeftPath and its twin), then drops every weapon, armor, shield and helm not equipped (and, in every edition but the Japanese, every item that raises a stat), sets FLAG_TRIAL_ROAD_HOLDS_EQUIPMENT and restores everyone's HP and PP. |
void | gmInventorySnapshotRestore (void) | Gives back the inventories, shortcuts and party order gmInventorySnapshotSave put aside, empties the snapshot and clears FLAG_TRIAL_ROAD_HOLDS_EQUIPMENT: at the end of the Trial Road, and from the clear scene. |
Description
The equipment put aside for the Trial Road, as The Broken Seal's for the
Colosso: Felix's, Jenna's, Sheba's and Piers's inventories, and giving them
back. Part of game.c.
Macros in detail
INVENTORY_SNAPSHOT_SENTINEL
#define INVENTORY_SNAPSHOT_SENTINEL 26484
The first halfword of InventorySnapshot while it holds the party's equipment,
put aside while the Trial Road takes it away.
Referenced by gmInventorySnapshotRestore() and gmInventorySnapshotSave().
Definition at line 27 of file game_snapshot.c.
Functions in detail
gmItemRaisesStat
Bool gmItemRaisesStat(Sint32 id)
Returns 1 for the six items that raise a stat for good: Power Bread, Cookie, Apple, Hard Nut, Mint and Lucky Pepper (an inventory entry may be passed).
References Sint32.
Referenced by gmInventorySnapshotSave().
Definition at line 10 of file game_snapshot.c.
gmInventorySnapshotSave
void gmInventorySnapshotSave(void)
Saves the inventories of Felix's party (FELIX to PIERS), the shortcuts and
the party order as the leader and Moapa set off on the Trial Road
(scShamanVillageTakeLeftPath and its twin), then drops every weapon, armor,
shield and helm not equipped (and, in every edition but the Japanese, every
item that raises a stat), sets FLAG_TRIAL_ROAD_HOLDS_EQUIPMENT and restores
everyone's HP and PP. As The Broken Seal's Colosso snapshot; nothing is saved
again while a snapshot is held.
References gmInventoryCompactSlots(), gmItemGetDefinition(), gmItemRaisesStat(), gmPartyRestoreHpPp(), gmUnitCalculate(), gmUnitGet(), gmUnitUpdateClass(), InventorySnapshot, MainRoutineStateWork, Sint32, syGameFlagClear() and syGameFlagSet().
Definition at line 36 of file game_snapshot.c.
gmInventorySnapshotRestore
void gmInventorySnapshotRestore(void)
Gives back the inventories, shortcuts and party order gmInventorySnapshotSave
put aside, empties the snapshot and clears FLAG_TRIAL_ROAD_HOLDS_EQUIPMENT:
at the end of the Trial Road, and from the clear scene.
References gmUnitCalculate(), gmUnitGet(), gmUnitUpdateClass(), InventorySnapshot, MainRoutineStateWork, Sint32 and syGameFlagClear().
Referenced by scInit(), scTrialRoadOfferToGiveUp() and scTrialRoadSetUpPeak().
Definition at line 100 of file game_snapshot.c.