Skip to content

Commit

Permalink
TGS Test Merge (#6182)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordme authored and lordme committed Dec 6, 2023
2 parents e6b5ef1 + 08828a0 commit adadefa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions citadel.dme
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

// BEGIN_INCLUDE
#include "_mapload\_basemap.dm"
#include "_mapload\rift.dm"
#include "code\___compile_options.dm"
#include "code\__byond_version_compat.dm"
#include "code\__global_init.dm"
Expand Down Expand Up @@ -3116,6 +3117,7 @@
#include "code\modules\mapping\map_helpers\network_builder\_network_builder.dm"
#include "code\modules\mapping\map_helpers\network_builder\power_cable.dm"
#include "code\modules\mapping\spawner\_spawner.dm"
#include "code\modules\mapping\spawner\tcomms_relay.dm"
#include "code\modules\mapping\spawner\window.dm"
#include "code\modules\mapping\templates\engine.dm"
#include "code\modules\maps\_shim\away_spawner.dm"
Expand Down
23 changes: 23 additions & 0 deletions code/modules/mapping/spawner/tcomms_relay.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

/obj/spawner/tcomms_relay
name = "Tcomms relay spawner"
var/obj/machinery/telecomms/relay/preset/telecomms/created

/obj/spawner/tcomms_relay/Spawn()
created = new /obj/machinery/telecomms/relay/preset/telecomms(loc)

/obj/spawner/tcomms_relay/autoconnect
late = TRUE

/obj/spawner/tcomms_relay/autoconnect/Spawn()
..()
var/obj/machinery/telecomms/hub/preset/station_hub
station_hub = locate(/obj/machinery/telecomms/hub/preset/rift) in world
if(!station_hub)
station_hub = locate(/obj/machinery/telecomms/hub/preset/rift) in world
if(!station_hub)
station_hub = locate(/obj/machinery/telecomms/hub/preset/rift) in world
if(!station_hub)
log_and_message_admins("[src] failed to locate telecoms hub, no autoconnection possible.")
else
LAZYDISTINCTADD(station_hub.links, created)

0 comments on commit adadefa

Please sign in to comment.