(slot string)
| 944 | } |
| 945 | |
| 946 | func (a ScriptActor) GetWornItem(slot string) *ScriptItem { |
| 947 | itm := a.characterRecord.Equipment.Get(items.ItemType(slot)) |
| 948 | if itm == nil || itm.ItemId <= 0 || itm.IsDisabled() { |
| 949 | return nil |
| 950 | } |
| 951 | si := newScriptItem(*itm) |
| 952 | return &si |
| 953 | } |
| 954 | |
| 955 | func (a ScriptActor) FindInBackpack(itemName string) *ScriptItem { |
| 956 | itm, found := a.characterRecord.FindInBackpack(itemName) |
nothing calls this directly
no test coverage detected