also called from teleport.c for scroll of teleportation */
| 67 | |
| 68 | /* also called from teleport.c for scroll of teleportation */ |
| 69 | void |
| 70 | learnscroll(struct obj *sobj) |
| 71 | { |
| 72 | /* it's implied that sobj->dknown is set; |
| 73 | we couldn't be reading this scroll otherwise */ |
| 74 | if (sobj->oclass != SPBOOK_CLASS) |
| 75 | (void) learnscrolltyp(sobj->otyp); |
| 76 | } |
| 77 | |
| 78 | /* max spe is +99, min is -99 */ |
| 79 | staticfn void |
no test coverage detected