return monster index if chameleon, or NON_PM if not */
| 532 | |
| 533 | /* return monster index if chameleon, or NON_PM if not */ |
| 534 | int |
| 535 | pm_to_cham(int mndx) |
| 536 | { |
| 537 | int mcham = NON_PM; |
| 538 | |
| 539 | /* |
| 540 | * As of 3.6.0 we just check M2_SHAPESHIFTER instead of having a |
| 541 | * big switch statement with hardcoded shapeshifter types here. |
| 542 | */ |
| 543 | if (ismnum(mndx) && is_shapeshifter(&mons[mndx])) |
| 544 | mcham = mndx; |
| 545 | return mcham; |
| 546 | } |
| 547 | |
| 548 | /* for deciding whether corpse will carry along full monster data */ |
| 549 | #define KEEPTRAITS(mon) \ |
no outgoing calls
no test coverage detected