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

Function impact_disturbs_zombies

src/hack.c:1786–1794  ·  view source on GitHub ↗

maybe disturb buried zombies when an object is dropped or thrown nearby */

Source from the content-addressed store, hash-verified

1784
1785/* maybe disturb buried zombies when an object is dropped or thrown nearby */
1786void
1787impact_disturbs_zombies(struct obj *obj, boolean violent)
1788{
1789 /* if object won't make a noticeable impact, let buried zombies rest */
1790 if (obj->owt < (violent ? 10U : 100U) || is_flimsy(obj))
1791 return;
1792
1793 disturb_buried_zombies(obj->ox, obj->oy);
1794}
1795
1796/* reduce zombification timeout of buried zombies around px, py */
1797void

Callers 3

dropzFunction · 0.85
throwitFunction · 0.85
really_kick_objectFunction · 0.85

Calls 1

disturb_buried_zombiesFunction · 0.85

Tested by

no test coverage detected