| 189 | } |
| 190 | |
| 191 | void |
| 192 | you_were(void) |
| 193 | { |
| 194 | char qbuf[QBUFSZ]; |
| 195 | boolean controllable_poly = Polymorph_control && !(Stunned || Unaware); |
| 196 | |
| 197 | if (Unchanging || u.umonnum == u.ulycn) |
| 198 | return; |
| 199 | if (controllable_poly) { |
| 200 | /* `+4' => skip "were" prefix to get name of beast */ |
| 201 | Sprintf(qbuf, "Do you want to change into %s?", |
| 202 | an(mons[u.ulycn].pmnames[NEUTRAL] + 4)); |
| 203 | if (!paranoid_query(ParanoidWerechange, qbuf)) |
| 204 | return; |
| 205 | } else if (monster_nearby()) { |
| 206 | return; |
| 207 | } |
| 208 | gw.were_changes++; |
| 209 | (void) polymon(u.ulycn); |
| 210 | } |
| 211 | |
| 212 | void |
| 213 | you_unwere(boolean purify) |
no test coverage detected