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

Function mcureblindness

src/muse.c:2868–2880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2866}
2867
2868RESTORE_WARNING_FORMAT_NONLITERAL
2869
2870/* cure mon's blindness (use_defensive, dog_eat, meatobj) */
2871void
2872mcureblindness(struct monst *mon, boolean verbos)
2873{
2874 if (!mon->mcansee) {
2875 mon->mcansee = 1;
2876 mon->mblinded = 0;
2877 if (verbos && haseyes(mon->data))
2878 pline_mon(mon, "%s can see again.", Monnam(mon));
2879 }
2880}
2881
2882/* TRUE if the monster ate something */
2883boolean

Callers 5

potionhitFunction · 0.85
engulfer_digests_foodFunction · 0.85
m_consume_objFunction · 0.85
bhitmFunction · 0.85
use_defensiveFunction · 0.85

Calls 2

pline_monFunction · 0.85
MonnamFunction · 0.85

Tested by

no test coverage detected