Skip to content

Commit

Permalink
qol: Spent ammo casings can now be utilized using matter decompiler. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Nov 6, 2023
1 parent 0165515 commit 7416f20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/projectiles/ammunition.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7416f20

Please sign in to comment.