no caseless bouncing (#45361)

About The Pull Request

prevents caseless ammo from bouncing away
fixes some issues with guns that do not exist yet eyes
This commit is contained in:
Rob Bailey
2019-07-23 20:38:44 -07:00
committed by oranges
parent 3acbc21643
commit de2b62a706

View File

@@ -73,11 +73,12 @@
return ..()
/obj/item/ammo_casing/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
if(heavy_metal)
bounce_away(FALSE, NONE)
bounce_away(FALSE, NONE)
. = ..()
/obj/item/ammo_casing/proc/bounce_away(still_warm = FALSE, bounce_delay = 3)
if(!heavy_metal)
return
update_icon()
SpinAnimation(10, 1)
var/turf/T = get_turf(src)