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

Function db_under_typ

src/dbridge.c:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115schar
116db_under_typ(int mask)
117{
118 switch (mask & DB_UNDER) {
119 case DB_ICE:
120 return ICE;
121 case DB_LAVA:
122 return LAVAPOOL;
123 case DB_MOAT:
124 return MOAT;
125 default:
126 return STONE;
127 }
128}
129
130/*
131 * We want to know whether a wall (or a door) is the portcullis (passageway)

Callers 2

classify_terrainFunction · 0.85
update_lastseentypFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected