mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Don't use get_area proc, introduce myArea variable.
Conflicts: code/modules/power/power.dm
This commit is contained in:
@@ -112,16 +112,27 @@ Class Procs:
|
||||
var/global/gl_uid = 1
|
||||
var/custom_aghost_alerts=0
|
||||
var/panel_open = 0
|
||||
var/myArea
|
||||
|
||||
/obj/machinery/New()
|
||||
..()
|
||||
addAtProcessing()
|
||||
return ..()
|
||||
|
||||
/obj/machinery/proc/addAtProcessing()
|
||||
myArea = loc.loc
|
||||
machines += src
|
||||
|
||||
/obj/machinery/Destroy()
|
||||
/obj/machinery/proc/removeAtProcessing()
|
||||
myArea = null
|
||||
machines -= src
|
||||
|
||||
/obj/machinery/Destroy()
|
||||
if (src in machines)
|
||||
removeAtProcessing()
|
||||
|
||||
..()
|
||||
|
||||
/obj/machinery/process()//If you dont use process or power why are you here
|
||||
/obj/machinery/process() // If you dont use process or power why are you here
|
||||
return PROCESS_KILL
|
||||
|
||||
/obj/machinery/emp_act(severity)
|
||||
|
||||
Reference in New Issue
Block a user