Industrial Smelter Part Replacer Fix (#10361)

This commit is contained in:
Geeves
2020-10-26 08:31:39 +01:00
committed by GitHub
parent 0d54a1be56
commit 9371a7d18d
3 changed files with 15 additions and 9 deletions
+5 -5
View File
@@ -335,18 +335,18 @@ Class Procs:
/obj/machinery/proc/default_deconstruction_screwdriver(var/mob/user, var/obj/item/S)
if(!istype(S) || !S.isscrewdriver())
return 0
playsound(src.loc, S.usesound, 50, 1)
return FALSE
playsound(src.loc, S.usesound, 50, 1)
panel_open = !panel_open
to_chat(user, "<span class='notice'>You [panel_open ? "open" : "close"] the maintenance hatch of [src].</span>")
update_icon()
return 1
return TRUE
/obj/machinery/proc/default_part_replacement(var/mob/user, var/obj/item/storage/part_replacer/R)
if(!istype(R))
return 0
return FALSE
if(!LAZYLEN(component_parts))
return 0
return FALSE
var/parts_replaced = FALSE
if(panel_open)
var/obj/item/circuitboard/CB = locate(/obj/item/circuitboard) in component_parts
@@ -90,10 +90,10 @@
origin_tech = list(TECH_MAGNET = 2, TECH_ENGINEERING = 2)
board_type = "other" // change this to machine if you want it to be buildable
req_components = list(
/obj/item/stock_parts/capacitor = 2,
/obj/item/stock_parts/scanning_module = 1,
/obj/item/stock_parts/matter_bin = 1,
/obj/item/stock_parts/micro_laser = 2)
"/obj/item/stock_parts/capacitor" = 2,
"/obj/item/stock_parts/scanning_module" = 1,
"/obj/item/stock_parts/matter_bin" = 1,
"/obj/item/stock_parts/micro_laser" = 2)
/obj/item/circuitboard/oven
name = T_BOARD("oven")
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- bugfix: "Industrial Smelters can be upgraded with the part replacer again."