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

Function glow_strength

src/artifact.c:2441–2448  ·  view source on GitHub ↗

relative strength that Sting is glowing (0..3), to select verb */

Source from the content-addressed store, hash-verified

2439
2440/* relative strength that Sting is glowing (0..3), to select verb */
2441staticfn int
2442glow_strength(int count)
2443{
2444 /* glow strength should also be proportional to proximity and
2445 probably difficulty, but we don't have that information and
2446 gathering it is more trouble than this would be worth */
2447 return (count > 12) ? 3 : (count > 4) ? 2 : (count > 0);
2448}
2449
2450const char *
2451glow_verb(int count, /* 0 means blind rather than no applicable creatures */

Callers 2

glow_verbFunction · 0.85
Sting_effectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected