MCPcopy Create free account
hub / github.com/crawl/crawl / player_can_hear

Function player_can_hear

crawl-ref/source/player.cc:1156–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156bool player_can_hear(const coord_def& p, int hear_distance)
1157{
1158 return !silenced(p)
1159 && !silenced(you.pos())
1160 && you.pos().distance_from(p) <= hear_distance;
1161}
1162
1163int get_teleportitis_level()
1164{

Callers 14

shoals_release_tideFunction · 0.85
_storm_cardFunction · 0.85
handle_monster_moveFunction · 0.85
_jelly_divideFunction · 0.85
_monster_eat_itemFunction · 0.85
_jelly_growsFunction · 0.85
_monster_moveFunction · 0.85
affect_place_cloudsMethod · 0.85
refine_for_explosionMethod · 0.85
triggerMethod · 0.85
_mesmerise_could_affectFunction · 0.85
l-you.ccFile · 0.85

Calls 3

silencedFunction · 0.85
distance_fromMethod · 0.80
posMethod · 0.45

Tested by

no test coverage detected