send in a demon pet for the hero; exercise wisdom */
| 2130 | |
| 2131 | /* send in a demon pet for the hero; exercise wisdom */ |
| 2132 | staticfn void |
| 2133 | demonpet(void) |
| 2134 | { |
| 2135 | int i; |
| 2136 | struct permonst *pm; |
| 2137 | struct monst *dtmp; |
| 2138 | |
| 2139 | pline("Some hell-p has arrived!"); |
| 2140 | i = !rn2(6) ? ndemon(u.ualign.type) : NON_PM; |
| 2141 | pm = i != NON_PM ? &mons[i] : gy.youmonst.data; |
| 2142 | if ((dtmp = makemon(pm, u.ux, u.uy, NO_MM_FLAGS)) != 0) |
| 2143 | (void) tamedog(dtmp, (struct obj *) 0, FALSE); |
| 2144 | exercise(A_WIS, TRUE); |
| 2145 | } |
| 2146 | |
| 2147 | staticfn boolean |
| 2148 | theft_petrifies(struct obj *otmp) |