MCPcopy Index your code
hub / github.com/NetHack/NetHack / peffect_blindness

Function peffect_blindness

src/potion.c:1072–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070}
1071
1072staticfn void
1073peffect_blindness(struct obj *otmp)
1074{
1075 if (Blind || ((HBlinded || EBlinded) && BBlinded))
1076 gp.potion_nothing++;
1077 make_blinded(itimeout_incr(BlindedTimeout,
1078 rn1(200, 250 - 125 * bcsign(otmp))),
1079 (boolean) !Blind);
1080}
1081
1082staticfn void
1083peffect_gain_level(struct obj *otmp)

Callers 1

peffectsFunction · 0.85

Calls 3

make_blindedFunction · 0.85
itimeout_incrFunction · 0.85
bcsignFunction · 0.85

Tested by

no test coverage detected