From ee961ce41799c99818cd1e242fb7535c10c8d86e Mon Sep 17 00:00:00 2001 From: The0bserver Date: Sun, 11 Apr 2021 06:18:56 -0400 Subject: [PATCH] PLEASE LET ME RELOAD I BEG YOU --- .../projectiles/guns/ballistic/derringer.dm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/code/modules/projectiles/guns/ballistic/derringer.dm b/code/modules/projectiles/guns/ballistic/derringer.dm index 1f127a33e4..8373b5bac1 100644 --- a/code/modules/projectiles/guns/ballistic/derringer.dm +++ b/code/modules/projectiles/guns/ballistic/derringer.dm @@ -1,5 +1,5 @@ /obj/item/gun/ballistic/derringer - name = ".38 Derringer" + name = "\improper .38 Derringer" desc = "A easily consealable derringer. Uses .38 ammo" icon = 'icons/obj/guns/projectile.dmi' icon_state = "derringer" @@ -21,9 +21,17 @@ return boolets /obj/item/gun/ballistic/derringer/attackby(obj/item/A, mob/user, params) - ..() - if(istype(A, /obj/item/ammo_box) || istype(A, /obj/item/ammo_casing)) - chamber_round() + . = ..() + if(.) + return + var/num_loaded = magazine.attackby(A, user, params, 1) + if(num_loaded) + to_chat(user, "You load [num_loaded] shell\s into \the [src].") + playsound(user, 'sound/weapons/bulletinsert.ogg', 60, 1) + A.update_icon() + update_icon() + chamber_round(0) + obj/item/gun/ballistic/derringer/attack_self(mob/living/user) var/num_unloaded = 0