Alchemy
Loading...
Searching...
No Matches

bilibin.c File Reference

Bilibin's village, river crossing and raised warehouse approach. More...

Go to the source code of this file.

Data Structures

struct  SpawnCounter
 Counts frames between the river effects, one every 30 frames. More...

Macros

#define DIRECTION_STEP(dx, dz)
 Pixel step by direction: X in the upper halfword, Z in the lower.

Enumerations

enum  { TREE_MAN = 9 , VILLAGE_BLOCK = 20 , FORMER_TREE_MAN = 21 }
 Actors of the village (Bilibin1), numbered from its placement rows. More...
enum  {
  RIVER_BLOCK = 8 , JILL_TREE = 11 , GANG_MEMBER_WEST = 12 , GANG_MEMBER_EAST = 13 ,
  JILL = 14
}
 Actors of the river south of the village (Bilibin3). More...
enum  { RAISED_BLOCK = 8 , GUST = 9 }
 Actors of the warehouse approach (Bilibin2). More...

Functions

static void Bilibin_RestoreVillageActors (void)
 Restores the village population and entrance-dependent actor positions.
static void Bilibin_UpdateVillageBlockCells (void)
 Updates collision cells around the movable block and moves an overlapping leader clear.
static void Bilibin_RestoreRiverActors (void)
 Sets up the river: before the curse is lifted, Jill and her friends are trees here; afterwards they are people again on the bank.
static void Bilibin_UpdateRiverBlockCells (void)
 Restores ten river cells, then clears the movable block's current cell.
static void Bilibin_RestoreRaisedEntrance (void)
 Restores the block cells and starts the raised arrivals above floor height.
static void Bilibin_UpdateRiverEffect (void)
 Runs every frame in the river: while the controlled actor is west of x 142 and below 8 pixels high, an effect appears at it every thirty frames.
static void Bilibin_SpawnRiverEffect (struct FieldActor *actor)
 Spawns the semi-transparent effect, which frees itself after thirty frames.
static void Bilibin_UpdateRaisedBlockCells (void)
 Updates the two passage cells according to the movable block's current row.
const struct SceneEntrance * Bilibin_GetEntrances (void)
const struct SceneRegion * Bilibin_GetRegions (void)
 Only the raised approach supplies exit-region boxes.
const u32 * Bilibin_GetExits (void)
 Returns the packed exit destinations shared by the three maps.
static void Event_GustJoins (void)
 Gust, Jupiter Djinni 0, joins the party on the warehouse approach.
const struct ScenePlacement * Bilibin_GetPlacements (void)
 Selects the village, river or raised-approach actors.
static void Event_InspectWell (void)
 Reads the two-part description of the deep well.
const struct SceneEvent * Bilibin_GetEvents (void)
static void Event_ReadRestrictedAreaSign (void)
 Reads the sign restricting entry without permission.
static void Event_ReadWarehouseSign (void)
 Reads McCoy's warning on the hidden warehouse.
static void Event_InspectHumanShapedTree (void)
 Describes the human shape shared by the river's transformed villagers.
static void Event_ExamineTreeMan (void)
 The tree at the village entrance almost looks like a man; looked at again, like a living person.
static void Event_AskAboutEntranceTree (void)
 Asks whether the party saw the strange tree at the entrance.
static void Event_AskAboutSoutheastRoute (void)
 Asks whether the party tried the route southeast from Bilibin.
static void Event_AskAboutBeingATree (void)
 Once the curse is lifted, the man who was the entrance tree asks whether the party can believe it.
static void Event_AskAboutCurseBreakers (void)
 Asks whether the party are the three warriors who broke the curse.
static void Event_AskAboutImil (void)
 Asks whether the party has visited Imil to the north.
static void Event_OpenDoorAndLeave (void)
 Walking into a door: everyone stops, the door opens and the leader walks through it.
static void Event_PullJillFromRiver (void)
 Move on Jill, a tree caught in the river: from cell column 6, by the bank, the leader pulls her ashore in three tugs, and she thanks the party for saving her from being washed downstream.
static void Event_CheckAhead (void)
 Checks the blocked direction before allowing another movement step.
static void Event_JillGivesHardNut (void)
 Back on the riverbank once the curse is lifted, Jill and her friends recognize the party, and she gives the leader a Hard Nut in thanks.
s32 Bilibin_Initialize (void)
 Restores the current map's actors, collision cells and opening transition.
static void Event_PushBlock (void)
 Pushing a block: it slides one cell ahead with the leader behind it, if the cell is free.

Variables

struct SpawnCounter gBilibin_RiverEffectTimer
s32 gBilibin_FaceLeaderScript []
u16 gBilibinEntrancesOther []
struct SceneEntrance gBilibinEntrances1 []
struct SceneEntrance gBilibinEntrances3 []
struct SceneEntrance gBilibinEntrances2 []
s16 gBilibinRegions2 []
u32 gBilibinExits []
struct ScenePlacement gBilibinPlacementsOther []
struct ScenePlacement gBilibinPlacements1 []
struct ScenePlacement gBilibinPlacements3 []
struct ScenePlacement gBilibinPlacements2 []
struct SceneEvent gBilibinEventsOther []
struct SceneEvent gBilibinEvents1 []
struct SceneEvent gBilibinEvents3 []
struct SceneEvent gBilibinEvents2 []
u16 gBilibin_DoorSteps6 []
u16 gBilibin_DoorSteps4 []
u16 gBilibin_DoorSteps5 []
u16 gBilibin_DoorSteps1 []
u16 gBilibin_DoorSteps0 []
u16 gBilibin_DoorSteps2 []
u16 gBilibin_DoorSteps3 []
u16 * gBilibin_DoorSteps []
u32 gBilibin_DoorCells []
u32 gBilibin_RiverBlockCells []
s32 gBilibin_FacingCellSteps []
s32 gBilibin_TransientEffectScript []

Detailed Description

Bilibin's village, river crossing and raised warehouse approach.

Town dialogue changes with the tree curse; the river route includes a rescue and Jill's reward for helping the stranded villager.

Definition in file bilibin.c.

Macro Definition Documentation

◆ DIRECTION_STEP

#define DIRECTION_STEP ( dx,
dz )
Value:
(((dx) << 16) | ((dz) & 0xffff))

Pixel step by direction: X in the upper halfword, Z in the lower.

Definition at line 1062 of file bilibin.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Actors of the village (Bilibin1), numbered from its placement rows.

Enumerator
TREE_MAN 

the cursed traveler, a tree at the village entrance

VILLAGE_BLOCK 

the block moved with Move

FORMER_TREE_MAN 

the same man once the curse is lifted

Definition at line 48 of file bilibin.c.

◆ anonymous enum

anonymous enum

Actors of the river south of the village (Bilibin3).

Enumerator
RIVER_BLOCK 
JILL_TREE 

Jill as a tree, about to be swept downstream.

GANG_MEMBER_WEST 

Jill's two friends. With her they were the "Gang of Three".

GANG_MEMBER_EAST 
JILL 

Definition at line 55 of file bilibin.c.

◆ anonymous enum

anonymous enum

Actors of the warehouse approach (Bilibin2).

Enumerator
RAISED_BLOCK 
GUST 

Definition at line 65 of file bilibin.c.

Function Documentation

◆ Bilibin_RestoreVillageActors()

void Bilibin_RestoreVillageActors ( void )
static

Restores the village population and entrance-dependent actor positions.

Definition at line 449 of file bilibin.c.

Referenced by Bilibin_Initialize(), and Bilibin_RestoreVillageActors().

◆ Bilibin_UpdateVillageBlockCells()

void Bilibin_UpdateVillageBlockCells ( void )
static

Updates collision cells around the movable block and moves an overlapping leader clear.

Definition at line 487 of file bilibin.c.

Referenced by Bilibin_RestoreVillageActors(), Bilibin_UpdateVillageBlockCells(), and Event_PushBlock().

◆ Bilibin_RestoreRiverActors()

void Bilibin_RestoreRiverActors ( void )
static

Sets up the river: before the curse is lifted, Jill and her friends are trees here; afterwards they are people again on the bank.

Definition at line 530 of file bilibin.c.

Referenced by Bilibin_Initialize(), and Bilibin_RestoreRiverActors().

◆ Bilibin_UpdateRiverBlockCells()

void Bilibin_UpdateRiverBlockCells ( void )
static

Restores ten river cells, then clears the movable block's current cell.

Definition at line 602 of file bilibin.c.

Referenced by Bilibin_RestoreRiverActors(), Bilibin_UpdateRiverBlockCells(), and Event_PushBlock().

◆ Bilibin_RestoreRaisedEntrance()

void Bilibin_RestoreRaisedEntrance ( void )
static

Restores the block cells and starts the raised arrivals above floor height.

Definition at line 623 of file bilibin.c.

Referenced by Bilibin_Initialize(), and Bilibin_RestoreRaisedEntrance().

◆ Bilibin_UpdateRiverEffect()

void Bilibin_UpdateRiverEffect ( void )
static

Runs every frame in the river: while the controlled actor is west of x 142 and below 8 pixels high, an effect appears at it every thirty frames.

Definition at line 695 of file bilibin.c.

Referenced by Bilibin_Initialize(), and Bilibin_UpdateRiverEffect().

◆ Bilibin_SpawnRiverEffect()

void Bilibin_SpawnRiverEffect ( struct FieldActor * actor)
static

Spawns the semi-transparent effect, which frees itself after thirty frames.

Definition at line 712 of file bilibin.c.

Referenced by Bilibin_SpawnRiverEffect(), and Bilibin_UpdateRiverEffect().

◆ Bilibin_UpdateRaisedBlockCells()

void Bilibin_UpdateRaisedBlockCells ( void )
static

Updates the two passage cells according to the movable block's current row.

Definition at line 736 of file bilibin.c.

Referenced by Bilibin_RestoreRaisedEntrance(), Bilibin_UpdateRaisedBlockCells(), and Event_PushBlock().

◆ Bilibin_GetEntrances()

const struct SceneEntrance * Bilibin_GetEntrances ( void )

Definition at line 76 of file bilibin.c.

Referenced by Bilibin_GetEntrances().

◆ Bilibin_GetRegions()

const struct SceneRegion * Bilibin_GetRegions ( void )

Only the raised approach supplies exit-region boxes.

Definition at line 92 of file bilibin.c.

Referenced by Bilibin_GetRegions().

◆ Bilibin_GetExits()

const u32 * Bilibin_GetExits ( void )

Returns the packed exit destinations shared by the three maps.

Definition at line 100 of file bilibin.c.

Referenced by Bilibin_GetExits().

◆ Event_GustJoins()

void Event_GustJoins ( void )
static

Gust, Jupiter Djinni 0, joins the party on the warehouse approach.

Definition at line 103 of file bilibin.c.

Referenced by Event_GustJoins().

◆ Bilibin_GetPlacements()

const struct ScenePlacement * Bilibin_GetPlacements ( void )

Selects the village, river or raised-approach actors.

Definition at line 106 of file bilibin.c.

Referenced by Bilibin_GetPlacements().

◆ Event_InspectWell()

void Event_InspectWell ( void )
static

Reads the two-part description of the deep well.

Definition at line 122 of file bilibin.c.

Referenced by Event_InspectWell().

◆ Bilibin_GetEvents()

const struct SceneEvent * Bilibin_GetEvents ( void )

Definition at line 129 of file bilibin.c.

Referenced by Bilibin_GetEvents().

◆ Event_ReadRestrictedAreaSign()

void Event_ReadRestrictedAreaSign ( void )
static

Reads the sign restricting entry without permission.

Definition at line 145 of file bilibin.c.

Referenced by Event_ReadRestrictedAreaSign().

◆ Event_ReadWarehouseSign()

void Event_ReadWarehouseSign ( void )
static

Reads McCoy's warning on the hidden warehouse.

Definition at line 152 of file bilibin.c.

Referenced by Event_ReadWarehouseSign().

◆ Event_InspectHumanShapedTree()

void Event_InspectHumanShapedTree ( void )
static

Describes the human shape shared by the river's transformed villagers.

Definition at line 159 of file bilibin.c.

Referenced by Event_InspectHumanShapedTree().

◆ Event_ExamineTreeMan()

void Event_ExamineTreeMan ( void )
static

The tree at the village entrance almost looks like a man; looked at again, like a living person.

0x301 remembers the first look while in the village.

Definition at line 167 of file bilibin.c.

Referenced by Event_ExamineTreeMan().

◆ Event_AskAboutEntranceTree()

void Event_AskAboutEntranceTree ( void )
static

Asks whether the party saw the strange tree at the entrance.

Definition at line 179 of file bilibin.c.

Referenced by Event_AskAboutEntranceTree().

◆ Event_AskAboutSoutheastRoute()

void Event_AskAboutSoutheastRoute ( void )
static

Asks whether the party tried the route southeast from Bilibin.

Definition at line 187 of file bilibin.c.

Referenced by Event_AskAboutSoutheastRoute().

◆ Event_AskAboutBeingATree()

void Event_AskAboutBeingATree ( void )
static

Once the curse is lifted, the man who was the entrance tree asks whether the party can believe it.

Definition at line 196 of file bilibin.c.

Referenced by Event_AskAboutBeingATree().

◆ Event_AskAboutCurseBreakers()

void Event_AskAboutCurseBreakers ( void )
static

Asks whether the party are the three warriors who broke the curse.

Definition at line 204 of file bilibin.c.

Referenced by Event_AskAboutCurseBreakers().

◆ Event_AskAboutImil()

void Event_AskAboutImil ( void )
static

Asks whether the party has visited Imil to the north.

Definition at line 212 of file bilibin.c.

Referenced by Event_AskAboutImil().

◆ Event_OpenDoorAndLeave()

void Event_OpenDoorAndLeave ( void )
static

Walking into a door: everyone stops, the door opens and the leader walks through it.

Doors 3 to 8 lead into the houses and shops, door 9 into the Sanctum, whose door sounds and is stepped through differently.

Definition at line 222 of file bilibin.c.

Referenced by Event_OpenDoorAndLeave().

◆ Event_PullJillFromRiver()

void Event_PullJillFromRiver ( void )
static

Move on Jill, a tree caught in the river: from cell column 6, by the bank, the leader pulls her ashore in three tugs, and she thanks the party for saving her from being washed downstream.

Definition at line 278 of file bilibin.c.

Referenced by Event_PullJillFromRiver().

◆ Event_CheckAhead()

void Event_CheckAhead ( void )
static

Checks the blocked direction before allowing another movement step.

Definition at line 331 of file bilibin.c.

Referenced by Event_CheckAhead(), Event_CheckAhead(), Event_CheckAhead(), Event_CheckAhead(), and Event_CheckAhead().

◆ Event_JillGivesHardNut()

void Event_JillGivesHardNut ( void )
static

Back on the riverbank once the curse is lifted, Jill and her friends recognize the party, and she gives the leader a Hard Nut in thanks.

"Remember me? I was that tree!"

Definition at line 336 of file bilibin.c.

Referenced by Event_JillGivesHardNut().

◆ Bilibin_Initialize()

s32 Bilibin_Initialize ( void )

Restores the current map's actors, collision cells and opening transition.

Definition at line 435 of file bilibin.c.

Referenced by Bilibin_Initialize().

◆ Event_PushBlock()

void Event_PushBlock ( void )
static

Pushing a block: it slides one cell ahead with the leader behind it, if the cell is free.

Definition at line 645 of file bilibin.c.

Referenced by Event_PushBlock(), Event_PushBlock(), and Event_PushBlock().

Variable Documentation

◆ gBilibin_RiverEffectTimer

struct SpawnCounter gBilibin_RiverEffectTimer

Definition at line 72 of file bilibin.c.

Referenced by Bilibin_UpdateRiverEffect().

◆ gBilibin_FaceLeaderScript

s32 gBilibin_FaceLeaderScript[]
Initial value:
= {
SC_CALL(Scene_TurnTowardTarget),
}
#define SC_LOOP(n, to)
Repeat up to n times.
Definition objcmd.h:28
#define SC_FOREVER
Definition objcmd.h:14
#define SC_TOP
Script start.
Definition objcmd.h:13
#define SC_CALL(fn)
Definition objcmd.h:50

Definition at line 754 of file bilibin.c.

Referenced by Event_JillGivesHardNut().

◆ gBilibinEntrancesOther

u16 gBilibinEntrancesOther[]
Initial value:
= {
MAP_CELL_STEP(0, 65535, 168, 0, 168),
MAP_CELL_STEP(16384, 0, 65535, 65535, 65535),
}
#define MAP_CELL_STEP(srcX, srcY, width, height, frames)
Definition field_event.h:59
#define MAP_CELL_STEPS_END
Definition field_event.h:61

Definition at line 759 of file bilibin.c.

Referenced by Bilibin_GetEntrances().

◆ gBilibinEntrances1

struct SceneEntrance gBilibinEntrances1[]
Initial value:
= {
{1, CONDITION_ALWAYS, 240, 0, 472, FACING_NORTH, 0, -1, -1, -1, -1, 0},
{2, CONDITION_ALWAYS, 224, 0, 88, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{3, CONDITION_ALWAYS, 376, 0, 360, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{4, CONDITION_ALWAYS, 200, 0, 328, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{5, CONDITION_ALWAYS, 104, 0, 344, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{6, CONDITION_ALWAYS, 168, 0, 216, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{7, CONDITION_ALWAYS, 72, 0, 216, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{8, CONDITION_ALWAYS, 296, 0, 184, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{9, CONDITION_ALWAYS, 400, 0, 168, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{10, CONDITION_ALWAYS, 40, 0, 152, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{11, CONDITION_ALWAYS, 264, 0, 200, FACING_NORTH, 0, -1, -1, -1, -1, 0},
}
@ SCENE_TABLE_END
Definition field_scene.h:43
@ CONDITION_ALWAYS
Definition field_scene.h:44
@ FACING_NORTH
Definition field_scene.h:32
@ FACING_SOUTH
Definition field_scene.h:28

Definition at line 765 of file bilibin.c.

Referenced by Bilibin_GetEntrances().

◆ gBilibinEntrances3

struct SceneEntrance gBilibinEntrances3[]
Initial value:
= {
{0, CONDITION_ALWAYS, 168, 0, 168, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{1, CONDITION_ALWAYS, 56, 0, 376, FACING_EAST, 0, 16, 16, 400, 400, 0},
{2, CONDITION_ALWAYS, 376, 0, 184, FACING_WEST, 0, 16, 16, 400, 400, 0},
}
@ FACING_EAST
Definition field_scene.h:26
@ FACING_WEST
Definition field_scene.h:30

Definition at line 780 of file bilibin.c.

Referenced by Bilibin_GetEntrances().

◆ gBilibinEntrances2

struct SceneEntrance gBilibinEntrances2[]
Initial value:
= {
{0, CONDITION_ALWAYS, 232, 0, 144, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{1, CONDITION_ALWAYS, 120, 0, 408, FACING_NORTH, 0, 0, 288, 240, 448, 0},
{2, CONDITION_ALWAYS, 120, 0, 384, FACING_SOUTH, 0, 0, 288, 240, 448, 0},
{3, CONDITION_ALWAYS, 72, 4, 128, FACING_NORTH, 0, 32, 32, 384, 304, 0},
{4, CONDITION_ALWAYS, 296, 4, 224, FACING_NORTH, 0, 32, 32, 384, 304, 0},
}

Definition at line 787 of file bilibin.c.

Referenced by Bilibin_GetEntrances().

◆ gBilibinRegions2

s16 gBilibinRegions2[]
Initial value:
= {
66, 26, 128, 78, 38, 140, -1, 3,
290, 26, 224, 302, 38, 236, -1, 4,
-1, 0, 0, 0, 0, 0, 0, 0,
}

Definition at line 797 of file bilibin.c.

Referenced by Bilibin_GetRegions().

◆ gBilibinExits

u32 gBilibinExits[]
Initial value:
= {
SCENE_EXIT(1, 2, 5),
SCENE_EXIT(2, 34, 1),
SCENE_EXIT(3, 31, 6),
SCENE_EXIT(4, 31, 1),
SCENE_EXIT(5, 31, 2),
SCENE_EXIT(6, 31, 3),
SCENE_EXIT(7, 31, 5),
SCENE_EXIT(8, 31, 4),
SCENE_EXIT(9, 9, 35),
SCENE_EXIT(10, 32, 1),
SCENE_EXIT(11, 32, 4),
SCENE_EXIT(0, 32, 0),
SCENE_EXIT(1, 30, 10),
SCENE_EXIT(2, 32, 3),
SCENE_EXIT(3, 32, 2),
SCENE_EXIT(4, 30, 11),
SCENE_EXIT(0, 35, 0),
SCENE_EXIT(1, 2, 6),
SCENE_EXIT(2, 2, 47),
}
#define SCENE_EXITS(scene)
Definition field_scene.h:72
#define SCENE_EXIT(exit, scene, entrance)
Definition field_scene.h:73
#define SCENE_EXITS_END
Definition field_scene.h:77

Definition at line 803 of file bilibin.c.

Referenced by Bilibin_GetExits().

◆ gBilibinPlacementsOther

struct ScenePlacement gBilibinPlacementsOther[]
Initial value:
= {
}

Definition at line 827 of file bilibin.c.

Referenced by Bilibin_GetPlacements().

◆ gBilibinPlacements1

struct ScenePlacement gBilibinPlacements1[]

Definition at line 831 of file bilibin.c.

Referenced by Bilibin_GetPlacements().

◆ gBilibinPlacements3

struct ScenePlacement gBilibinPlacements3[]
Initial value:

Definition at line 863 of file bilibin.c.

Referenced by Bilibin_GetPlacements().

◆ gBilibinPlacements2

struct ScenePlacement gBilibinPlacements2[]
Initial value:
= {
PIXELS(328), 0, PIXELS(152), FACING_SOUTH, TALK_FACE_PARTY, 0 },
}
@ ELEMENT_JUPITER
Definition battle_unit.h:39
#define FLAG_DJINNI_0
the flag of Djinni 0, set once it is caught
Definition flags.h:15

Definition at line 885 of file bilibin.c.

Referenced by Bilibin_GetPlacements().

◆ gBilibinEventsOther

struct SceneEvent gBilibinEventsOther[]
Initial value:
= {
}
#define SCENE_EVENTS_END

Definition at line 893 of file bilibin.c.

Referenced by Bilibin_GetEvents().

◆ gBilibinEvents1

struct SceneEvent gBilibinEvents1[]

Definition at line 897 of file bilibin.c.

Referenced by Bilibin_GetEvents().

◆ gBilibinEvents3

struct SceneEvent gBilibinEvents3[]

Definition at line 962 of file bilibin.c.

Referenced by Bilibin_GetEvents().

◆ gBilibinEvents2

struct SceneEvent gBilibinEvents2[]
Initial value:
= {
}
@ ABILITY_MOVE
Definition ability_ids.h:15
static void Event_PushBlock(void)
Pushing a block: it slides one cell ahead with the leader behind it, if the cell is free.
Definition bilibin.c:645
static void Event_CheckAhead(void)
Checks the blocked direction before allowing another movement step.
Definition bilibin.c:331
static void Bilibin_UpdateRaisedBlockCells(void)
Updates the two passage cells according to the movable block's current row.
Definition bilibin.c:736
@ RAISED_BLOCK
Definition bilibin.c:65
@ GUST
Definition bilibin.c:65
static void Event_GustJoins(void)
Gust, Jupiter Djinni 0, joins the party on the warehouse approach.
Definition bilibin.c:103
static void Event_ReadWarehouseSign(void)
Reads McCoy's warning on the hidden warehouse.
Definition bilibin.c:152
@ EVENT_EXIT
@ EVENT_TALK
#define PSYNERGY_ON_ACTOR(ability)
#define EVENT_SCRIPT(script)
#define SEARCH(target)
#define TOUCH_WALKING_INTO(facing)
#define TOUCH_WALKING
@ SEARCH_UNNAMED

Definition at line 999 of file bilibin.c.

Referenced by Bilibin_GetEvents().

◆ gBilibin_DoorSteps6

u16 gBilibin_DoorSteps6[]
Initial value:
= {
MAP_CELL_STEP(37, 33, 4, 2, 5), MAP_CELL_STEP(33, 33, 4, 2, 5), MAP_CELL_STEPS_END,
}

Definition at line 1014 of file bilibin.c.

◆ gBilibin_DoorSteps4

u16 gBilibin_DoorSteps4[]
Initial value:
= {
MAP_CELL_STEP(35, 43, 2, 2, 5), MAP_CELL_STEP(33, 43, 2, 2, 5), MAP_CELL_STEPS_END,
}

Definition at line 1018 of file bilibin.c.

◆ gBilibin_DoorSteps5

u16 gBilibin_DoorSteps5[]
Initial value:
= {
MAP_CELL_STEP(35, 52, 2, 2, 5), MAP_CELL_STEP(33, 52, 2, 2, 5), MAP_CELL_STEPS_END,
}

Definition at line 1022 of file bilibin.c.

◆ gBilibin_DoorSteps1

u16 gBilibin_DoorSteps1[]
Initial value:
= {
MAP_CELL_STEP(35, 54, 2, 2, 5), MAP_CELL_STEP(33, 54, 2, 2, 5), MAP_CELL_STEPS_END,
}

Definition at line 1026 of file bilibin.c.

◆ gBilibin_DoorSteps0

u16 gBilibin_DoorSteps0[]
Initial value:
= {
MAP_CELL_STEP(35, 48, 2, 2, 5), MAP_CELL_STEP(33, 48, 2, 2, 5), MAP_CELL_STEPS_END,
}

Definition at line 1030 of file bilibin.c.

◆ gBilibin_DoorSteps2

u16 gBilibin_DoorSteps2[]
Initial value:
= {
MAP_CELL_STEP(35, 46, 2, 2, 5), MAP_CELL_STEP(33, 46, 2, 2, 5), MAP_CELL_STEPS_END,
}

Definition at line 1034 of file bilibin.c.

◆ gBilibin_DoorSteps3

u16 gBilibin_DoorSteps3[]
Initial value:
= {
MAP_CELL_STEP(35, 50, 2, 2, 5), MAP_CELL_STEP(33, 50, 2, 2, 5), MAP_CELL_STEPS_END,
}

Definition at line 1038 of file bilibin.c.

◆ gBilibin_DoorSteps

u16* gBilibin_DoorSteps[]
Initial value:
= {
}
u16 gBilibin_DoorSteps1[]
Definition bilibin.c:1026
u16 gBilibin_DoorSteps5[]
Definition bilibin.c:1022
u16 gBilibin_DoorSteps0[]
Definition bilibin.c:1030
u16 gBilibin_DoorSteps3[]
Definition bilibin.c:1038
u16 gBilibin_DoorSteps6[]
Definition bilibin.c:1014
u16 gBilibin_DoorSteps4[]
Definition bilibin.c:1018
u16 gBilibin_DoorSteps2[]
Definition bilibin.c:1034

Definition at line 1042 of file bilibin.c.

Referenced by Event_OpenDoorAndLeave().

◆ gBilibin_DoorCells

u32 gBilibin_DoorCells[]
Initial value:
= {
0x140036, 0x12002b, 0x130025, 0xb0029, 0xb0023, 0x90031, 0x60037,
}

Definition at line 1052 of file bilibin.c.

Referenced by Event_OpenDoorAndLeave().

◆ gBilibin_RiverBlockCells

u32 gBilibin_RiverBlockCells[]
Initial value:
= {
0x12091208, 0x1308120a, 0x130a1309, 0x1409130b, 0x140b140a,
}

Definition at line 1056 of file bilibin.c.

Referenced by Bilibin_UpdateRiverBlockCells().

◆ gBilibin_FacingCellSteps

s32 gBilibin_FacingCellSteps[]
Initial value:
= {
DIRECTION_STEP(0, 16), DIRECTION_STEP(-16, 0), DIRECTION_STEP(-16, 0),
DIRECTION_STEP(-16, 0), DIRECTION_STEP(-16, 0), DIRECTION_STEP(0, -16),
DIRECTION_STEP(0, -16), DIRECTION_STEP(0, -16), DIRECTION_STEP(0, -16),
}
#define DIRECTION_STEP(dx, dz)
Pixel step by direction: X in the upper halfword, Z in the lower.

Definition at line 1064 of file bilibin.c.

Referenced by Event_PushBlock().

◆ gBilibin_TransientEffectScript

s32 gBilibin_TransientEffectScript[]
Initial value:
= {
SC_WAIT(30),
}
#define SC_FREE
Release.
Definition objcmd.h:43
#define SC_WAIT(n)
Wait n frames.
Definition objcmd.h:16

Definition at line 1073 of file bilibin.c.

Referenced by Bilibin_SpawnRiverEffect().