| 2145 | } |
| 2146 | |
| 2147 | staticfn boolean |
| 2148 | theft_petrifies(struct obj *otmp) |
| 2149 | { |
| 2150 | if (uarmg || otmp->otyp != CORPSE |
| 2151 | || !touch_petrifies(&mons[otmp->corpsenm]) || Stone_resistance) |
| 2152 | return FALSE; |
| 2153 | |
| 2154 | #if 0 /* no poly_when_stoned() critter has theft capability */ |
| 2155 | if (poly_when_stoned(gy.youmonst.data) && polymon(PM_STONE_GOLEM)) { |
| 2156 | display_nhwindow(WIN_MESSAGE, FALSE); /* --More-- */ |
| 2157 | return TRUE; |
| 2158 | } |
| 2159 | #endif |
| 2160 | |
| 2161 | /* stealing this corpse is fatal... */ |
| 2162 | instapetrify(corpse_xname(otmp, "stolen", CXN_ARTICLE)); |
| 2163 | /* apparently wasn't fatal after all... */ |
| 2164 | return TRUE; |
| 2165 | } |
| 2166 | |
| 2167 | /* |
| 2168 | * Player uses theft attack against monster. |
no test coverage detected