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

Function known_vibrating_square_at

src/getpos.c:421–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421staticfn boolean
422known_vibrating_square_at(coordxy x, coordxy y)
423{
424 /* note: this only acknowledges the genuine vibrating square, not
425 fake ones produced by wizard mode wishing for traps which could
426 possibly be transfered to normal play via bones file */
427 if (invocation_pos(x, y)) {
428 struct trap *ttmp = t_at(x, y);
429
430 return ttmp && ttmp->ttyp == VIBRATING_SQUARE && ttmp->tseen;
431 }
432 return FALSE;
433}
434
435DISABLE_WARNING_UNREACHABLE_CODE
436

Callers 2

gather_locs_interestingFunction · 0.85
getposFunction · 0.85

Calls 2

invocation_posFunction · 0.85
t_atFunction · 0.85

Tested by

no test coverage detected