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

Function vault_gd_watching

src/vault.c:1277–1286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275}
1276
1277void
1278vault_gd_watching(unsigned int activity)
1279{
1280 struct monst *guard = findgd();
1281
1282 if (guard && guard->mx && guard->mcansee && m_canseeu(guard)) {
1283 if (activity == GD_EATGOLD || activity == GD_DESTROYGOLD)
1284 EGD(guard)->witness = activity;
1285 }
1286}
1287
1288/*vault.c*/

Callers 1

eatspecialFunction · 0.85

Calls 1

findgdFunction · 0.85

Tested by

no test coverage detected