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

Method FindInBackpack

internal/scripting/actor_func.go:955–962  ·  view source on GitHub ↗
(itemName string)

Source from the content-addressed store, hash-verified

953}
954
955func (a ScriptActor) FindInBackpack(itemName string) *ScriptItem {
956 itm, found := a.characterRecord.FindInBackpack(itemName)
957 if !found {
958 return nil
959 }
960 si := newScriptItem(itm)
961 return &si
962}
963
964func (a ScriptActor) FindOnBody(itemName string) *ScriptItem {
965 itm, found := a.characterRecord.FindOnBody(itemName)

Callers

nothing calls this directly

Calls 1

newScriptItemFunction · 0.85

Tested by

no test coverage detected