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

Function deal_with_overcrowding

src/mon.c:3985–3995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3983}
3984
3985void
3986deal_with_overcrowding(struct monst *mtmp)
3987{
3988 if (In_endgame(&u.uz)) {
3989 debugpline1("overcrowding: elemental_clog on %s", m_monnam(mtmp));
3990 elemental_clog(mtmp);
3991 } else {
3992 debugpline1("overcrowding: sending %s into limbo", m_monnam(mtmp));
3993 m_into_limbo(mtmp);
3994 }
3995}
3996
3997/* like mnexto() but requires destination to be directly accessible */
3998void

Callers 4

dismount_steedFunction · 0.85
minliquid_coreFunction · 0.85
mnextoFunction · 0.85
mneartoFunction · 0.85

Calls 3

m_monnamFunction · 0.85
elemental_clogFunction · 0.85
m_into_limboFunction · 0.85

Tested by

no test coverage detected