push
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
. = ..()
|
||||
if (dirty)
|
||||
. += "grbloody"
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
if(machine_stat & (NOPOWER|BROKEN))
|
||||
return
|
||||
if (!occupant)
|
||||
. += "grjam"
|
||||
@@ -64,7 +64,7 @@
|
||||
go_out()
|
||||
|
||||
/obj/machinery/gibber/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
if(machine_stat & (NOPOWER|BROKEN))
|
||||
return
|
||||
if(operating)
|
||||
to_chat(user, "<span class='danger'>It's locked and running.</span>")
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
else
|
||||
. += "<span class='notice'>\The [src] is empty.</span>"
|
||||
|
||||
if(!(stat & (NOPOWER|BROKEN)))
|
||||
if(!(machine_stat & (NOPOWER|BROKEN)))
|
||||
. += "<span class='notice'>The status display reads:</span>"
|
||||
. += "<span class='notice'>- Capacity: <b>[max_n_of_items]</b> items.<span>"
|
||||
. += "<span class='notice'>- Cook time reduced by <b>[(productivity - 1) * 25]%</b>.<span>"
|
||||
@@ -207,7 +207,7 @@
|
||||
|
||||
if(operating || panel_open || !anchored || !user.canUseTopic(src, !hasSiliconAccessInArea(user)))
|
||||
return
|
||||
if(isAI(user) && (stat & NOPOWER))
|
||||
if(isAI(user) && (machine_stat & NOPOWER))
|
||||
return
|
||||
|
||||
if(!length(ingredients))
|
||||
@@ -222,7 +222,7 @@
|
||||
// post choice verification
|
||||
if(operating || panel_open || !anchored || !user.canUseTopic(src, !hasSiliconAccessInArea(user)))
|
||||
return
|
||||
if(isAI(user) && (stat & NOPOWER))
|
||||
if(isAI(user) && (machine_stat & NOPOWER))
|
||||
return
|
||||
|
||||
usr.set_machine(src)
|
||||
@@ -241,7 +241,7 @@
|
||||
ingredients.Cut()
|
||||
|
||||
/obj/machinery/microwave/proc/cook(mob/user)
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
if(machine_stat & (NOPOWER|BROKEN))
|
||||
return
|
||||
if(operating || broken > 0 || panel_open || !anchored || dirty == 100)
|
||||
return
|
||||
@@ -297,7 +297,7 @@
|
||||
loop(MICROWAVE_MUCK, 4)
|
||||
|
||||
/obj/machinery/microwave/proc/loop(type, time, wait = max(12 - 2 * productivity, 2), mob/user) // standard wait is 10
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
if(machine_stat & (NOPOWER|BROKEN))
|
||||
if(type == MICROWAVE_PRE)
|
||||
pre_fail()
|
||||
return
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
if(default_deconstruction_crowbar(O))
|
||||
return
|
||||
|
||||
if(stat) //NOPOWER etc
|
||||
if(machine_stat) //NOPOWER etc
|
||||
return
|
||||
else
|
||||
return ..()
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
/obj/machinery/smartfridge/update_icon_state()
|
||||
SSvis_overlays.remove_vis_overlay(src, managed_vis_overlays)
|
||||
if(!stat)
|
||||
if(!machine_stat)
|
||||
SSvis_overlays.add_vis_overlay(src, icon, "smartfridge-light-mask", EMISSIVE_LAYER, EMISSIVE_PLANE, dir, alpha)
|
||||
if (visible_contents)
|
||||
switch(contents.len)
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
/obj/machinery/smartfridge/update_overlays()
|
||||
. = ..()
|
||||
if(!stat)
|
||||
if(!machine_stat)
|
||||
. += emissive_appearance(icon, "smartfridge-light-mask", alpha = src.alpha)
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
updateUsrDialog()
|
||||
return
|
||||
|
||||
if(!stat)
|
||||
if(!machine_stat)
|
||||
|
||||
if(contents.len >= max_n_of_items)
|
||||
to_chat(user, "<span class='warning'>\The [src] is full!</span>")
|
||||
|
||||
Reference in New Issue
Block a user