Fixes pneumatic cannon contents deletion (#34884)

* Fix pneumatic cannon contents deletion

* honk

* Update pneumaticCannon.dm
This commit is contained in:
vuonojenmustaturska
2018-01-26 12:36:42 +02:00
committed by CitadelStationBot
parent 0c86312618
commit 5eb79ec417
@@ -205,6 +205,15 @@
var/turf/newtarget = locate(new_x, new_y, starting.z)
return newtarget
/obj/item/pneumatic_cannon/handle_atom_del(atom/A)
. = ..()
if (loadedItems.Remove(A))
var/obj/item/I = A
loadedWeightClass -= I.w_class
else if (A == tank)
tank = null
update_icons()
/obj/item/pneumatic_cannon/ghetto //Obtainable by improvised methods; more gas per use, less capacity, but smaller
name = "improvised pneumatic cannon"
desc = "A gas-powered, object-firing cannon made out of common parts."