MCPcopy Create free account
hub / github.com/crawl/crawl / _thrown_object_destroyed

Function _thrown_object_destroyed

crawl-ref/source/throw.cc:885–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885static 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}

Callers 1

_player_shootFunction · 0.85

Calls 4

ammo_always_destroyedFunction · 0.85
ammo_never_destroyedFunction · 0.85
one_chance_inFunction · 0.85
ammo_destroy_chanceFunction · 0.85

Tested by

no test coverage detected