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

Function dog_starve

src/dogmove.c:347–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347staticfn void
348dog_starve(struct monst *mtmp)
349{
350 if (mtmp->mleashed && mtmp != u.usteed)
351 Your("leash goes slack.");
352 else if (cansee(mtmp->mx, mtmp->my))
353 pline_mon(mtmp, "%s starves.", Monnam(mtmp));
354 else
355 You_feel("%s for a moment.",
356 Hallucination ? "bummed" : "sad");
357 mondied(mtmp);
358}
359
360/* hunger effects -- returns TRUE on starvation */
361staticfn boolean

Callers 1

dog_hungerFunction · 0.85

Calls 5

YourFunction · 0.85
pline_monFunction · 0.85
MonnamFunction · 0.85
You_feelFunction · 0.85
mondiedFunction · 0.85

Tested by

no test coverage detected