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

Function is_lava

src/dbridge.c:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61boolean
62is_lava(coordxy x, coordxy y)
63{
64 schar ltyp;
65
66 if (!isok(x, y))
67 return FALSE;
68 ltyp = levl[x][y].typ;
69 if (ltyp == LAVAPOOL || ltyp == LAVAWALL
70 || (ltyp == DRAWBRIDGE_UP
71 && (levl[x][y].drawbridgemask & DB_UNDER) == DB_LAVA))
72 return TRUE;
73 return FALSE;
74}
75
76boolean
77is_pool_or_lava(coordxy x, coordxy y)

Callers 15

dositFunction · 0.85
Boots_offFunction · 0.85
dismount_steedFunction · 0.85
goodposFunction · 0.85
boulder_hits_poolFunction · 0.85
flooreffectsFunction · 0.85
wizterrainwishFunction · 0.85
test_moveFunction · 0.85
trapmoveFunction · 0.85
u_simple_floortypFunction · 0.85
swim_move_dangerFunction · 0.85
avoid_moving_on_liquidFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by 1

test_moveFunction · 0.68