mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Industrial Smelter Part Replacer Fix (#10361)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Geeves
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Industrial Smelters can be upgraded with the part replacer again."
|
||||
Reference in New Issue
Block a user