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

Method GetPet

internal/scripting/actor_func.go:715–720  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713}
714
715func (a ScriptActor) GetPet() *ScriptPet {
716 if !a.characterRecord.Pet.Exists() {
717 return nil
718 }
719 return GetPet(&a.characterRecord.Pet, a.userId)
720}
721
722func (a ScriptActor) GrantXP(xpAmt int, reason string) {
723 if a.mobInstanceId > 0 {

Callers

nothing calls this directly

Calls 2

GetPetFunction · 0.85
ExistsMethod · 0.45

Tested by

no test coverage detected