mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Removes network cards and printers from tablets [MDB IGNORE] (#16451)
* Removes network cards and printers from tablets * merge tablet_presets * printer.dm should have been deleted, missed change * update contractor tablet Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
co-authored by
John Willard
tastyfish
parent
a827c3d01b
commit
0339798a42
@@ -215,7 +215,7 @@ SUBSYSTEM_DEF(networks)
|
||||
* * network - optional, It can be a ntnet or just the text equivalent
|
||||
* * hardware_id = optional, text, will look it up and return with the parent.name as well
|
||||
*/
|
||||
/datum/controller/subsystem/networks/proc/add_log(log_string, network = null , hardware_id = null)
|
||||
/datum/controller/subsystem/networks/proc/add_log(log_string, network = null)
|
||||
set waitfor = FALSE // so process keeps running
|
||||
var/list/log_text = list()
|
||||
log_text += "\[[station_time_timestamp()]\]"
|
||||
@@ -228,15 +228,7 @@ SUBSYSTEM_DEF(networks)
|
||||
else // bad network?
|
||||
log_text += "{[network] *BAD*}"
|
||||
|
||||
if(hardware_id)
|
||||
var/datum/component/ntnet_interface/conn = interfaces_by_hardware_id[hardware_id]
|
||||
if(conn)
|
||||
log_text += " ([hardware_id])[conn.parent]"
|
||||
else
|
||||
log_text += " ([hardware_id])*BAD ID*"
|
||||
else
|
||||
log_text += "*SYSTEM*"
|
||||
log_text += " - "
|
||||
log_text += "*SYSTEM* - "
|
||||
log_text += log_string
|
||||
log_string = log_text.Join()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user