From dc5fa9caf3f3ac794a0dd07cd315a56e4f84f50a Mon Sep 17 00:00:00 2001
From: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com>
Date: Sun, 22 Oct 2023 17:38:07 -0400
Subject: [PATCH] the dumb alternative
---
.../living/simple_animal/bot/construction.dm | 21 +++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm
index e6f34831ed863..8c99680d176b8 100644
--- a/code/modules/mob/living/simple_animal/bot/construction.dm
+++ b/code/modules/mob/living/simple_animal/bot/construction.dm
@@ -168,10 +168,23 @@
if(W.tool_behaviour == TOOL_SCREWDRIVER)
to_chat(user, "You start attaching the gun to the frame...")
if(W.use_tool(src, user, 40, volume=100))
- var/mob/living/simple_animal/bot/secbot/ed209/B = new(drop_location())
- B.name = created_name
- to_chat(user, "You complete the ED-209.")
- qdel(src)
+ name = "armed [name]"
+ to_chat(user, "The gun is now securely fastened to the frame.")
+ build_step++
+
+ if(9)
+ if(istype(W, /obj/item/stock_parts/cell/high))
+ if(!can_finish_build(W, user))
+ return
+ var/mob/living/simple_animal/bot/secbot/ed209/B = new(drop_location())
+ B.name = created_name
+ to_chat(user, "You complete the ED-209.")
+ B.cell_type = W.type
+ qdel(W)
+ B.vest_type = vest_type
+ qdel(src)
+ else if(istype(W, /obj/item/stock_parts/cell)) // dont waste bluespace cells on this, goofus
+ to_chat(user, "Under Nanotrasen safety regulations, this Model bot only accepts standard issue high-capacity power cells.")
//Floorbot assemblies
/obj/item/bot_assembly/floorbot