return inventory object of type 'type' if hero has one, otherwise Null */
| 1492 | |
| 1493 | /* return inventory object of type 'type' if hero has one, otherwise Null */ |
| 1494 | struct obj * |
| 1495 | carrying(int type) |
| 1496 | { |
| 1497 | struct obj *otmp; |
| 1498 | |
| 1499 | /* this could be replaced by 'return m_carrying(&gy.youmonst, type);' */ |
| 1500 | for (otmp = gi.invent; otmp; otmp = otmp->nobj) |
| 1501 | if (otmp->otyp == type) |
| 1502 | break; |
| 1503 | return otmp; |
| 1504 | } |
| 1505 | |
| 1506 | /* return inventory object of type that will petrify on touch */ |
| 1507 | struct obj * |
no outgoing calls