(itemName string)
| 210 | } |
| 211 | |
| 212 | func (p ScriptPet) FindItem(itemName string) *ScriptItem { |
| 213 | if p.petRecord == nil { |
| 214 | return nil |
| 215 | } |
| 216 | itm, found := p.petRecord.FindItem(itemName) |
| 217 | if !found { |
| 218 | return nil |
| 219 | } |
| 220 | si := newScriptItem(itm) |
| 221 | return &si |
| 222 | } |
| 223 | |
| 224 | func (p ScriptPet) StoreItem(itm ScriptItem) bool { |
| 225 | if p.petRecord == nil || itm.itemRecord == nil { |
nothing calls this directly
no test coverage detected