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

Function vault_occupied

src/vault.c:243–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243char
244vault_occupied(char *array)
245{
246 char *ptr;
247
248 for (ptr = array; *ptr; ptr++)
249 if (svr.rooms[*ptr - ROOMOFFSET].rtype == VAULT)
250 return *ptr;
251 return '\0';
252}
253
254/* hero has teleported out of vault while a guard is active */
255void

Callers 6

teledsFunction · 0.85
dosoundsFunction · 0.85
vault_summon_gdFunction · 0.85
invaultFunction · 0.85
gd_moveFunction · 0.85
gd_soundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected