From 7416f206f6629563f0f573dba8b87adc031bd910 Mon Sep 17 00:00:00 2001 From: Vladisvell <73733747+Vladisvell@users.noreply.github.com> Date: Tue, 7 Nov 2023 02:57:58 +0500 Subject: [PATCH] qol: Spent ammo casings can now be utilized using matter decompiler. (#3819) --- code/modules/projectiles/ammunition.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm index 8130a9e2e5f..41aceeece1a 100644 --- a/code/modules/projectiles/ammunition.dm +++ b/code/modules/projectiles/ammunition.dm @@ -49,6 +49,12 @@ BB = new projectile_type(src, params) return +/obj/item/ammo_casing/decompile_act(obj/item/matter_decompiler/C, mob/user) + if(!BB) + qdel(src) + return TRUE + return ..() + /obj/item/ammo_casing/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/ammo_box)) var/obj/item/ammo_box/box = I