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

Function reset_utrap

src/trap.c:1044–1057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044void
1045reset_utrap(boolean msg)
1046{
1047 boolean was_Lev = (Levitation != 0), was_Fly = (Flying != 0);
1048
1049 set_utrap(0, 0);
1050
1051 if (msg) {
1052 if (!was_Lev && Levitation)
1053 float_up();
1054 if (!was_Fly && Flying)
1055 You("can fly.");
1056 }
1057}
1058
1059/* is trap type ttyp triggered by touching the floor? */
1060staticfn boolean

Callers 15

savelifeFunction · 0.85
teledsFunction · 0.85
drop_ballFunction · 0.85
flooreffectsFunction · 0.85
goto_levelFunction · 0.85
wizterrainwishFunction · 0.85
domove_coreFunction · 0.85
digFunction · 0.85
digactualholeFunction · 0.85
buried_ball_to_freedomFunction · 0.85
fix_worst_troubleFunction · 0.85

Calls 3

set_utrapFunction · 0.85
float_upFunction · 0.85
YouFunction · 0.85

Tested by

no test coverage detected