From ddf216335c7d4b0351655e317f5a79f592d1a2ae Mon Sep 17 00:00:00 2001 From: Pandora Date: Thu, 17 Mar 2022 21:12:00 +0000 Subject: [PATCH] You know why? --- code/game/objects/items/gunbox_vr.dm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/gunbox_vr.dm b/code/game/objects/items/gunbox_vr.dm index c0bfd4642fb..377fa172afd 100644 --- a/code/game/objects/items/gunbox_vr.dm +++ b/code/game/objects/items/gunbox_vr.dm @@ -15,4 +15,23 @@ var/atom/movable/AM = new new_type(get_turf(src)) if(istype(AM, /obj/item/weapon/gun)) to_chat(user, "You have chosen \the [AM]. Say hello to your new friend.") - qdel(src) \ No newline at end of file + qdel(src) + +/obj/item/gunbox/warden + name = "warden's shotgun case" + desc = "A secure guncase containing the warden's beloved shotgun." + icon = 'icons/obj/storage_vr.dmi' + icon_state = "gunboxw" + +/obj/item/gunbox/warden/attack_self(mob/living/user) + var/list/options = list() + options["Warden's combat shotgun"] = list(/obj/item/weapon/gun/projectile/shotgun/pump/combat/warden, /obj/item/ammo_magazine/ammo_box/b12g/beanbag) + options["Warden's compact shotgun"] = list(/obj/item/weapon/gun/projectile/shotgun/compact/warden, /obj/item/ammo_magazine/ammo_box/b12g/beanbag) + var/choice = tgui_input_list(user,"Choose your boomstick!", "Shotgun!", options) + if(src && choice) + var/list/things_to_spawn = options[choice] + for(var/new_type in things_to_spawn) // Spawn all the things, the gun and the ammo. + var/atom/movable/AM = new new_type(get_turf(src)) + if(istype(AM, /obj/item/weapon/gun)) + to_chat(user, "You have chosen \the [AM]. Say hello to your new best friend.") + qdel(src)