| 471 | INTERPOSE_HOOK(proj_item_hook,checkMovement).apply(enable); |
| 472 | } |
| 473 | static void world_specific_hooks(color_ostream &out,bool enable) |
| 474 | { |
| 475 | if(enable && find_reactions(out)) |
| 476 | { |
| 477 | INTERPOSE_HOOK(product_hook, produce).apply(true); |
| 478 | } |
| 479 | else |
| 480 | { |
| 481 | INTERPOSE_HOOK(product_hook, produce).apply(false); |
| 482 | reactions.clear(); |
| 483 | products.clear(); |
| 484 | } |
| 485 | } |
| 486 | void disable_all_hooks(color_ostream &out) |
| 487 | { |
| 488 | world_specific_hooks(out,false); |
no test coverage detected