SanctuaryBeast
Defined in: server/api.d.ts:5392
A beast living in one of a room’s vivariums, as the layout saves it.
Properties
Section titled “Properties”byproduct?
Section titled “byproduct?”
optionalbyproduct?:number
Defined in: server/api.d.ts:5457
0 to 1; at 1 its byproduct is ready, and both needs were cleared as it filled.
color?
Section titled “color?”
optionalcolor?:string
Defined in: server/api.d.ts:5416
One of the species’ colors; left out, the server rolls one and keeps it.
optionalfed?:boolean
Defined in: server/api.d.ts:5447
Whether it was fed this byproduct cycle.
gender?
Section titled “gender?”
optionalgender?:"male"|"female"
Defined in: server/api.d.ts:5411
Defaults to male.
happiness?
Section titled “happiness?”
optionalhappiness?:number
Defined in: server/api.d.ts:5442
0 to 100.
optionalid?:number
Defined in: server/api.d.ts:5396
Unique within the room; left out, the room numbers it.
optionalname?:string
Defined in: server/api.d.ts:5421
Custom name, at most 64 bytes.
petted?
Section titled “petted?”
optionalpetted?:boolean
Defined in: server/api.d.ts:5452
Whether it was petted this byproduct cycle.
pregnancy?
Section titled “pregnancy?”
optionalpregnancy?:SanctuaryPregnancy
Defined in: server/api.d.ts:5462
A mother’s pregnancy, left out when she carries none.
species
Section titled “species”species:
BeastSpecies
Defined in: server/api.d.ts:5406
The game’s species id; Beast.catalog() lists them.
updatedAt?
Section titled “updatedAt?”
optionalupdatedAt?:number
Defined in: server/api.d.ts:5467
Epoch seconds the byproduct was last advanced to. Sanctuary.load advances it by the time since, on the game’s 25-minute cycle, so a room away a day comes back with every byproduct ready and every need unmet.
vivarium
Section titled “vivarium”vivarium:
"Forest"|"Swamp"|"Coastal"|"Grassland"
Defined in: server/api.d.ts:5401
The vivarium it lives in.
optionalx?:number
Defined in: server/api.d.ts:5426
Where it stands (cm, Sanctuary map frame). Left out, or off its vivarium’s island, it starts on the island.
optionaly?:number
Defined in: server/api.d.ts:5429
optionalyaw?:number
Defined in: server/api.d.ts:5437
Facing, in degrees.
optionalz?:number
Defined in: server/api.d.ts:5432