monster mtmp learns all traps of type ttyp */
| 1626 | |
| 1627 | /* monster mtmp learns all traps of type ttyp */ |
| 1628 | void |
| 1629 | mon_learns_traps(struct monst *mtmp, int ttyp) |
| 1630 | { |
| 1631 | if (ttyp == ALL_TRAPS) |
| 1632 | mtmp->mtrapseen = ~0L; |
| 1633 | else if (ttyp == NO_TRAP) |
| 1634 | mtmp->mtrapseen = 0L; |
| 1635 | else |
| 1636 | mtmp->mtrapseen |= (1L << (ttyp - 1)); |
| 1637 | } |
| 1638 | |
| 1639 | /* monsters see a trap trigger, and remember it */ |
| 1640 | void |
no outgoing calls
no test coverage detected