From ba0dc700df11e64cb55dcc767be2cba5eb35b27e Mon Sep 17 00:00:00 2001
From: 81Denton <32391752+81Denton@users.noreply.github.com>
Date: Sun, 6 May 2018 14:20:13 +0200
Subject: [PATCH] Axes the robotic fabricator (not the exofab) (#37668)
* removes robofab
* that too
---
code/game/machinery/robot_fabricator.dm | 143 ------------------------
tgstation.dme | 1 -
2 files changed, 144 deletions(-)
delete mode 100644 code/game/machinery/robot_fabricator.dm
diff --git a/code/game/machinery/robot_fabricator.dm b/code/game/machinery/robot_fabricator.dm
deleted file mode 100644
index 1fdc9b56dc..0000000000
--- a/code/game/machinery/robot_fabricator.dm
+++ /dev/null
@@ -1,143 +0,0 @@
-/obj/machinery/robotic_fabricator
- name = "robotic fabricator"
- icon = 'icons/obj/robotics.dmi'
- icon_state = "fab-idle"
- density = TRUE
- anchored = TRUE
- var/metal_amount = 0
- var/operating = FALSE
- var/obj/item/being_built = null
- use_power = IDLE_POWER_USE
- idle_power_usage = 20
- active_power_usage = 5000
-
-/obj/machinery/robotic_fabricator/attackby(obj/item/O, mob/living/user, params)
- if (istype(O, /obj/item/stack/sheet/metal))
- if (metal_amount < 150000)
- add_overlay("fab-load-metal")
- addtimer(CALLBACK(src, .proc/FinishLoadingMetal, O, user), 15)
- else
- to_chat(user, "\The [src] is full.")
- else
- return ..()
-
-/obj/machinery/robotic_fabricator/proc/FinishLoadingMetal(obj/item/stack/sheet/metal/M, mob/living/user)
- cut_overlay("fab-load-metal")
- if(QDELETED(M) || QDELETED(user))
- return
- var/count = 0
- while(metal_amount < 150000 && !QDELETED(M))
- metal_amount += M.materials[MAT_METAL]
- M.use(1)
- count++
-
- to_chat(user, "You insert [count] metal sheet\s into \the [src].")
- updateDialog()
-
-/obj/machinery/robotic_fabricator/power_change()
- if (powered())
- stat &= ~NOPOWER
- else
- stat |= NOPOWER
-
-/obj/machinery/robotic_fabricator/ui_interact(mob/user)
- . = ..()
- var/dat
-
- if (src.operating)
- dat = {"
-Building [src.being_built.name].
-Please wait until completion...
-
-"}
- else
- dat = {"
-Metal Amount: [min(150000, src.metal_amount)] cm3 (MAX: 150,000)
-
-Left Arm (25,000 cc metal.)
-Right Arm (25,000 cc metal.)
-Left Leg (25,000 cc metal.)
-Right Leg (25,000 cc metal).
-Chest (50,000 cc metal).
-Head (50,000 cc metal).
-Robot Frame (75,000 cc metal).
-"}
-
- user << browse("Robotic Fabricator Control Panel[dat]", "window=robot_fabricator")
- onclose(user, "robot_fabricator")
- return
-
-/obj/machinery/robotic_fabricator/Topic(href, href_list)
- if (..())
- return
-
- usr.set_machine(src)
- src.add_fingerprint(usr)
-
- if (href_list["make"])
- if (!src.operating)
- var/part_type = text2num(href_list["make"])
-
- var/build_type = ""
- var/build_time = 200
- var/build_cost = 25000
-
- switch (part_type)
- if (1)
- build_type = "/obj/item/bodypart/l_arm/robot"
- build_time = 200
- build_cost = 10000
-
- if (2)
- build_type = "/obj/item/bodypart/r_arm/robot"
- build_time = 200
- build_cost = 10000
-
- if (3)
- build_type = "/obj/item/bodypart/l_leg/robot"
- build_time = 200
- build_cost = 10000
-
- if (4)
- build_type = "/obj/item/bodypart/r_leg/robot"
- build_time = 200
- build_cost = 10000
-
- if (5)
- build_type = "/obj/item/bodypart/chest/robot"
- build_time = 350
- build_cost = 40000
-
- if (6)
- build_type = "/obj/item/bodypart/head/robot"
- build_time = 350
- build_cost = 5000
-
- if (7)
- build_type = "/obj/item/robot_suit"
- build_time = 600
- build_cost = 15000
-
- var/building = text2path(build_type)
- if (!isnull(building))
- if (src.metal_amount >= build_cost)
- operating = TRUE
- src.use_power = ACTIVE_POWER_USE
-
- src.metal_amount = max(0, src.metal_amount - build_cost)
-
- src.being_built = new building(src)
-
- src.add_overlay("fab-active")
- src.updateUsrDialog()
-
- spawn (build_time)
- if (!isnull(src.being_built))
- src.being_built.forceMove(drop_location())
- src.being_built = null
- src.use_power = IDLE_POWER_USE
- operating = FALSE
- cut_overlay("fab-active")
- return
-
- updateUsrDialog()
diff --git a/tgstation.dme b/tgstation.dme
index fd1de72cff..93fb08da2f 100755
--- a/tgstation.dme
+++ b/tgstation.dme
@@ -559,7 +559,6 @@
#include "code\game\machinery\rechargestation.dm"
#include "code\game\machinery\recycler.dm"
#include "code\game\machinery\requests_console.dm"
-#include "code\game\machinery\robot_fabricator.dm"
#include "code\game\machinery\shieldgen.dm"
#include "code\game\machinery\Sleeper.dm"
#include "code\game\machinery\slotmachine.dm"