| 145 | } |
| 146 | |
| 147 | staticfn void |
| 148 | m_initthrow(struct monst *mtmp, int otyp, int oquan) |
| 149 | { |
| 150 | struct obj *otmp; |
| 151 | |
| 152 | otmp = mksobj(otyp, TRUE, FALSE); |
| 153 | otmp->quan = (long) rn1(oquan, 3); |
| 154 | otmp->owt = weight(otmp); |
| 155 | if (otyp == ORCISH_ARROW) |
| 156 | otmp->opoisoned = TRUE; |
| 157 | (void) mpickobj(mtmp, otmp); |
| 158 | } |
| 159 | |
| 160 | staticfn void |
| 161 | m_initweap(struct monst *mtmp) |
no test coverage detected