check if a monster is carrying an item of a particular type */
| 1402 | |
| 1403 | /* check if a monster is carrying an item of a particular type */ |
| 1404 | struct obj * |
| 1405 | m_carrying(struct monst *mtmp, int type) |
| 1406 | { |
| 1407 | struct obj *otmp; |
| 1408 | |
| 1409 | for (otmp = (mtmp == &gy.youmonst) ? gi.invent : mtmp->minvent; otmp; |
| 1410 | otmp = otmp->nobj) |
| 1411 | if (otmp->otyp == type) |
| 1412 | break; |
| 1413 | return otmp; |
| 1414 | } |
| 1415 | |
| 1416 | void |
| 1417 | hit_bars( |
no outgoing calls
no test coverage detected