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