mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 13:39:16 +01:00
ss atoms update (#17529)
* draft ss atoms update * . * . * . * low wall * do that when not asleep * late init handling * . * smes * try this
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
/obj/effect/expl_particles/Initialize(mapload)
|
||||
. = ..()
|
||||
QDEL_IN(src, 1.5 SECONDS)
|
||||
return
|
||||
|
||||
/datum/effect/system/expl_particles
|
||||
var/number = 10
|
||||
@@ -44,7 +43,6 @@
|
||||
/obj/effect/explosion/Initialize(mapload)
|
||||
. = ..()
|
||||
QDEL_IN(src, 1 SECOND)
|
||||
return
|
||||
|
||||
/datum/effect/system/explosion
|
||||
var/turf/location
|
||||
|
||||
@@ -92,8 +92,6 @@
|
||||
. = ..()
|
||||
tag = "start*[name]"
|
||||
|
||||
return 1
|
||||
|
||||
/obj/effect/landmark/forbidden_level
|
||||
delete_me = TRUE
|
||||
|
||||
|
||||
@@ -808,7 +808,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
|
||||
if((M.stat && !zoom) || !(ishuman(M)))
|
||||
to_chat(M, span_filter_notice("You are unable to focus through the [devicename]."))
|
||||
cannotzoom = 1
|
||||
else if(!zoom && (global_hud.darkMask[1] in M.client.screen))
|
||||
else if(!zoom && (GLOB.global_hud.darkMask[1] in M.client.screen))
|
||||
to_chat(M, span_filter_notice("Your visor gets in the way of looking through the [devicename]."))
|
||||
cannotzoom = 1
|
||||
else if(!zoom && M.get_active_hand() != src)
|
||||
|
||||
@@ -351,8 +351,8 @@ var/global/list/obj/item/communicator/all_communicators = list() //Don't change
|
||||
|
||||
/obj/machinery/camera/communicator/Initialize(mapload)
|
||||
. = ..()
|
||||
client_huds |= global_hud.whitense
|
||||
client_huds |= global_hud.darkMask
|
||||
client_huds |= GLOB.global_hud.whitense
|
||||
client_huds |= GLOB.global_hud.darkMask
|
||||
|
||||
//It's the 26th century. We should have smart watches by now.
|
||||
/obj/item/communicator/watch
|
||||
|
||||
@@ -85,45 +85,45 @@ var/global/list/default_medbay_channels = list(
|
||||
wires = new(src)
|
||||
internal_channels = default_internal_channels.Copy()
|
||||
listening_objects += src
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
if(bluespace_radio && (bs_tx_preload_id || bs_rx_preload_id))
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/item/radio/LateInitialize()
|
||||
. = ..()
|
||||
if(bluespace_radio)
|
||||
if(bs_tx_preload_id)
|
||||
//Try to find a receiver
|
||||
for(var/obj/machinery/telecomms/receiver/RX in telecomms_list)
|
||||
if(RX.id == bs_tx_preload_id) //Again, bs_tx is the thing to TRANSMIT TO, so a receiver.
|
||||
bs_tx_weakref = WEAKREF(RX)
|
||||
RX.link_radio(src)
|
||||
if(bs_tx_preload_id)
|
||||
//Try to find a receiver
|
||||
for(var/obj/machinery/telecomms/receiver/RX in telecomms_list)
|
||||
if(RX.id == bs_tx_preload_id) //Again, bs_tx is the thing to TRANSMIT TO, so a receiver.
|
||||
bs_tx_weakref = WEAKREF(RX)
|
||||
RX.link_radio(src)
|
||||
break
|
||||
//Hmm, howabout an AIO machine
|
||||
if(!bs_tx_weakref)
|
||||
for(var/obj/machinery/telecomms/allinone/AIO in telecomms_list)
|
||||
if(AIO.id == bs_tx_preload_id)
|
||||
bs_tx_weakref = WEAKREF(AIO)
|
||||
AIO.link_radio(src)
|
||||
break
|
||||
//Hmm, howabout an AIO machine
|
||||
if(!bs_tx_weakref)
|
||||
for(var/obj/machinery/telecomms/allinone/AIO in telecomms_list)
|
||||
if(AIO.id == bs_tx_preload_id)
|
||||
bs_tx_weakref = WEAKREF(AIO)
|
||||
AIO.link_radio(src)
|
||||
break
|
||||
if(!bs_tx_weakref)
|
||||
testing("A radio [src] at [x],[y],[z] specified bluespace prelink IDs, but the machines with corresponding IDs ([bs_tx_preload_id], [bs_rx_preload_id]) couldn't be found.")
|
||||
if(!bs_tx_weakref)
|
||||
testing("A radio [src] at [x],[y],[z] specified bluespace prelink IDs, but the machines with corresponding IDs ([bs_tx_preload_id], [bs_rx_preload_id]) couldn't be found.")
|
||||
|
||||
if(bs_rx_preload_id)
|
||||
var/found = 0
|
||||
//Try to find a transmitter
|
||||
for(var/obj/machinery/telecomms/broadcaster/TX in telecomms_list)
|
||||
if(TX.id == bs_rx_preload_id) //Again, bs_rx is the thing to RECEIVE FROM, so a transmitter.
|
||||
TX.link_radio(src)
|
||||
if(bs_rx_preload_id)
|
||||
var/found = 0
|
||||
//Try to find a transmitter
|
||||
for(var/obj/machinery/telecomms/broadcaster/TX in telecomms_list)
|
||||
if(TX.id == bs_rx_preload_id) //Again, bs_rx is the thing to RECEIVE FROM, so a transmitter.
|
||||
TX.link_radio(src)
|
||||
found = 1
|
||||
break
|
||||
//Hmm, howabout an AIO machine
|
||||
if(!found)
|
||||
for(var/obj/machinery/telecomms/allinone/AIO in telecomms_list)
|
||||
if(AIO.id == bs_rx_preload_id)
|
||||
AIO.link_radio(src)
|
||||
found = 1
|
||||
break
|
||||
//Hmm, howabout an AIO machine
|
||||
if(!found)
|
||||
for(var/obj/machinery/telecomms/allinone/AIO in telecomms_list)
|
||||
if(AIO.id == bs_rx_preload_id)
|
||||
AIO.link_radio(src)
|
||||
found = 1
|
||||
break
|
||||
if(!found)
|
||||
testing("A radio [src] at [x],[y],[z] specified bluespace prelink IDs, but the machines with corresponding IDs ([bs_tx_preload_id], [bs_rx_preload_id]) couldn't be found.")
|
||||
if(!found)
|
||||
testing("A radio [src] at [x],[y],[z] specified bluespace prelink IDs, but the machines with corresponding IDs ([bs_tx_preload_id], [bs_rx_preload_id]) couldn't be found.")
|
||||
|
||||
/obj/item/radio/Destroy()
|
||||
qdel(wires)
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/structure/closet/LateInitialize()
|
||||
. = ..()
|
||||
if(starts_with)
|
||||
create_objects_in_loc(src, starts_with)
|
||||
starts_with = null
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/structure/low_wall/LateInitialize()
|
||||
. = ..()
|
||||
update_connections(1)
|
||||
update_icon()
|
||||
|
||||
@@ -351,7 +350,6 @@
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/structure/grille/bay/LateInitialize()
|
||||
. = ..()
|
||||
update_connections(1)
|
||||
update_icon()
|
||||
|
||||
@@ -412,7 +410,6 @@
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/structure/window/bay/LateInitialize()
|
||||
. = ..()
|
||||
icon_state = ""
|
||||
update_icon()
|
||||
|
||||
@@ -503,7 +500,6 @@
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/structure/window/eris/LateInitialize()
|
||||
. = ..()
|
||||
icon_state = ""
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ FLOOR SAFES
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/structure/safe/LateInitialize()
|
||||
. = ..()
|
||||
for(var/obj/item/I in loc)
|
||||
if(space >= maxspace)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user