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

Function kick_dumb

src/dokick.c:863–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863staticfn void
864kick_dumb(coordxy x, coordxy y)
865{
866 exercise(A_DEX, FALSE);
867 if (martial() || ACURR(A_DEX) >= 16 || rn2(3)) {
868 You("kick at empty space.");
869 if (Blind)
870 feel_location(x, y);
871 } else {
872 pline("Dumb move! You strain a muscle.");
873 exercise(A_STR, FALSE);
874 set_wounded_legs(RIGHT_SIDE, 5 + rnd(5));
875 }
876 if ((Is_airlevel(&u.uz) || Levitation) && rn2(2))
877 hurtle(-u.dx, -u.dy, 1, TRUE);
878}
879
880staticfn void
881kick_ouch(coordxy x, coordxy y, const char *kickobjnam)

Callers 2

kick_doorFunction · 0.85
kick_nondoorFunction · 0.85

Calls 8

exerciseFunction · 0.85
rn2Function · 0.85
YouFunction · 0.85
feel_locationFunction · 0.85
set_wounded_legsFunction · 0.85
rndFunction · 0.85
hurtleFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected