player is about to die (for bones) */
| 743 | |
| 744 | /* player is about to die (for bones) */ |
| 745 | void |
| 746 | unleash_all(void) |
| 747 | { |
| 748 | struct obj *otmp; |
| 749 | struct monst *mtmp; |
| 750 | |
| 751 | for (otmp = gi.invent; otmp; otmp = otmp->nobj) |
| 752 | if (otmp->otyp == LEASH) |
| 753 | otmp->leashmon = 0; |
| 754 | for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) |
| 755 | mtmp->mleashed = 0; |
| 756 | } |
| 757 | |
| 758 | #define MAXLEASHED 2 |
| 759 |
no outgoing calls
no test coverage detected