From 31c5e648f47294b9ace610c4d74569bbc0ebb8de Mon Sep 17 00:00:00 2001 From: GunHog Date: Sat, 21 Mar 2015 17:10:55 -0500 Subject: [PATCH] Secbots now require Sec helmets Only Sec helmets with a camera and no flashlight can be used to create a securitron assembly. --- code/game/machinery/bots/secbot.dm | 11 +++++++++-- code/modules/crafting/recipes.dm | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/bots/secbot.dm b/code/game/machinery/bots/secbot.dm index 3380355761e..5a6b904683f 100644 --- a/code/game/machinery/bots/secbot.dm +++ b/code/game/machinery/bots/secbot.dm @@ -392,7 +392,14 @@ Auto Patrol: []"}, ..() return - if(type != /obj/item/clothing/head/helmet && type != /obj/item/clothing/head/helmet/sec) //Eh, but we don't want people making secbots out of space helmets. + if(type != /obj/item/clothing/head/helmet/sec) //Eh, but we don't want people making secbots out of space helmets. + return + + if(!helmetCam) //I am so sorry for this. I could not think of a less terrible (and lazy) way. + user << "[src] needs to have a camera attached first." + return + if(F) //Has a flashlight. Player must remove it, else it will be lost forever. + user << "The mounted flashlight is in the way, remove it first." return if(S.secured) @@ -458,7 +465,7 @@ Auto Patrol: []"}, else if(istype(I, /obj/item/weapon/screwdriver)) if(!build_step) new /obj/item/device/assembly/signaler(get_turf(src)) - new /obj/item/clothing/head/helmet(get_turf(src)) + new /obj/item/clothing/head/helmet/sec(get_turf(src)) user << "You disconnect the signaler from the helmet." qdel(src) diff --git a/code/modules/crafting/recipes.dm b/code/modules/crafting/recipes.dm index 177b23d1572..e9b2ab62b90 100644 --- a/code/modules/crafting/recipes.dm +++ b/code/modules/crafting/recipes.dm @@ -49,7 +49,7 @@ name = "Secbot" result = /obj/machinery/bot/secbot reqs = list(/obj/item/device/assembly/signaler = 1, - /obj/item/clothing/head/helmet = 1, + /obj/item/clothing/head/helmet/sec = 1, /obj/item/weapon/melee/baton = 1, /obj/item/device/assembly/prox_sensor = 1, /obj/item/robot_parts/r_arm = 1)