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

Function peffect_enlightenment

src/potion.c:794–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794staticfn void
795peffect_enlightenment(struct obj *otmp)
796{
797 if (otmp->cursed) {
798 gp.potion_unkn++;
799 You("have an uneasy feeling...");
800 exercise(A_WIS, FALSE);
801 } else {
802 if (otmp->blessed) {
803 (void) adjattrib(A_INT, 1, FALSE);
804 (void) adjattrib(A_WIS, 1, FALSE);
805 }
806 do_enlightenment_effect();
807 }
808}
809
810staticfn void
811peffect_invisibility(struct obj *otmp)

Callers 1

peffectsFunction · 0.85

Calls 4

YouFunction · 0.85
exerciseFunction · 0.85
adjattribFunction · 0.85
do_enlightenment_effectFunction · 0.85

Tested by

no test coverage detected