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

Function disarm_landmine

src/trap.c:5593–5603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5591}
5592
5593staticfn int
5594disarm_landmine(struct trap *ttmp) /* Helge Hafting */
5595{
5596 int fails = try_disarm(ttmp, FALSE);
5597
5598 if (fails < 2)
5599 return fails;
5600 You("disarm %s land mine.", the_your[ttmp->madeby_u]);
5601 cnv_trap_obj(LAND_MINE, 1, ttmp, FALSE);
5602 return 1;
5603}
5604
5605/* getobj callback for object to disarm a squeaky board with */
5606staticfn int

Callers 1

untrapFunction · 0.85

Calls 3

try_disarmFunction · 0.85
YouFunction · 0.85
cnv_trap_objFunction · 0.85

Tested by

no test coverage detected