MCPcopy Create free account
hub / github.com/NetHack/NetHack / ok_to_obliterate

Function ok_to_obliterate

src/mon.c:3863–3875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3861}
3862
3863staticfn boolean
3864ok_to_obliterate(struct monst *mtmp)
3865{
3866 /*
3867 * Add checks for monsters that should not be obliterated
3868 * here (return FALSE).
3869 */
3870 if (mtmp->data == &mons[PM_WIZARD_OF_YENDOR] || is_rider(mtmp->data)
3871 || has_emin(mtmp) || has_epri(mtmp) || has_eshk(mtmp)
3872 || mtmp == u.ustuck || mtmp == u.usteed)
3873 return FALSE;
3874 return TRUE;
3875}
3876
3877void
3878elemental_clog(struct monst *mon)

Callers 1

elemental_clogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected