'book' has just become cursed; if we're reading it, interrupt */
| 340 | |
| 341 | /* 'book' has just become cursed; if we're reading it, interrupt */ |
| 342 | void |
| 343 | book_cursed(struct obj *book) |
| 344 | { |
| 345 | if (book->cursed && gm.multi >= 0 |
| 346 | && go.occupation == learn && svc.context.spbook.book == book) { |
| 347 | pline("%s shut!", Tobjnam(book, "slam")); |
| 348 | set_bknown(book, 1); |
| 349 | stop_occupation(); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 354 |
no test coverage detected