IsMissing returns true if the pet is currently absent (MissingCountdown > 0).
()
| 123 | |
| 124 | // IsMissing returns true if the pet is currently absent (MissingCountdown > 0). |
| 125 | func (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. |