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

Function breaks

src/dothrow.c:2443–2454  ·  view source on GitHub ↗

* The object is going to break for a reason other than the hero doing * something to it. * Return 0 if the object doesn't break, 1 if the object broke. */

Source from the content-addressed store, hash-verified

2441 * Return 0 if the object doesn't break, 1 if the object broke.
2442 */
2443int
2444breaks(
2445 struct obj *obj,
2446 coordxy x, coordxy y) /* object location (ox, oy may not be right) */
2447{
2448 boolean in_view = Blind ? FALSE : cansee(x, y);
2449
2450 if (!breaktest(obj))
2451 return 0;
2452 breakmsg(obj, in_view);
2453 return breakobj(obj, x, y, FALSE, FALSE);
2454}
2455
2456void
2457release_camera_demon(struct obj *obj, coordxy x, coordxy y)

Callers 4

bhitoFunction · 0.85
obj_deliveryFunction · 0.85
hit_barsFunction · 0.85
scatterFunction · 0.85

Calls 3

breaktestFunction · 0.85
breakmsgFunction · 0.85
breakobjFunction · 0.85

Tested by

no test coverage detected