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

Function grapple_range

src/apply.c:3685–3698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3683}
3684
3685staticfn int
3686grapple_range(void)
3687{
3688 int typ = uwep_skill_type();
3689 int max_range = 4;
3690
3691 if (typ == P_NONE || P_SKILL(typ) <= P_BASIC)
3692 max_range = 4;
3693 else if (P_SKILL(typ) == P_SKILLED)
3694 max_range = 5;
3695 else
3696 max_range = 8;
3697 return max_range;
3698}
3699
3700staticfn boolean
3701can_grapple_location(coordxy x, coordxy y)

Callers 2

can_grapple_locationFunction · 0.85
use_grappleFunction · 0.85

Calls 1

uwep_skill_typeFunction · 0.85

Tested by

no test coverage detected