mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Review 2-3
This commit is contained in:
@@ -40,16 +40,16 @@
|
||||
|
||||
/obj/machinery/computer/message_monitor/LateInitialize()
|
||||
//Is the monitor isn't linked to a server, and there's a server available, default it to the first one in the list.
|
||||
if(!linkedServer)
|
||||
if(length(GLOB.message_servers))
|
||||
linkedServer = GLOB.message_servers[1]
|
||||
RegisterSignal(linkedServer, COMSIG_PARENT_QDELETING, .proc/unlink_server)
|
||||
if(!linkedServer && length(GLOB.message_servers))
|
||||
linkedServer = GLOB.message_servers[1]
|
||||
RegisterSignal(linkedServer, COMSIG_PARENT_QDELETING, .proc/unlink_server)
|
||||
|
||||
/obj/machinery/computer/message_monitor/proc/unlink_server()
|
||||
linkedServer = null
|
||||
|
||||
/obj/machinery/computer/message_monitor/Destroy()
|
||||
customrecepient = null
|
||||
linkedServer = null
|
||||
return ..()
|
||||
|
||||
/obj/machinery/computer/message_monitor/screwdriver_act(mob/user, obj/item/I)
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
/obj/effect/nanomob/Destroy()
|
||||
SSmob_hunt.trap_spawns -= src
|
||||
SSmob_hunt.normal_spawns -= src
|
||||
clients_encountered.Cut()
|
||||
QDEL_NULL(mob_info)
|
||||
qdel(avatar)
|
||||
return ..()
|
||||
|
||||
/obj/effect/nanomob/proc/update_self()
|
||||
|
||||
@@ -30,8 +30,7 @@
|
||||
|
||||
/datum/data/pda/app/mob_hunter_game/Destroy()
|
||||
STOP_PROCESSING(SSobj, pda)
|
||||
if(SSmob_hunt)
|
||||
SSmob_hunt.connected_clients -= src
|
||||
SSmob_hunt.connected_clients -= src
|
||||
return ..()
|
||||
|
||||
/datum/data/pda/app/mob_hunter_game/proc/scan_nearby()
|
||||
|
||||
@@ -40,8 +40,9 @@
|
||||
w -= disable_wire
|
||||
|
||||
/obj/machinery/r_n_d/Destroy()
|
||||
loaded_item.forceMove(get_turf(src))
|
||||
loaded_item = null
|
||||
if(loaded_item)
|
||||
loaded_item.forceMove(get_turf(src))
|
||||
loaded_item = null
|
||||
linked_console = null
|
||||
materials = null
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user