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

Function lminion

src/minion.c:428–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428int
429lminion(void)
430{
431 int tryct;
432 struct permonst *ptr;
433
434 for (tryct = 0; tryct < 20; tryct++) {
435 ptr = mkclass(S_ANGEL, 0);
436 if (ptr && !is_lord(ptr))
437 return monsndx(ptr);
438 }
439
440 return NON_PM;
441}
442
443int
444ndemon(aligntyp atyp) /* A_NONE is used for 'any alignment' */

Callers 3

msummonFunction · 0.85
summon_minionFunction · 0.85
llordFunction · 0.85

Calls 1

mkclassFunction · 0.85

Tested by

no test coverage detected