mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Just remove on_loc_moved entirely
This commit is contained in:
@@ -349,14 +349,6 @@
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/obj/item/device/electronic_assembly/on_loc_moved(oldloc)
|
||||
for(var/obj/O in contents)
|
||||
O.on_loc_moved(oldloc)
|
||||
|
||||
/obj/item/device/electronic_assembly/Moved(var/oldloc)
|
||||
for(var/obj/O in contents)
|
||||
O.on_loc_moved(oldloc)
|
||||
|
||||
/obj/item/device/electronic_assembly/proc/on_anchored()
|
||||
for(var/obj/item/integrated_circuit/IC in contents)
|
||||
IC.on_anchored()
|
||||
|
||||
@@ -67,18 +67,6 @@
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/clothing/Moved(oldloc)
|
||||
if(IC)
|
||||
IC.on_loc_moved(oldloc)
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/clothing/on_loc_moved(oldloc)
|
||||
if(IC)
|
||||
IC.on_loc_moved(oldloc)
|
||||
else
|
||||
..()
|
||||
|
||||
// Does most of the repeatative setup.
|
||||
/obj/item/clothing/proc/setup_integrated_circuit(new_type)
|
||||
// Set up the internal circuit holder.
|
||||
|
||||
@@ -414,8 +414,13 @@
|
||||
// var/datum/beam/holo_beam = null // A visual effect, to make it easy to know where a hologram is coming from.
|
||||
// It is commented out due to picking up the assembly killing the beam.
|
||||
|
||||
/obj/item/integrated_circuit/output/holographic_projector/Initialize()
|
||||
. = ..()
|
||||
GLOB.moved_event.register(src, src, .proc/on_moved)
|
||||
|
||||
/obj/item/integrated_circuit/output/holographic_projector/Destroy()
|
||||
destroy_hologram()
|
||||
GLOB.moved_event.unregister(src, src, .proc/on_moved)
|
||||
return ..()
|
||||
|
||||
/obj/item/integrated_circuit/output/holographic_projector/do_work()
|
||||
@@ -506,7 +511,7 @@
|
||||
if(hologram)
|
||||
update_hologram()
|
||||
|
||||
/obj/item/integrated_circuit/output/holographic_projector/on_loc_moved(atom/oldloc)
|
||||
/obj/item/integrated_circuit/output/holographic_projector/proc/on_moved()
|
||||
if(hologram)
|
||||
update_hologram_position()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user