From 50a73339b2afbd80c63b641d9012f11a23ca7a09 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Fri, 20 Jan 2023 18:18:21 -0600 Subject: [PATCH] powered crossbow fixes (#20256) --- code/modules/projectiles/guns/throw/crossbow.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/projectiles/guns/throw/crossbow.dm b/code/modules/projectiles/guns/throw/crossbow.dm index e8fc799362a..9c1abbd9d16 100644 --- a/code/modules/projectiles/guns/throw/crossbow.dm +++ b/code/modules/projectiles/guns/throw/crossbow.dm @@ -118,6 +118,15 @@ to_chat(user, "You jimmy [cell] out of [src] with [I].") cell = null +/obj/item/gun/throw/crossbow/notify_ammo_count() + if(get_ammocount() >= 1) + return "[src] is loaded." + return "[src] is not loaded." + +/obj/item/gun/throw/crossbow/Destroy() + . = ..() + QDEL_NULL(cell) + /obj/item/gun/throw/crossbow/verb/set_tension() set name = "Adjust Tension" set category = "Object"