Skip to content

Commit

Permalink
Merge pull request #9300 from Spookerton/spkrtn/del/remove-tcomms-scr…
Browse files Browse the repository at this point in the history
…ipting

remove tcomms scripting
  • Loading branch information
Atermonera committed Jan 31, 2024
2 parents 87027a7 + d90b523 commit 93d7ad5
Show file tree
Hide file tree
Showing 75 changed files with 1,887 additions and 5,600 deletions.
10 changes: 5 additions & 5 deletions code/ZAS/Airflow.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contains helper procs for airflow, handled in /connection_group.
*/

/mob/var/tmp/last_airflow_stun = 0
/mob/var/last_airflow_stun = 0
/mob/proc/airflow_stun()
if(stat == 2)
return 0
Expand Down Expand Up @@ -64,10 +64,10 @@ Contains helper procs for airflow, handled in /connection_group.
else
if(n < vsc.airflow_dense_pressure) return 0

/atom/movable/var/tmp/turf/airflow_dest
/atom/movable/var/tmp/airflow_speed = 0
/atom/movable/var/tmp/airflow_time = 0
/atom/movable/var/tmp/last_airflow = 0
/atom/movable/var/turf/airflow_dest
/atom/movable/var/airflow_speed = 0
/atom/movable/var/airflow_time = 0
/atom/movable/var/last_airflow = 0

/atom/movable/proc/AirflowCanMove(n)
return 1
Expand Down
2 changes: 1 addition & 1 deletion code/ZAS/ConnectionManager.dm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Macros:
// macro-ized to cut down on proc calls
#define check(c) (c && c.valid())

/turf/var/tmp/connection_manager/connections
/turf/var/connection_manager/connections

/connection_manager/var/connection/N
/connection_manager/var/connection/S
Expand Down
4 changes: 2 additions & 2 deletions code/ZAS/Debug.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ var/global/image/mark = image('icons/Testing/Zone.dmi', icon_state = "mark")

/connection_edge/var/dbg_out = 0

/turf/var/tmp/dbg_img
/turf/var/dbg_img
/turf/proc/dbg(image/img, d = 0)
if(d > 0) img.dir = d
cut_overlay(dbg_img)
add_overlay(img)
dbg_img = img

/proc/soft_assert(thing,fail)
if(!thing) message_admins(fail)
if(!thing) message_admins(fail)
4 changes: 2 additions & 2 deletions code/controllers/subsystems/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ SUBSYSTEM_DEF(ai)
wait = 2 SECONDS

/// The list of AI datums to be processed.
var/static/tmp/list/queue = list()
var/static/list/queue = list()

/// The list of AI datums currently being processed.
var/static/tmp/list/current = list()
var/static/list/current = list()


/datum/controller/subsystem/ai/stat_entry(msg_prefix)
Expand Down
4 changes: 2 additions & 2 deletions code/controllers/subsystems/aifast.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ SUBSYSTEM_DEF(aifast)
wait = 0.25 SECONDS

/// The list of AI datums to be processed.
var/static/tmp/list/queue = list()
var/static/list/queue = list()

/// The list of AI datums currently being processed.
var/static/tmp/list/current = list()
var/static/list/current = list()


/datum/controller/subsystem/aifast/stat_entry(msg_prefix)
Expand Down
10 changes: 5 additions & 5 deletions code/controllers/subsystems/airflow.dm
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ SUBSYSTEM_DEF(airflow)
#undef CLEAR_OBJECT

/atom/movable
var/tmp/airflow_xo
var/tmp/airflow_yo
var/tmp/airflow_od
var/tmp/airflow_process_delay
var/tmp/airflow_skip_speedcheck
var/airflow_xo
var/airflow_yo
var/airflow_od
var/airflow_process_delay
var/airflow_skip_speedcheck

/atom/movable/proc/prepare_airflow(n)
if (!airflow_dest || airflow_speed < 0 || last_airflow > world.time - vsc.airflow_delay)
Expand Down
6 changes: 3 additions & 3 deletions code/controllers/subsystems/alarm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ SUBSYSTEM_DEF(alarm)
init_order = INIT_ORDER_ALARM

/// The list of alarm handlers this subsystem processes
var/static/tmp/list/datum/alarm_handler/handlers
var/static/list/datum/alarm_handler/handlers

/// The list of alarm handlers currently being processed
var/static/tmp/list/current = list()
var/static/list/current = list()

/// The list of active alarms
var/static/tmp/list/active = list()
var/static/list/active = list()


/datum/controller/subsystem/alarm/Initialize(timeofday)
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystems/events.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SUBSYSTEM_DEF(events)
name = "Events (Legacy)"
wait = 2 SECONDS

var/tmp/list/currentrun = null
var/list/currentrun = null

var/list/datum/event/active_events = list()
var/list/datum/event/finished_events = list()
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystems/inactivity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SUBSYSTEM_DEF(inactivity)
name = "Inactivity"
wait = 60 SECONDS
flags = SS_NO_INIT | SS_BACKGROUND
var/tmp/list/client_list
var/list/client_list
var/number_kicked = 0

/datum/controller/subsystem/inactivity/fire(resumed, no_mc_tick)
Expand Down
8 changes: 4 additions & 4 deletions code/controllers/subsystems/overlays.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ SUBSYSTEM_DEF(overlays)
init_order = INIT_ORDER_OVERLAY

/// The queue of atoms that need overlay updates.
var/static/tmp/list/queue = list()
var/static/list/queue = list()

/// A list([icon] = list([state] = [appearance], ...), ...) cache of appearances.
var/static/tmp/list/state_cache = list()
var/static/list/state_cache = list()

/// A list([icon] = [appearance], ...) cache of appearances.
var/static/tmp/list/icon_cache = list()
var/static/list/icon_cache = list()

/// The number of appearances currently cached.
var/static/tmp/cache_size = 0
var/static/cache_size = 0


/datum/controller/subsystem/overlays/Recover()
Expand Down
6 changes: 3 additions & 3 deletions code/controllers/subsystems/radiation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ SUBSYSTEM_DEF(radiation)
var/list/sources_assoc = list() // Sources indexed by turf for de-duplication.
var/list/resistance_cache = list() // Cache of turf's radiation resistance.

var/tmp/list/current_sources = list()
var/tmp/list/current_res_cache = list()
var/tmp/list/listeners = list()
var/list/current_sources = list()
var/list/current_res_cache = list()
var/list/listeners = list()

/datum/controller/subsystem/radiation/fire(resumed, no_mc_tick)
if (!resumed)
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystems/shuttles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SUBSYSTEM_DEF(shuttles)
var/list/sectors_to_initialize // Used to find all sector objects at the appropriate time.
var/block_init_queue = TRUE // Block initialization of new shuttles/sectors

var/tmp/list/current_run // Shuttles remaining to process this fire() tick
var/list/current_run // Shuttles remaining to process this fire() tick

/datum/controller/subsystem/shuttles/OnNew()
global.shuttle_controller = src // TODO - Remove this! Change everything to point at SSshuttles instead
Expand Down
10 changes: 5 additions & 5 deletions code/controllers/subsystems/tgui.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ SUBSYSTEM_DEF(tgui)
runlevels = RUNLEVEL_LOBBY | RUNLEVELS_DEFAULT

/// The current queue of UIs to be processed
var/static/tmp/list/current = list()
var/static/list/current = list()

/// The whole set of open UIs
var/static/tmp/list/open_uis = list()
var/static/list/open_uis = list()

/// The whole set of open UIs as ("\ref[owner]" = /datum/tgui?)
var/static/tmp/list/open_uis_by_src = list()
var/static/list/open_uis_by_src = list()

/// The template document used by all tgui instances
var/static/tmp/base_html
var/static/base_html


/datum/controller/subsystem/tgui/Recover()
Expand Down Expand Up @@ -346,4 +346,4 @@ SUBSYSTEM_DEF(tgui)
target.tgui_open_uis.Add(ui)
// Clear the old list.
source.tgui_open_uis.Cut()
return TRUE
return TRUE
4 changes: 2 additions & 2 deletions code/datums/datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
var/datum_flags = EMPTY_BITFIELD

#ifdef TESTING
var/tmp/running_find_references
var/tmp/last_find_references = 0
var/running_find_references
var/last_find_references = 0
#endif

// Default implementation of clean-up code.
Expand Down
91 changes: 0 additions & 91 deletions code/defines/procs/radio.dm

This file was deleted.

13 changes: 13 additions & 0 deletions code/game/machinery/machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -540,3 +540,16 @@ Class Procs:
// Stub for above proc. Implemented on exosuit fabricators and prosthetics fabricators.
/obj/machinery/proc/refresh_queue()
return


/obj/machinery/proc/get_multitool(mob/user)
var/obj/item/multitool/P = null
if (!issilicon(user) && istype(user.get_active_hand(), /obj/item/multitool))
P = user.get_active_hand()
else if (isAI(user))
var/mob/living/silicon/ai/U = user
P = U.aiMulti
else if (isrobot(user) && in_range(user, src))
if (istype(user.get_active_hand(), /obj/item/multitool))
P = user.get_active_hand()
return P
16 changes: 0 additions & 16 deletions code/game/machinery/newscaster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,6 @@
NEWSCASTER.newsAlert(annoncement)
NEWSCASTER.update_icon()

// var/list/receiving_pdas = new
// for (var/obj/item/pda/P in PDAs)
// if(!P.owner)
// continue
// if(P.toff)
// continue
// receiving_pdas += P

// spawn(0) // get_receptions sleeps further down the line, spawn of elsewhere
// var/datum/receptions/receptions = get_receptions(null, receiving_pdas) // datums are not atoms, thus we have to assume the newscast network always has reception

// for(var/obj/item/pda/PDA in receiving_pdas)
// if(!(receptions.receiver_reception[PDA] & TELECOMMS_RECEPTION_RECEIVER))
// continue

// PDA.new_news(annoncement)

var/global/datum/feed_network/news_network = new /datum/feed_network //The global news-network, which is coincidentally a global list.

Expand Down
Loading

0 comments on commit 93d7ad5

Please sign in to comment.