From 0c109fcc8c04f7d9fd136a4254e0878972adfe1f Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Tue, 7 Jan 2020 20:48:58 +0100 Subject: [PATCH 1/2] Re porting unified fabricators This time you can set what drones they are allowed to make on the mapping side, so 1 item can be set to produce whatever drone you want mapped, meaning you can still have a unify fab that can only print mining drones. Just gotta map the tag appropriately --- .../robot/drone/drone_manufacturer_unify.dm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 code/modules/mob/living/silicon/robot/drone/drone_manufacturer_unify.dm diff --git a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer_unify.dm b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer_unify.dm new file mode 100644 index 0000000000..cc89832230 --- /dev/null +++ b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer_unify.dm @@ -0,0 +1,19 @@ +//UNIFY start +/obj/machinery/drone_fabricator/unify //Non-Specific dronetype + drone_type = null //var filled by drone choice. + fabricator_tag = "Unified Drone Fabricator" + + var/list/possible_drones = list("Construction Module" = /mob/living/silicon/robot/drone/construction, + "Maintenance Module" = /mob/living/silicon/robot/drone, + ) //List of drone types to choose from.//Changeable in mapping. + + create_drone(var/client/player) + choose_dronetype(possible_drones) //Call Drone choice before executing create_drone + ..() + +/obj/machinery/drone_fabricator/proc/choose_dronetype(possible_drones) + var/choice + choice = input(usr,"What module would you like to use?") as null|anything in possible_drones + if(!choice) return + drone_type = possible_drones[choice] +//UNIFY end From cc24b7d32c8ed1bba90fe7e3b1e9ef4a42c098a0 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Tue, 7 Jan 2020 20:50:54 +0100 Subject: [PATCH 2/2] include drone_manufacturer_unify --- vorestation.dme | 1 + 1 file changed, 1 insertion(+) diff --git a/vorestation.dme b/vorestation.dme index ee84f770ac..11e04b5c91 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -2457,6 +2457,7 @@ #include "code\modules\mob\living\silicon\robot\drone\drone_damage.dm" #include "code\modules\mob\living\silicon\robot\drone\drone_items.dm" #include "code\modules\mob\living\silicon\robot\drone\drone_manufacturer.dm" +#include "code\modules\mob\living\silicon\robot\drone\drone_manufacturer_unify.dm" #include "code\modules\mob\living\silicon\robot\drone\drone_say.dm" #include "code\modules\mob\living\silicon\robot\drone\drone_vr.dm" #include "code\modules\mob\living\silicon\robot\drone\swarm.dm"