Base Commit

This commit is contained in:
GhostActual
2022-03-20 00:03:01 -04:00
parent 99c3578aee
commit 3c10cc1aee
2 changed files with 5 additions and 21 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Detective Lethal
* Sidearm Lethal
*/
/obj/item/gunbox
name = "sidearm box"
@@ -23,7 +23,7 @@
qdel(src)
/*
* Detective Stun
* Sidearm Stun
*/
/obj/item/gunbox/stun
name = "non-lethal sidearm box"
+3 -19
View File
@@ -1,22 +1,6 @@
/obj/item/gunbox
name = "security sidearm box"
desc = "A secure box containing a security sidearm."
/obj/item/gunbox/attack_self(mob/living/user)
var/list/options = list()
options["M1911 (.45)"] = list(/obj/item/weapon/gun/projectile/colt/detective, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber)
options["NT Mk58 (.45)"] = list(/obj/item/weapon/gun/projectile/sec, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber)
options["SW 625 Revolver (.45)"] = list(/obj/item/weapon/gun/projectile/revolver/detective45, /obj/item/ammo_magazine/s45/rubber, /obj/item/ammo_magazine/s45/rubber)
options["P92X (9mm)"] = list(/obj/item/weapon/gun/projectile/p92x/sec, /obj/item/ammo_magazine/m9mm/rubber, /obj/item/ammo_magazine/m9mm/rubber)
var/choice = tgui_input_list(user,"Would you prefer a pistol or a revolver?", "Gun!", 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 friend.")
qdel(src)
/*
* Shotgun Box
*/
/obj/item/gunbox/warden
name = "warden's shotgun case"
desc = "A secure guncase containing the warden's beloved shotgun."