Skip to Content
The Alchemy Project

include/scene/vault_range.h

Villagers who walk about and stop when someone is close in front of them, in Vault and Tolbi (shared/vault_range.c).

Included by tolbi.c, vault.c and vault_revisit.c.

Macros

NameDescription
#definePARTNER_STOP_RANGE 32How near in front of it, in pixels, a walker stops for its partner, and for the leader: STOP_RANGE, or TALK_STOP_RANGE while a talk is pending or Mind Read is on.
#defineSTOP_RANGE 18
#defineTALK_STOP_RANGE 26

Functions

NameDescription
Sint32scVaultStopIfFacingNear (struct ACTOR *actor, struct ACTOR *target, Sint32 range, Sint32 force)Stops the actor when the target is nearer than range pixels ahead of it; returns 1 when it stopped.

Description

Villagers who walk about and stop when someone is close in front of them, in Vault and Tolbi (shared/vault_range.c).

Macros in detail

PARTNER_STOP_RANGE

#define PARTNER_STOP_RANGE 32

How near in front of it, in pixels, a walker stops for its partner, and for the leader: STOP_RANGE, or TALK_STOP_RANGE while a talk is pending or Mind Read is on. Vault's villagers stop so (scVaultStopIfFacingNear), and Tolbi's two running children stop the same way (scTolbiKidStopForTarget).

Referenced by scTolbiUpdateKid() and scVaultUpdateWalkingVillager().

Definition at line 22 of file vault_range.h.

STOP_RANGE

#define STOP_RANGE 18

Referenced by scTolbiUpdateKid(), scVaultUpdateWalkingVillager() and scVaultUpdateWomanWantingRoofFixed().

Definition at line 23 of file vault_range.h.

TALK_STOP_RANGE

#define TALK_STOP_RANGE 26

Referenced by scTolbiUpdateKid(), scVaultUpdateWalkingVillager() and scVaultUpdateWomanWantingRoofFixed().

Definition at line 24 of file vault_range.h.