mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Mass-replacement of stat to machine_stat (#48758)
Living and machine stat vars are pretty different, one uses flags and other number-defines. This should make some other mass-replacements and searches a bit easier.
This commit is contained in:
@@ -573,7 +573,7 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
|
||||
return ..()
|
||||
|
||||
/obj/machinery/bookbinder/proc/bind_book(mob/user, obj/item/paper/P)
|
||||
if(stat)
|
||||
if(machine_stat)
|
||||
return
|
||||
if(busy)
|
||||
to_chat(user, "<span class='warning'>The book binder is busy. Please wait for completion of previous operation.</span>")
|
||||
@@ -586,7 +586,7 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
|
||||
sleep(rand(200,400))
|
||||
busy = FALSE
|
||||
if(P)
|
||||
if(!stat)
|
||||
if(!machine_stat)
|
||||
visible_message("<span class='notice'>[src] whirs as it prints and binds a new book.</span>")
|
||||
var/obj/item/book/B = new(src.loc)
|
||||
B.dat = P.info
|
||||
|
||||
Reference in New Issue
Block a user