From c591f576158add0bd1c0cc2b078c122ac38f7063 Mon Sep 17 00:00:00 2001 From: TheFurryFeline <38586851+TheFurryFeline@users.noreply.github.com> Date: Mon, 8 Apr 2019 11:18:52 -0400 Subject: [PATCH 1/3] Size Changing Module Add a module to the Protolathe for borgs to get installed to shrink/grow as desired. --- .../objects/items/robot/robot_upgrades_vr.dm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/code/game/objects/items/robot/robot_upgrades_vr.dm b/code/game/objects/items/robot/robot_upgrades_vr.dm index 6f92178f09..721a2bfe5b 100644 --- a/code/game/objects/items/robot/robot_upgrades_vr.dm +++ b/code/game/objects/items/robot/robot_upgrades_vr.dm @@ -9,3 +9,21 @@ return 1 else return 0 + +//TFF: Ports VOREStation addition - ability for borgs to change size at will. + +/obj/item/borg/upgrade/sizeshift + name = "robot size alteration module" + desc = "Using technology similar to one used in sizeguns, allows cyborgs to adjust their own size as neccesary." + icon_state = "cyborg_upgrade2" + item_state = "cyborg_upgrade" + require_module = 1 + +/obj/item/borg/upgrade/sizeshift/action(var/mob/living/silicon/robot/R) + if(..()) return 0 + + if(/mob/living/proc/set_size in R.verbs) + return 0 + + R.verbs += /mob/living/proc/set_size + return 1 \ No newline at end of file From a5dc6e65adf0313e1156efb1097e33c883f18dd8 Mon Sep 17 00:00:00 2001 From: TheFurryFeline <38586851+TheFurryFeline@users.noreply.github.com> Date: Mon, 8 Apr 2019 11:21:41 -0400 Subject: [PATCH 2/3] Add New Module to Protolathe Last commit was **adding*** the module to the possible ones for borgs. This one is the one that adds the printable module to the Protolathe. --- code/modules/research/designs_vr.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/research/designs_vr.dm b/code/modules/research/designs_vr.dm index a78da35191..c0f70e1490 100644 --- a/code/modules/research/designs_vr.dm +++ b/code/modules/research/designs_vr.dm @@ -308,3 +308,12 @@ id = "rigmod_orescanner" build_path = /obj/item/rig_module/device/orescanner sort_string = "HCAAI" + +//TFF: ports VOREStation resize module for printing from the fabricator. +/datum/design/item/robot_upgrade/sizeshift + name = "Size Alteration Module" + desc = "Used to allow robot to freely alter their size." + id = "borg_sizeshift_module" + req_tech = list(TECH_BLUESPACE = 3, TECH_MATERIAL = 3, TECH_POWER = 2) + materials = list(DEFAULT_WALL_MATERIAL = 4000, "glass" = 4000) + build_path = /obj/item/borg/upgrade/sizeshift \ No newline at end of file From a7bc16a2552f23003da7c38c60a9845ae7a3de8b Mon Sep 17 00:00:00 2001 From: TheFurryFeline <38586851+TheFurryFeline@users.noreply.github.com> Date: Mon, 8 Apr 2019 11:24:19 -0400 Subject: [PATCH 3/3] Size Prefs --- code/modules/mob/transform_procs.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index 96d0fa7be0..f6ab5dd658 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -181,6 +181,9 @@ var/datum/preferences/B = O.client.prefs for(var/language in B.alternate_languages) O.add_language(language) +//TFF: Ports VOREStation's resize module transformation proc. + O.resize(B.size_multiplier, animate = FALSE) //TFF: Add size + O.fuzzy = B.fuzzy //TFF: prefs for borgs. callHook("borgify", list(O)) O.Namepick()