| 883 | } |
| 884 | |
| 885 | static bool _thrown_object_destroyed(const item_def &item) |
| 886 | { |
| 887 | if (item.base_type != OBJ_MISSILES) |
| 888 | return false; |
| 889 | |
| 890 | if (ammo_always_destroyed(item)) |
| 891 | return true; |
| 892 | |
| 893 | if (ammo_never_destroyed(item)) |
| 894 | return false; |
| 895 | |
| 896 | return one_chance_in(ammo_destroy_chance(item)); |
| 897 | } |
no test coverage detected