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

Function reg_damg

src/region.c:650–656  ·  view source on GitHub ↗

per-turn damage inflicted by visible region; hides details from caller */

Source from the content-addressed store, hash-verified

648
649/* per-turn damage inflicted by visible region; hides details from caller */
650int
651reg_damg(NhRegion *reg)
652{
653 int damg = (!reg->visible || reg->ttl == -2L) ? 0 : reg->arg.a_int;
654
655 return damg;
656}
657
658/* check whether current level has any visible regions */
659boolean

Callers 3

avoid_trap_andor_regionFunction · 0.85
look_hereFunction · 0.85
ustatuslineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected