From f5e6d32ff12133295f961bb9e4cb1f008af513d0 Mon Sep 17 00:00:00 2001 From: FluffMedic <109300046+FluffMedic@users.noreply.github.com> Date: Sat, 20 Dec 2025 19:05:25 -0500 Subject: [PATCH] Sec Lethal Armament Box (#12115) --- .../crates_lockers/closets/secure/security.dm | 1 + .../code/game/objects/items/gunbox.dm | 18 ++++++++++++++++++ vorestation.dme | 1 + 3 files changed, 20 insertions(+) create mode 100644 modular_chomp/code/game/objects/items/gunbox.dm diff --git a/code/game/objects/structures/crates_lockers/closets/secure/security.dm b/code/game/objects/structures/crates_lockers/closets/secure/security.dm index c8c09b74b3..9b3137b9e6 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/security.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/security.dm @@ -233,6 +233,7 @@ /obj/item/retail_scanner/security, //CHOMPStation addition /obj/item/clothing/glasses/hud/security, //CHOMPStation addition /obj/item/ticket_printer, //CHOMPStation addition + /obj/item/gunbox/sec_officer, //CHOMPStation addition ) /obj/structure/closet/secure_closet/security/Initialize(mapload) diff --git a/modular_chomp/code/game/objects/items/gunbox.dm b/modular_chomp/code/game/objects/items/gunbox.dm new file mode 100644 index 0000000000..781885b0bf --- /dev/null +++ b/modular_chomp/code/game/objects/items/gunbox.dm @@ -0,0 +1,18 @@ +/obj/item/gunbox/sec_officer + name = "lethal armament box" + desc = "A secure box containing a non-lethal sidearm." + +/obj/item/gunbox/sec_officer/attack_self(mob/living/user) + var/list/options = list() + options["Laser Pistol"] = list(/obj/item/gun/energy/gun, /obj/item/cell/device/weapon, /obj/item/cell/device/weapon) + options["Normal Pistol"] = list(/obj/item/gun/projectile/pistol, /obj/item/ammo_magazine/m9mm/compact, /obj/item/ammo_magazine/m9mm/compact, /obj/item/ammo_magazine/m9mm/compact, /obj/item/ammo_magazine/m9mm/compact) + var/choice = tgui_input_list(user,"Please, select an option.", "Lethal Gun!", options) + if(!choice) + return + 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/gun)) + to_chat(user, "You have chosen \the [AM]. Say hello to your new friend.") + qdel(src) diff --git a/vorestation.dme b/vorestation.dme index f48104d55e..0adf25f875 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -5259,6 +5259,7 @@ #include "modular_chomp\code\game\objects\effects\spiders.dm" #include "modular_chomp\code\game\objects\effects\step_triggers.dm" #include "modular_chomp\code\game\objects\items\contraband.dm" +#include "modular_chomp\code\game\objects\items\gunbox.dm" #include "modular_chomp\code\game\objects\items\target_toy.dm" #include "modular_chomp\code\game\objects\items\clockwork\ratvarian_spear.dm" #include "modular_chomp\code\game\objects\items\devices\flipper.dm"