MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / IsMissing

Method IsMissing

internal/scripting/pet_func.go:125–130  ·  view source on GitHub ↗

IsMissing returns true if the pet is currently absent (MissingCountdown > 0).

()

Source from the content-addressed store, hash-verified

123
124// IsMissing returns true if the pet is currently absent (MissingCountdown > 0).
125func (p ScriptPet) IsMissing() bool {
126 if p.petRecord != nil {
127 return p.petRecord.IsMissing()
128 }
129 return false
130}
131
132// GoMissing causes the pet to go absent for the given number of rounds.
133// Pass 0 to return the pet immediately, firing PetReturn instead of PetLeave.

Callers 1

GoMissingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected