* 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. */
| 2441 | * Return 0 if the object doesn't break, 1 if the object broke. |
| 2442 | */ |
| 2443 | int |
| 2444 | breaks( |
| 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 | |
| 2456 | void |
| 2457 | release_camera_demon(struct obj *obj, coordxy x, coordxy y) |