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
|
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)
|
/obj/machinery/autolathe/interact(mob/user as mob)
|
||||||
|
|
||||||
|
update_recipe_list()
|
||||||
|
|
||||||
if(..() || (disabled && !panel_open))
|
if(..() || (disabled && !panel_open))
|
||||||
user << "\red \The [src] is disabled!"
|
user << "<span class='danger'>\The [src] is disabled!</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
if (shocked)
|
if (shocked)
|
||||||
@@ -97,7 +103,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
if (busy)
|
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
|
return
|
||||||
|
|
||||||
if(istype(O, /obj/item/weapon/screwdriver))
|
if(istype(O, /obj/item/weapon/screwdriver))
|
||||||
@@ -157,7 +163,7 @@
|
|||||||
mass_per_sheet += eating.matter[material]
|
mass_per_sheet += eating.matter[material]
|
||||||
|
|
||||||
if(!filltype)
|
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
|
return
|
||||||
else if(filltype == 1)
|
else if(filltype == 1)
|
||||||
user << "You fill \the [src] to capacity with \the [eating]."
|
user << "You fill \the [src] to capacity with \the [eating]."
|
||||||
@@ -189,7 +195,7 @@
|
|||||||
add_fingerprint(usr)
|
add_fingerprint(usr)
|
||||||
|
|
||||||
if(busy)
|
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
|
return
|
||||||
|
|
||||||
if(href_list["change_category"])
|
if(href_list["change_category"])
|
||||||
@@ -262,11 +268,6 @@
|
|||||||
component_parts += new /obj/item/weapon/stock_parts/console_screen(src)
|
component_parts += new /obj/item/weapon/stock_parts/console_screen(src)
|
||||||
RefreshParts()
|
RefreshParts()
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/autolathe/initialize()
|
|
||||||
..()
|
|
||||||
machine_recipes = autolathe_recipes
|
|
||||||
|
|
||||||
//Updates overall lathe storage size.
|
//Updates overall lathe storage size.
|
||||||
/obj/machinery/autolathe/RefreshParts()
|
/obj/machinery/autolathe/RefreshParts()
|
||||||
..()
|
..()
|
||||||
|
|||||||
Reference in New Issue
Block a user