From eb9bfbcbb023a263e02a961b1a984e39a2eb1095 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Tue, 30 Jan 2018 07:30:51 -0600 Subject: [PATCH] [MIRROR] Expand Cyborg (#5183) * Expand Cyborg (#34958) * Expand Cyborg * i ded pls nerf * Oh sheet * Expand Cyborg --- .../objects/items/robot/robot_upgrades.dm | 32 +++++++++++++++++++ .../designs/mechfabricator_designs.dm | 9 ++++++ code/modules/research/techweb/all_nodes.dm | 2 +- 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm index 6f852aacd3..808063d0e2 100644 --- a/code/game/objects/items/robot/robot_upgrades.dm +++ b/code/game/objects/items/robot/robot_upgrades.dm @@ -387,3 +387,35 @@ R.make_shell(src) return TRUE + +/obj/item/borg/upgrade/expand + name = "borg expander" + desc = "A cyborg resizer, it makes a cyborg huge." + icon_state = "cyborg_upgrade3" + +/obj/item/borg/upgrade/expand/action(mob/living/silicon/robot/R) + if(..()) + return + + if(locate(/obj/item/borg/upgrade/expand, R)) + to_chat(usr, "This unit already has an expand module installed!") + return + + R.notransform = TRUE + var/prev_lockcharge = R.lockcharge + R.SetLockdown(1) + R.anchored = TRUE + var/datum/effect_system/smoke_spread/smoke = new + smoke.set_up(1, R.loc) + smoke.start() + sleep(2) + for(var/i in 1 to 4) + playsound(R, pick('sound/items/drill_use.ogg', 'sound/items/jaws_cut.ogg', 'sound/items/jaws_pry.ogg', 'sound/items/welder.ogg', 'sound/items/ratchet.ogg'), 80, 1, -1) + sleep(12) + if(!prev_lockcharge) + R.SetLockdown(0) + R.anchored = FALSE + R.notransform = FALSE + R.resize = 2 + R.update_transform() + return TRUE diff --git a/code/modules/research/designs/mechfabricator_designs.dm b/code/modules/research/designs/mechfabricator_designs.dm index 74cd8805ab..c18d618a0a 100644 --- a/code/modules/research/designs/mechfabricator_designs.dm +++ b/code/modules/research/designs/mechfabricator_designs.dm @@ -696,6 +696,15 @@ construction_time = 120 category = list("Cyborg Upgrade Modules") +/datum/design/borg_upgrade_expand + name = "Cyborg Upgrade (Expand)" + id = "borg_upgrade_expand" + build_type = MECHFAB + build_path = /obj/item/borg/upgrade/expand + materials = list(MAT_METAL=200000, MAT_TITANIUM=5000) + construction_time = 120 + category = list("Cyborg Upgrade Modules") + /datum/design/boris_ai_controller name = "B.O.R.I.S. AI-Cyborg Remote Control Module" id = "borg_ai_control" diff --git a/code/modules/research/techweb/all_nodes.dm b/code/modules/research/techweb/all_nodes.dm index d182843105..f1493fc64a 100644 --- a/code/modules/research/techweb/all_nodes.dm +++ b/code/modules/research/techweb/all_nodes.dm @@ -214,7 +214,7 @@ display_name = "Cyborg Upgrades: Utility" description = "Utility upgrades for cybogs." prereq_ids = list("engineering", "cyborg") - design_ids = list("borg_upgrade_holding", "borg_upgrade_lavaproof", "borg_upgrade_thrusters", "borg_upgrade_selfrepair") + design_ids = list("borg_upgrade_holding", "borg_upgrade_lavaproof", "borg_upgrade_thrusters", "borg_upgrade_selfrepair", "borg_upgrade_expand") research_cost = 2500 export_price = 5000