Alchemy
Loading...
Searching...
No Matches

tolbi_ship_mast.c File Reference

The mast of the ship across the Karagol Sea, where the lookout announces the course, the approaching monsters and land, and an Anchor Charm can be found. More...

Go to the source code of this file.

Functions

static void TolbiShipMast_SetupHiddenLeaderLookout (void)
 Frames the lookout with the leader moved out of view, then announces course.
static void TolbiShipMast_SetupVisibleLeaderLookout (void)
 Keeps the leader visible for the course announcement.
static void TolbiShipMast_AnnounceClearCourse (void)
 The lookout scans both sides, announces a clear course and leaves by exit 10.
static void TolbiShipMast_RunAvastScene (void)
 Stages four approaching actors and the lookout's reaction. "Avast!".
static void TolbiShipMast_ShowMonsters (void)
 Repeats actor 9's approach before the lookout reports monsters.
static void TolbiShipMast_InitializeDriftingActor (s32 actorId)
 Initializes a drifting actor, retaining the random draws' original order.
static void TolbiShipMast_RunLandingSequence (void)
 Moves the drifting group aside, then stages the two landing actors.
static void TolbiShipMast_AnnounceLand (void)
 Walks the seven actors away, then the lookout announces land.
static void TolbiShipMast_UpdateSway (void)
 Adds horizontal and vertical sway to the camera origin each frame.
static s32 TolbiShipMast_GetRowingBalance (void)
 How evenly the chosen passengers row: the values of those at the west seats (the first and third filled) less those at the east seats.
static s32 TolbiShipMast_GetSeatRowValue (u32 seat)
 The rowing value of the passenger chosen for a seat, or 0 while it is empty.
static s32 TolbiShipMast_FollowCameraAndRotate (struct ScriptInterpreter *interpreter)
 Keeps the effect actor relative to the saved camera origin and rotates it.
static s32 TolbiShipMast_RandomizeLookoutFacing (struct ScriptInterpreter *interpreter)
 A random sample of 6 or 9 turns the lookout to either side of north.
static void TolbiShipMast_GrowActorScale (union FieldObject *fieldObject)
 Grows both axes by the same amount until the actor reaches full scale.
static s32 TolbiShipMast_SwayActor (struct ScriptInterpreter *interpreter)
 Randomly reverses horizontal drift and vertical bobbing at their limits.
static s32 TolbiShipMast_ShrinkAndStopActor (struct ScriptInterpreter *interpreter)
 Shrinks both axes; once small enough, clears the actor's position and speed.
const struct SceneEntrance * TolbiShipMast_GetEntrances (void)
 Returns the entrances from the ship's deck and scripted sequences.
const struct SceneRegion * TolbiShipMast_GetRegions (void)
 Returns the ladder's three-dimensional activation region.
const u32 * TolbiShipMast_GetExits (void)
 Returns exits to the deck and the continuing ship scenes.
const struct ScenePlacement * TolbiShipMast_GetPlacements (void)
 Returns the lookout's initial placement table.
const struct SceneEvent * TolbiShipMast_GetEvents (void)
 Returns the ladder, lookout dialogue and Anchor Charm search events.
static void TolbiShipMast_ClimbDownLadder (void)
 Touching the ladder starts the descent.
static void TolbiShipMast_FindAnchorCharm (void)
 Gives the Anchor Charm once either discovery flag permits the search.
s32 TolbiShipMast_Initialize (void)
 Starts the ship sway when allowed, then runs this entrance's mast sequence.
static void TolbiShipMast_StopDriftingActor (struct FieldActor *actor)
 Clears the movement left by a drifting script before its staged approach.
static void TolbiShipMast_InitializeDriftingGroup (void)
 Gives each of the seven approaching actors its own random drift and bob.
static void TolbiShipMast_PrepareGroupDeparture (void)
 Stops the drifting actions and gives the group its departure walking speed.

Variables

s32 gTolbiShipMast_DriftY
s32 gTolbiShipMast_DriftX
s32 gTolbiShipMast_SwayY
s32 gTolbiShipMast_SwayUnused
s32 gTolbiShipMast_CameraCenter [2]
s32 gTolbiShipMast_CameraOrigin [2]
s32 gTolbiShipMast_SwayX
s32 gTolbiShipMast_FollowCameraActions []
s32 gTolbiShipMast_LookoutActions []
s32 gTolbiShipMast_DriftActions []
s32 gTolbiShipMast_WaveActions []
s32 gTolbiShipMast_EnsembleWalk9 []
s32 gTolbiShipMast_EnsembleWalk10 []
s32 gTolbiShipMast_EnsembleWalk11 []
s32 gTolbiShipMast_EnsembleWalk12 []
s32 gTolbiShipMast_EnsembleWalk13 []
s32 gTolbiShipMast_EnsembleWalk14 []
u32 gTolbiShipMast_EnsembleWalk15 []
struct SceneEntrance gTolbiShipMast_Entrances []
struct SceneRegion gTolbiShipMast_Regions []
u32 gTolbiShipMast_Exits []
struct ScenePlacement gTolbiShipMast_Placements []
struct ScenePlacement gTolbiShipMast_StagingObjects []
struct ScenePlacement gTolbiShipMast_EnsembleObjects []
struct ScenePlacement gTolbiShipMast_LandingObjects []
struct SceneEvent gTolbiShipMast_Events []
u32 gTolbiShipMast_PassengerRowValues []
 Each passenger's rowing value, in the order of their actors in the hold from 8.

Detailed Description

The mast of the ship across the Karagol Sea, where the lookout announces the course, the approaching monsters and land, and an Anchor Charm can be found.

Definition in file tolbi_ship_mast.c.

Function Documentation

◆ TolbiShipMast_SetupHiddenLeaderLookout()

void TolbiShipMast_SetupHiddenLeaderLookout ( void )
static

Frames the lookout with the leader moved out of view, then announces course.

Definition at line 270 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_SetupHiddenLeaderLookout().

◆ TolbiShipMast_SetupVisibleLeaderLookout()

void TolbiShipMast_SetupVisibleLeaderLookout ( void )
static

Keeps the leader visible for the course announcement.

Definition at line 284 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_SetupVisibleLeaderLookout().

◆ TolbiShipMast_AnnounceClearCourse()

void TolbiShipMast_AnnounceClearCourse ( void )
static

The lookout scans both sides, announces a clear course and leaves by exit 10.

Definition at line 301 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceClearCourse(), TolbiShipMast_SetupHiddenLeaderLookout(), and TolbiShipMast_SetupVisibleLeaderLookout().

◆ TolbiShipMast_RunAvastScene()

void TolbiShipMast_RunAvastScene ( void )
static

Stages four approaching actors and the lookout's reaction. "Avast!".

Definition at line 323 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_RunAvastScene().

◆ TolbiShipMast_ShowMonsters()

void TolbiShipMast_ShowMonsters ( void )
static

Repeats actor 9's approach before the lookout reports monsters.

Definition at line 446 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_ShowMonsters().

◆ TolbiShipMast_InitializeDriftingActor()

void TolbiShipMast_InitializeDriftingActor ( s32 actorId)
static

Initializes a drifting actor, retaining the random draws' original order.

Definition at line 533 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_InitializeDriftingActor(), TolbiShipMast_InitializeDriftingGroup(), and TolbiShipMast_ShowMonsters().

◆ TolbiShipMast_RunLandingSequence()

void TolbiShipMast_RunLandingSequence ( void )
static

Moves the drifting group aside, then stages the two landing actors.

Definition at line 556 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_RunLandingSequence().

◆ TolbiShipMast_AnnounceLand()

void TolbiShipMast_AnnounceLand ( void )
static

Walks the seven actors away, then the lookout announces land.

Definition at line 657 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand(), and TolbiShipMast_Initialize().

◆ TolbiShipMast_UpdateSway()

void TolbiShipMast_UpdateSway ( void )
static

Adds horizontal and vertical sway to the camera origin each frame.

Definition at line 706 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_UpdateSway().

◆ TolbiShipMast_GetRowingBalance()

s32 TolbiShipMast_GetRowingBalance ( void )
static

How evenly the chosen passengers row: the values of those at the west seats (the first and third filled) less those at the east seats.

Definition at line 724 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand(), and TolbiShipMast_GetRowingBalance().

◆ TolbiShipMast_GetSeatRowValue()

s32 TolbiShipMast_GetSeatRowValue ( u32 seat)
static

The rowing value of the passenger chosen for a seat, or 0 while it is empty.

Definition at line 736 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetRowingBalance(), and TolbiShipMast_GetSeatRowValue().

◆ TolbiShipMast_FollowCameraAndRotate()

s32 TolbiShipMast_FollowCameraAndRotate ( struct ScriptInterpreter * interpreter)
static

Keeps the effect actor relative to the saved camera origin and rotates it.

Definition at line 61 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_FollowCameraAndRotate().

◆ TolbiShipMast_RandomizeLookoutFacing()

s32 TolbiShipMast_RandomizeLookoutFacing ( struct ScriptInterpreter * interpreter)
static

A random sample of 6 or 9 turns the lookout to either side of north.

Definition at line 77 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_RandomizeLookoutFacing().

◆ TolbiShipMast_GrowActorScale()

void TolbiShipMast_GrowActorScale ( union FieldObject * fieldObject)
static

Grows both axes by the same amount until the actor reaches full scale.

Definition at line 95 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GrowActorScale(), and TolbiShipMast_RunAvastScene().

◆ TolbiShipMast_SwayActor()

s32 TolbiShipMast_SwayActor ( struct ScriptInterpreter * interpreter)
static

Randomly reverses horizontal drift and vertical bobbing at their limits.

Definition at line 104 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_SwayActor().

◆ TolbiShipMast_ShrinkAndStopActor()

s32 TolbiShipMast_ShrinkAndStopActor ( struct ScriptInterpreter * interpreter)
static

Shrinks both axes; once small enough, clears the actor's position and speed.

Definition at line 149 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_ShrinkAndStopActor().

◆ TolbiShipMast_GetEntrances()

const struct SceneEntrance * TolbiShipMast_GetEntrances ( void )

Returns the entrances from the ship's deck and scripted sequences.

Definition at line 169 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetEntrances().

◆ TolbiShipMast_GetRegions()

const struct SceneRegion * TolbiShipMast_GetRegions ( void )

Returns the ladder's three-dimensional activation region.

Definition at line 174 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetRegions().

◆ TolbiShipMast_GetExits()

const u32 * TolbiShipMast_GetExits ( void )

Returns exits to the deck and the continuing ship scenes.

Definition at line 179 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetExits().

◆ TolbiShipMast_GetPlacements()

const struct ScenePlacement * TolbiShipMast_GetPlacements ( void )

Returns the lookout's initial placement table.

Definition at line 182 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetPlacements().

◆ TolbiShipMast_GetEvents()

const struct SceneEvent * TolbiShipMast_GetEvents ( void )

Returns the ladder, lookout dialogue and Anchor Charm search events.

Definition at line 187 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetEvents().

◆ TolbiShipMast_ClimbDownLadder()

void TolbiShipMast_ClimbDownLadder ( void )
static

Touching the ladder starts the descent.

Definition at line 192 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_ClimbDownLadder().

◆ TolbiShipMast_FindAnchorCharm()

void TolbiShipMast_FindAnchorCharm ( void )
static

Gives the Anchor Charm once either discovery flag permits the search.

Definition at line 195 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_FindAnchorCharm().

◆ TolbiShipMast_Initialize()

s32 TolbiShipMast_Initialize ( void )

Starts the ship sway when allowed, then runs this entrance's mast sequence.

Definition at line 207 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize().

◆ TolbiShipMast_StopDriftingActor()

void TolbiShipMast_StopDriftingActor ( struct FieldActor * actor)
inlinestatic

Clears the movement left by a drifting script before its staged approach.

Definition at line 408 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_ShowMonsters(), and TolbiShipMast_StopDriftingActor().

◆ TolbiShipMast_InitializeDriftingGroup()

void TolbiShipMast_InitializeDriftingGroup ( void )
inlinestatic

Gives each of the seven approaching actors its own random drift and bob.

Definition at line 417 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_InitializeDriftingGroup(), TolbiShipMast_RunLandingSequence(), and TolbiShipMast_ShowMonsters().

◆ TolbiShipMast_PrepareGroupDeparture()

void TolbiShipMast_PrepareGroupDeparture ( void )
inlinestatic

Stops the drifting actions and gives the group its departure walking speed.

Definition at line 428 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_PrepareGroupDeparture(), and TolbiShipMast_RunLandingSequence().

Variable Documentation

◆ gTolbiShipMast_DriftY

s32 gTolbiShipMast_DriftY

Definition at line 51 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_UpdateSway().

◆ gTolbiShipMast_DriftX

s32 gTolbiShipMast_DriftX

Definition at line 52 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_UpdateSway().

◆ gTolbiShipMast_SwayY

s32 gTolbiShipMast_SwayY

Definition at line 53 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_UpdateSway().

◆ gTolbiShipMast_SwayUnused

s32 gTolbiShipMast_SwayUnused

Definition at line 54 of file tolbi_ship_mast.c.

◆ gTolbiShipMast_CameraCenter

s32 gTolbiShipMast_CameraCenter[2]

◆ gTolbiShipMast_CameraOrigin

s32 gTolbiShipMast_CameraOrigin[2]

◆ gTolbiShipMast_SwayX

s32 gTolbiShipMast_SwayX

Definition at line 57 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_UpdateSway().

◆ gTolbiShipMast_FollowCameraActions

s32 gTolbiShipMast_FollowCameraActions[]
Initial value:
= {
SC_WAIT(1),
SC_WAIT(1),
SC_LOOP(24, SC_TO(1)),
SC_POS(0, 0, 0),
SC_WAIT(1),
}
#define Q16_ONE
One in the engine's signed 16.16 fixed-point format.
Definition fixed_math.h:10
#define SC_LABEL(n)
Branch destination.
Definition objcmd.h:11
#define SC_LOOP(n, to)
Repeat up to n times.
Definition objcmd.h:28
#define SC_POS(x, y, z)
Set position.
Definition objcmd.h:18
#define SC_TO(n)
Definition objcmd.h:12
#define SC_ADD(w, v)
Definition objcmd.h:38
#define SC_WAIT(n)
Wait n frames.
Definition objcmd.h:16
#define SC_TOP
Script start.
Definition objcmd.h:13
#define SC_END
Return to the main script.
Definition objcmd.h:32
@ SW_SCALE_Y
Definition objcmd.h:63
@ SW_SCALE_X
Definition objcmd.h:62
#define SC_CALL(fn)
Definition objcmd.h:50
static s32 TolbiShipMast_FollowCameraAndRotate(struct ScriptInterpreter *interpreter)
Keeps the effect actor relative to the saved camera origin and rotates it.

Definition at line 761 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_RunAvastScene().

◆ gTolbiShipMast_LookoutActions

s32 gTolbiShipMast_LookoutActions[]
Initial value:
= {
}
static s32 TolbiShipMast_RandomizeLookoutFacing(struct ScriptInterpreter *interpreter)
A random sample of 6 or 9 turns the lookout to either side of north.

Definition at line 778 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_RunAvastScene(), TolbiShipMast_RunLandingSequence(), and TolbiShipMast_ShowMonsters().

◆ gTolbiShipMast_DriftActions

s32 gTolbiShipMast_DriftActions[]
Initial value:
= {
}
static s32 TolbiShipMast_SwayActor(struct ScriptInterpreter *interpreter)
Randomly reverses horizontal drift and vertical bobbing at their limits.

Definition at line 782 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_InitializeDriftingActor().

◆ gTolbiShipMast_WaveActions

s32 gTolbiShipMast_WaveActions[]
Initial value:
= {
SC_ADD(SW_SCALE_X, -5 * Q16_ONE / 16),
SC_WAIT(1),
SC_WAIT(1),
SC_WAIT(1),
SC_WAIT(1),
}
#define SC_SET(w, v)
Write a work value.
Definition objcmd.h:37
#define SC_FOREVER
Definition objcmd.h:14

Definition at line 786 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_RunLandingSequence().

◆ gTolbiShipMast_EnsembleWalk9

s32 gTolbiShipMast_EnsembleWalk9[]
Initial value:
= {
SC_MOVE(PIXELS(72), 0, PIXELS(216)),
SC_MOVE(PIXELS(152), 0, PIXELS(196)),
}
#define PIXELS(value)
#define SC_SYNC
Wait for arrival.
Definition objcmd.h:17
#define SC_MOVE(x, y, z)
Move toward the target.
Definition objcmd.h:19
static s32 TolbiShipMast_ShrinkAndStopActor(struct ScriptInterpreter *interpreter)
Shrinks both axes; once small enough, clears the actor's position and speed.

Definition at line 804 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand().

◆ gTolbiShipMast_EnsembleWalk10

s32 gTolbiShipMast_EnsembleWalk10[]
Initial value:

Definition at line 812 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand().

◆ gTolbiShipMast_EnsembleWalk11

s32 gTolbiShipMast_EnsembleWalk11[]
Initial value:

Definition at line 820 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand().

◆ gTolbiShipMast_EnsembleWalk12

s32 gTolbiShipMast_EnsembleWalk12[]
Initial value:

Definition at line 828 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand().

◆ gTolbiShipMast_EnsembleWalk13

s32 gTolbiShipMast_EnsembleWalk13[]
Initial value:

Definition at line 836 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand().

◆ gTolbiShipMast_EnsembleWalk14

s32 gTolbiShipMast_EnsembleWalk14[]
Initial value:

Definition at line 844 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand().

◆ gTolbiShipMast_EnsembleWalk15

u32 gTolbiShipMast_EnsembleWalk15[]
Initial value:
= {
SC_MOVE(PIXELS(154), 0, PIXELS(135)),
SC_MOVE(PIXELS(152), 0, PIXELS(196)),
0x9090000, 0xd70090d, 0xdb315cb, 0x15f5164c,
0x1f0e1aad, 0x1f6f227a, 0x23f223b1, 0x2bf727f4,
}

Definition at line 853 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand().

◆ gTolbiShipMast_Entrances

struct SceneEntrance gTolbiShipMast_Entrances[]
Initial value:
= {
{ 0, CONDITION_ALWAYS, 165, 0, 235, FACING_NORTH, 0, -1, -1, -1, -1, 0 },
{ 1, CONDITION_ALWAYS, 184, 56, 352, FACING_NORTH, 0, -1, -1, -1, -1, 0 },
{ 10, CONDITION_ALWAYS, 164, 96, 321, FACING_NORTH, 0, -1, -1, -1, -1, 0 },
{ 11, CONDITION_ALWAYS, 164, 96, 321, FACING_NORTH, 0, -1, -1, -1, -1, 0 },
{ 12, CONDITION_ALWAYS, 164, 96, 321, FACING_NORTH, 0, -1, -1, -1, -1, 0 },
{ 13, CONDITION_ALWAYS, 164, 96, 321, FACING_NORTH, 0, -1, -1, -1, -1, 0 },
{ 14, CONDITION_ALWAYS, 164, 96, 321, 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

Definition at line 864 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetEntrances().

◆ gTolbiShipMast_Regions

struct SceneRegion gTolbiShipMast_Regions[]
Initial value:
= {
{176, 16, 348, 192, 32, 364, -1, 1},
{-1, 0, 0, 0, 0, 0, 0, 0},
}

Definition at line 875 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetRegions().

◆ gTolbiShipMast_Exits

u32 gTolbiShipMast_Exits[]
Initial value:
= {
SCENE_EXIT(1, 109, 4),
SCENE_EXIT(10, 111, 10),
SCENE_EXIT(11, 111, 13),
SCENE_EXIT(12, 109, 13),
SCENE_EXIT(13, 109, 14),
SCENE_EXIT(14, 109, 17),
SCENE_EXIT(15, 109, 19),
}
#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 880 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetExits().

◆ gTolbiShipMast_Placements

struct ScenePlacement gTolbiShipMast_Placements[]
Initial value:
= {
}
@ FACING_STEP
Definition field_scene.h:36
@ TALK_FACE_PARTY
@ ACTOR_STAND
@ FACING_NORTHWEST
Definition field_scene.h:31

Definition at line 892 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetPlacements().

◆ gTolbiShipMast_StagingObjects

struct ScenePlacement gTolbiShipMast_StagingObjects[]
Initial value:
= {
{ 0x11e, CONDITION_ALWAYS, 7,
{ 0xbd, CONDITION_ALWAYS, 7,
{ 0xbd, CONDITION_ALWAYS, 7,
{ 0xbd, CONDITION_ALWAYS, 7,
}
@ TALK_KEEP_FACING
#define PLACEMENT_SHARE_PREVIOUS_SPRITE
@ FACING_SOUTH
Definition field_scene.h:28

Definition at line 898 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_RunAvastScene().

◆ gTolbiShipMast_EnsembleObjects

struct ScenePlacement gTolbiShipMast_EnsembleObjects[]
Initial value:
= {
{ 0x9b, CONDITION_ALWAYS, 7,
{ 0x9b, CONDITION_ALWAYS, 7,
{ 0x9b, CONDITION_ALWAYS, 7,
{ 0x9b, CONDITION_ALWAYS, 7,
{ 0x9b, CONDITION_ALWAYS, 7,
{ 0x9b, CONDITION_ALWAYS, 7,
{ 0x9b, CONDITION_ALWAYS, 7,
}

Definition at line 910 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_RunLandingSequence(), and TolbiShipMast_ShowMonsters().

◆ gTolbiShipMast_LandingObjects

struct ScenePlacement gTolbiShipMast_LandingObjects[]
Initial value:

Definition at line 930 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_RunLandingSequence().

◆ gTolbiShipMast_Events

struct SceneEvent gTolbiShipMast_Events[]
Initial value:
= {
{ EVENT_TALK, 8, FLAG_TOLBI_SHIP_FIRST_ATTACK_REPELLED, MSGNO(MsgTolbiShipWatchSeasHelpKaja) },
{ EVENT_TALK, 8, FLAG_TOLBI_SHIP_AT_ISLAND, MSGNO(MsgTolbiShipLookoutCannotRow) },
{ EVENT_TALK, 8, CONDITION_ALWAYS, MSGNO(MsgTolbiShipIslandMonstersUnknown) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, FLAG_TOLBI_SHIP_FIRST_ATTACK_REPELLED, MSGNO(MsgTolbiShipHiddenAnchorDiscovered) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, FLAG_TOLBI_SHIP_AT_ISLAND, MSGNO(MsgTolbiShipSeaTooVast) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, CONDITION_ALWAYS, MSGNO(MsgTolbiShipIslandTreasures) },
}
@ ABILITY_MIND_READ
Definition ability_ids.h:16
#define SCENE_EVENTS_END
@ EVENT_TALK
#define PSYNERGY_ON_ACTOR(ability)
#define EVENT_SCRIPT(script)
#define SEARCH(target)
#define TOUCH_WALKING_INTO(facing)
@ SEARCH_UNNAMED
#define FLAG_TOLBI_SHIP_ANCHOR_CHARM_FOUND
Definition flags.h:121
#define FLAG_TOLBI_SHIP_FIRST_ATTACK_REPELLED
The monster attacks fought off.
Definition flags.h:414
#define FLAG_TOLBI_SHIP_AT_ISLAND
at anchor off the island
Definition flags.h:396
static void TolbiShipMast_ClimbDownLadder(void)
Touching the ladder starts the descent.
static void TolbiShipMast_FindAnchorCharm(void)
Gives the Anchor Charm once either discovery flag permits the search.

Definition at line 938 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetEvents().

◆ gTolbiShipMast_PassengerRowValues

u32 gTolbiShipMast_PassengerRowValues[]
Initial value:
= {
7, 5, 8, 4, 9, 12, 6, 3,
0,
}

Each passenger's rowing value, in the order of their actors in the hold from 8.

Definition at line 952 of file tolbi_ship_mast.c.

Referenced by TolbiShipMast_GetSeatRowValue().