Machine var shim (#18644)

* removal of machine var

* shimsham

* deprecation warnings

* COMSIG_LIVING_HANDLE_VISION signal

* improved

* more cleanup

* more fixes

* this is fine

* fixed radios

* notices for now, tgui fix

* cleaned up hud and vision parent calls, adds COMSIG_LIVING_HANDLE_HUD

* radios use tgui now

* guestpass does not need machine anymore

* cloning machine doesn't use it

* this arcade machine is tgui too

* autolathe does not need machine

* remaining cleanup

* doc fix

* fix

* logout handling

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2025-10-27 02:06:29 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent cccd2280a7
commit 1dfae07494
63 changed files with 304 additions and 221 deletions
+4 -4
View File
@@ -48,7 +48,7 @@
AddElement(/datum/element/sellable/material_stack)
/obj/item/stack/Destroy()
if (src && usr && usr.machine == src)
if (src && usr && usr.check_current_machine(src))
usr << browse(null, "window=stack")
if(islist(synths))
synths.Cut()
@@ -423,7 +423,7 @@
src.add_fingerprint(user)
F.add_fingerprint(user)
spawn(0)
if (src && user.machine==src)
if (src && user.check_current_machine(src))
src.interact(user)
else
..()
@@ -439,9 +439,9 @@
src.transfer_to(S)
spawn(0) //give the stacks a chance to delete themselves if necessary
if (S && user.machine==S)
if (S && user.check_current_machine(S))
S.interact(user)
if (src && user.machine==src)
if (src && user.check_current_machine(src))
src.interact(user)
else
return ..()