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

Method GetWornItems

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

Source from the content-addressed store, hash-verified

936}
937
938func (a ScriptActor) GetWornItems() []ScriptItem {
939 itms := make([]ScriptItem, 0)
940 for _, itm := range a.characterRecord.GetAllWornItems() {
941 itms = append(itms, newScriptItem(itm))
942 }
943 return itms
944}
945
946func (a ScriptActor) GetWornItem(slot string) *ScriptItem {
947 itm := a.characterRecord.Equipment.Get(items.ItemType(slot))

Callers

nothing calls this directly

Calls 2

newScriptItemFunction · 0.85
GetAllWornItemsMethod · 0.80

Tested by

no test coverage detected