check whether a monster is carrying a locking/unlocking tool */
| 93 | |
| 94 | /* check whether a monster is carrying a locking/unlocking tool */ |
| 95 | boolean |
| 96 | monhaskey( |
| 97 | struct monst *mon, |
| 98 | boolean for_unlocking) /* true => credit card ok, false => not ok */ |
| 99 | { |
| 100 | if (for_unlocking && m_carrying(mon, CREDIT_CARD)) |
| 101 | return TRUE; |
| 102 | return m_carrying(mon, SKELETON_KEY) || m_carrying(mon, LOCK_PICK); |
| 103 | } |
| 104 | |
| 105 | void |
| 106 | mon_yells(struct monst *mon, const char *shout) |
no test coverage detected