mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Fixes #7973
This commit is contained in:
@@ -21,10 +21,16 @@
|
||||
|
||||
var/datum/wires/autolathe/wires = null
|
||||
|
||||
/obj/machinery/autolathe/proc/update_recipe_list()
|
||||
if(!machine_recipes)
|
||||
machine_recipes = autolathe_recipes
|
||||
|
||||
/obj/machinery/autolathe/interact(mob/user as mob)
|
||||
|
||||
update_recipe_list()
|
||||
|
||||
if(..() || (disabled && !panel_open))
|
||||
user << "\red \The [src] is disabled!"
|
||||
user << "<span class='danger'>\The [src] is disabled!</span>"
|
||||
return
|
||||
|
||||
if (shocked)
|
||||
@@ -97,7 +103,7 @@
|
||||
return
|
||||
|
||||
if (busy)
|
||||
user << "\red \The [src] is busy. Please wait for completion of previous operation."
|
||||
user << "<span class='notice'>\The [src] is busy. Please wait for completion of previous operation.</span>"
|
||||
return
|
||||
|
||||
if(istype(O, /obj/item/weapon/screwdriver))
|
||||
@@ -157,7 +163,7 @@
|
||||
mass_per_sheet += eating.matter[material]
|
||||
|
||||
if(!filltype)
|
||||
user << "\red \The [src] is full. Please remove material from the autolathe in order to insert more."
|
||||
user << "<span class='notice'>\The [src] is full. Please remove material from the autolathe in order to insert more.</span>"
|
||||
return
|
||||
else if(filltype == 1)
|
||||
user << "You fill \the [src] to capacity with \the [eating]."
|
||||
@@ -189,7 +195,7 @@
|
||||
add_fingerprint(usr)
|
||||
|
||||
if(busy)
|
||||
usr << "\red The autolathe is busy. Please wait for completion of previous operation."
|
||||
usr << "<span class='notice'>The autolathe is busy. Please wait for completion of previous operation.</span>"
|
||||
return
|
||||
|
||||
if(href_list["change_category"])
|
||||
@@ -262,11 +268,6 @@
|
||||
component_parts += new /obj/item/weapon/stock_parts/console_screen(src)
|
||||
RefreshParts()
|
||||
|
||||
|
||||
/obj/machinery/autolathe/initialize()
|
||||
..()
|
||||
machine_recipes = autolathe_recipes
|
||||
|
||||
//Updates overall lathe storage size.
|
||||
/obj/machinery/autolathe/RefreshParts()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user