diff --git a/code/modules/modular_computers/computers/item/computer_components.dm b/code/modules/modular_computers/computers/item/computer_components.dm index 06cd3989e30..ad1f928d145 100644 --- a/code/modules/modular_computers/computers/item/computer_components.dm +++ b/code/modules/modular_computers/computers/item/computer_components.dm @@ -3,11 +3,11 @@ return FALSE if(H.w_class > max_hardware_size) - user << "This component is too large for \the [src]!" + to_chat(user, "This component is too large for \the [src]!") return FALSE if(all_components[H.device_type]) - user << "This computer's hardware slot is already occupied by \the [all_components[H.device_type]]." + to_chat(user, "This computer's hardware slot is already occupied by \the [all_components[H.device_type]].") return FALSE return TRUE @@ -23,7 +23,7 @@ all_components[H.device_type] = H - user << "You install \the [H] into \the [src]." + to_chat(user, "You install \the [H] into \the [src].") H.holder = src H.on_install(src, user) @@ -35,7 +35,7 @@ all_components.Remove(H.device_type) - user << "You remove \the [H] from \the [src]." + to_chat(user, "You remove \the [H] from \the [src].") H.forceMove(get_turf(src)) H.holder = null diff --git a/code/modules/modular_computers/computers/item/computer_ui.dm b/code/modules/modular_computers/computers/item/computer_ui.dm index 0e24c7a26f4..4fb9615b061 100644 --- a/code/modules/modular_computers/computers/item/computer_ui.dm +++ b/code/modules/modular_computers/computers/item/computer_ui.dm @@ -88,7 +88,7 @@ return 1 P.kill_program(forced = TRUE) - user << "Program [P.filename].[P.filetype] with PID [rand(100,999)] has been killed." + to_chat(user, "Program [P.filename].[P.filetype] with PID [rand(100,999)] has been killed.") if("PC_runprogram") var/prog = href_list["name"] @@ -98,7 +98,7 @@ P = hard_drive.find_file_by_name(prog) if(!P || !istype(P)) // Program not found or it's not executable program. - user << "\The [src]'s screen shows \"I/O ERROR - Unable to run program\" warning." + to_chat(user, "\The [src]'s screen shows \"I/O ERROR - Unable to run program\" warning.") return 1 P.computer = src @@ -117,11 +117,11 @@ var/obj/item/weapon/computer_hardware/processor_unit/PU = all_components[MC_CPU] if(idle_threads.len > PU.max_idle_programs) - user << "\The [src] displays a \"Maximal CPU load reached. Unable to run another program.\" error." + to_chat(user, "\The [src] displays a \"Maximal CPU load reached. Unable to run another program.\" error.") return 1 if(P.requires_ntnet && !get_ntnet_status(P.requires_ntnet_feature)) // The program requires NTNet connection, but we are not connected to NTNet. - user << "\The [src]'s screen shows \"Unable to connect to NTNet. Please retry. If problem persists contact your system administrator.\" warning." + to_chat(user, "\The [src]'s screen shows \"Unable to connect to NTNet. Please retry. If problem persists contact your system administrator.\" warning.") return 1 if(P.run_program(user)) active_program = P diff --git a/code/modules/modular_computers/computers/item/laptop.dm b/code/modules/modular_computers/computers/item/laptop.dm index 911e8ac685c..7a7d27acd45 100644 --- a/code/modules/modular_computers/computers/item/laptop.dm +++ b/code/modules/modular_computers/computers/item/laptop.dm @@ -89,11 +89,11 @@ /obj/item/device/modular_computer/laptop/proc/toggle_open(mob/living/user=null) if(screen_on) - user << "You close \the [src]." + to_chat(user, "You close \the [src].") slowdown = initial(slowdown) w_class = initial(w_class) else - user << "You open \the [src]." + to_chat(user, "You open \the [src].") slowdown = slowdown_open w_class = w_class_open diff --git a/code/modules/modular_computers/file_system/program.dm b/code/modules/modular_computers/file_system/program.dm index 35d067c3ba3..b2158304d36 100644 --- a/code/modules/modular_computers/file_system/program.dm +++ b/code/modules/modular_computers/file_system/program.dm @@ -51,7 +51,7 @@ /datum/computer_file/program/proc/is_supported_by_hardware(hardware_flag = 0, loud = 0, mob/user = null) if(!(hardware_flag & usage_flags)) if(loud && computer && user) - user << "\The [computer] flashes an \"Hardware Error - Incompatible software\" warning." + to_chat(user, "\The [computer] flashes an \"Hardware Error - Incompatible software\" warning.") return 0 return 1 @@ -102,7 +102,7 @@ if(!I && !C && !D) if(loud) - user << "\The [computer] flashes an \"RFID Error - Unable to scan ID\" warning." + to_chat(user, "\The [computer] flashes an \"RFID Error - Unable to scan ID\" warning.") return 0 if(I) @@ -115,7 +115,7 @@ if(access_to_check in D.GetAccess()) return 1 if(loud) - user << "\The [computer] flashes an \"Access Denied\" warning." + to_chat(user, "\The [computer] flashes an \"Access Denied\" warning.") return 0 // This attempts to retrieve header data for UIs. If implementing completely new device of different type than existing ones diff --git a/code/modules/modular_computers/hardware/_hardware.dm b/code/modules/modular_computers/hardware/_hardware.dm index e00c10e0135..4f752fdac10 100644 --- a/code/modules/modular_computers/hardware/_hardware.dm +++ b/code/modules/modular_computers/hardware/_hardware.dm @@ -37,19 +37,19 @@ /obj/item/weapon/computer_hardware/attackby(obj/item/I, mob/living/user) // Multitool. Runs diagnostics if(istype(I, /obj/item/device/multitool)) - user << "***** DIAGNOSTICS REPORT *****" + to_chat(user, "***** DIAGNOSTICS REPORT *****") diagnostics(user) - user << "******************************" + to_chat(user, "******************************") return 1 // Cable coil. Works as repair method, but will probably require multiple applications and more cable. if(istype(I, /obj/item/stack/cable_coil)) var/obj/item/stack/S = I if(obj_integrity == max_integrity) - user << "\The [src] doesn't seem to require repairs." + to_chat(user, "\The [src] doesn't seem to require repairs.") return 1 if(S.use(1)) - user << "You patch up \the [src] with a bit of \the [I]." + to_chat(user, "You patch up \the [src] with a bit of \the [I].") obj_integrity = min(obj_integrity + 10, max_integrity) return 1 @@ -60,7 +60,7 @@ // Called on multitool click, prints diagnostic information to the user. /obj/item/weapon/computer_hardware/proc/diagnostics(var/mob/user) - user << "Hardware Integrity Test... (Corruption: [damage]/[max_damage]) [damage > damage_failure ? "FAIL" : damage > damage_malfunction ? "WARN" : "PASS"]" + to_chat(user, "Hardware Integrity Test... (Corruption: [damage]/[max_damage]) [damage > damage_failure ? "FAIL" : damage > damage_malfunction ? "WARN" : "PASS"]") // Handles damage checks /obj/item/weapon/computer_hardware/proc/check_functionality() @@ -83,11 +83,11 @@ /obj/item/weapon/computer_hardware/examine(var/mob/user) . = ..() if(damage > damage_failure) - user << "It seems to be severely damaged!" + to_chat(user, "It seems to be severely damaged!") else if(damage > damage_malfunction) - user << "It seems to be damaged!" + to_chat(user, "It seems to be damaged!") else if(damage) - user << "It seems to be slightly damaged." + to_chat(user, "It seems to be slightly damaged.") // Component-side compatibility check. /obj/item/weapon/computer_hardware/proc/can_install(obj/item/device/modular_computer/M, mob/living/user = null) diff --git a/code/modules/modular_computers/hardware/ai_slot.dm b/code/modules/modular_computers/hardware/ai_slot.dm index e08517c8e48..fd2d06bef27 100644 --- a/code/modules/modular_computers/hardware/ai_slot.dm +++ b/code/modules/modular_computers/hardware/ai_slot.dm @@ -14,7 +14,7 @@ /obj/item/weapon/computer_hardware/ai_slot/examine(mob/user) ..() if(stored_card) - user << "There appears to be an intelliCard loaded. There appears to be a pinhole protecting a manual eject button. A screwdriver could probably press it" + to_chat(user, "There appears to be an intelliCard loaded. There appears to be a pinhole protecting a manual eject button. A screwdriver could probably press it") /obj/item/weapon/computer_hardware/ai_slot/on_install(obj/item/device/modular_computer/M, mob/living/user = null) M.add_verb(device_type) @@ -30,25 +30,25 @@ return FALSE if(stored_card) - user << "You try to insert \the [I] into \the [src], but the slot is occupied." + to_chat(user, "You try to insert \the [I] into \the [src], but the slot is occupied.") return FALSE if(user && !user.unEquip(I)) return FALSE I.forceMove(src) stored_card = I - user << "You insert \the [I] into \the [src]." + to_chat(user, "You insert \the [I] into \the [src].") return TRUE /obj/item/weapon/computer_hardware/ai_slot/try_eject(slot=0,mob/living/user = null,forced = 0) if(!stored_card) - user << "There is no card in \the [src]." + to_chat(user, "There is no card in \the [src].") return FALSE if(locked && !forced) - user << "Safeties prevent you from removing the card until reconstruction is complete..." + to_chat(user, "Safeties prevent you from removing the card until reconstruction is complete...") return FALSE if(stored_card) @@ -57,7 +57,7 @@ stored_card.verb_pickup() stored_card = null - user << "You remove the card from \the [src]." + to_chat(user, "You remove the card from \the [src].") return TRUE return FALSE @@ -65,6 +65,6 @@ if(..()) return if(istype(I, /obj/item/weapon/screwdriver)) - user << "You press down on the manual eject button with \the [I]." + to_chat(user, "You press down on the manual eject button with \the [I].") try_eject(,user,1) return \ No newline at end of file diff --git a/code/modules/modular_computers/hardware/battery_module.dm b/code/modules/modular_computers/hardware/battery_module.dm index 1edb2c4df7d..64558e5f46a 100644 --- a/code/modules/modular_computers/hardware/battery_module.dm +++ b/code/modules/modular_computers/hardware/battery_module.dm @@ -21,11 +21,11 @@ return FALSE if(battery) - user << "You try to connect \the [I] to \the [src], but its connectors are occupied." + to_chat(user, "You try to connect \the [I] to \the [src], but its connectors are occupied.") return FALSE if(I.w_class > holder.max_hardware_size) - user << "This power cell is too large for \the [holder]!" + to_chat(user, "This power cell is too large for \the [holder]!") return FALSE if(user && !user.unEquip(I)) @@ -33,18 +33,18 @@ I.forceMove(src) battery = I - user << "You connect \the [I] to \the [src]." + to_chat(user, "You connect \the [I] to \the [src].") return TRUE /obj/item/weapon/computer_hardware/battery/try_eject(slot=0, mob/living/user = null, forced = 0) if(!battery) - user << "There is no power cell connected to \the [src]." + to_chat(user, "There is no power cell connected to \the [src].") return FALSE else battery.forceMove(get_turf(src)) - user << "You detach \the [battery] from \the [src]." + to_chat(user, "You detach \the [battery] from \the [src].") battery = null if(holder) diff --git a/code/modules/modular_computers/hardware/card_slot.dm b/code/modules/modular_computers/hardware/card_slot.dm index 9a08ed0445d..76781828650 100644 --- a/code/modules/modular_computers/hardware/card_slot.dm +++ b/code/modules/modular_computers/hardware/card_slot.dm @@ -44,7 +44,7 @@ return FALSE if(stored_card && stored_card2) - user << "You try to insert \the [I] into \the [src], but its slots are occupied." + to_chat(user, "You try to insert \the [I] into \the [src], but its slots are occupied.") return FALSE if(user && !user.unEquip(I)) return FALSE @@ -55,14 +55,14 @@ stored_card = I else stored_card2 = I - user << "You insert \the [I] into \the [src]." + to_chat(user, "You insert \the [I] into \the [src].") return TRUE /obj/item/weapon/computer_hardware/card_slot/try_eject(slot=0, mob/living/user = null, forced = 0) if(!stored_card && !stored_card2) - user << "There are no cards in \the [src]." + to_chat(user, "There are no cards in \the [src].") return FALSE var/ejected = 0 @@ -87,7 +87,7 @@ var/datum/computer_file/program/P = I P.event_idremoved(1, slot) - user << "You remove the card[ejected>1 ? "s" : ""] from \the [src]." + to_chat(user, "You remove the card[ejected>1 ? "s" : ""] from \the [src].") return TRUE return FALSE @@ -95,11 +95,11 @@ if(..()) return if(istype(I, /obj/item/weapon/screwdriver)) - user << "You press down on the manual eject button with \the [I]." + to_chat(user, "You press down on the manual eject button with \the [I].") try_eject(0,user) return /obj/item/weapon/computer_hardware/card_slot/examine(mob/user) ..() if(stored_card || stored_card2) - user << "There appears to be something loaded in the card slots." + to_chat(user, "There appears to be something loaded in the card slots.") diff --git a/code/modules/modular_computers/hardware/hard_drive.dm b/code/modules/modular_computers/hardware/hard_drive.dm index 4a770c27be1..9339f3d3c5d 100644 --- a/code/modules/modular_computers/hardware/hard_drive.dm +++ b/code/modules/modular_computers/hardware/hard_drive.dm @@ -21,13 +21,13 @@ /obj/item/weapon/computer_hardware/hard_drive/examine(user) ..() - user << "It has [max_capacity] GQ of storage capacity." + to_chat(user, "It has [max_capacity] GQ of storage capacity.") /obj/item/weapon/computer_hardware/hard_drive/diagnostics(var/mob/user) ..() // 999 is a byond limit that is in place. It's unlikely someone will reach that many files anyway, since you would sooner run out of space. - user << "NT-NFS File Table Status: [stored_files.len]/999" - user << "Storage capacity: [used_capacity]/[max_capacity]GQ" + to_chat(user, "NT-NFS File Table Status: [stored_files.len]/999") + to_chat(user, "Storage capacity: [used_capacity]/[max_capacity]GQ") // Use this proc to add file to the drive. Returns 1 on success and 0 on failure. Contains necessary sanity checks. /obj/item/weapon/computer_hardware/hard_drive/proc/store_file(var/datum/computer_file/F) diff --git a/code/modules/modular_computers/hardware/network_card.dm b/code/modules/modular_computers/hardware/network_card.dm index 9c25971c582..bf918a86b99 100644 --- a/code/modules/modular_computers/hardware/network_card.dm +++ b/code/modules/modular_computers/hardware/network_card.dm @@ -15,14 +15,14 @@ var/global/ntnet_card_uid = 1 /obj/item/weapon/computer_hardware/network_card/diagnostics(var/mob/user) ..() - user << "NIX Unique ID: [identification_id]" - user << "NIX User Tag: [identification_string]" - user << "Supported protocols:" - user << "511.m SFS (Subspace) - Standard Frequency Spread" + to_chat(user, "NIX Unique ID: [identification_id]") + to_chat(user, "NIX User Tag: [identification_string]") + to_chat(user, "Supported protocols:") + to_chat(user, "511.m SFS (Subspace) - Standard Frequency Spread") if(long_range) - user << "511.n WFS/HB (Subspace) - Wide Frequency Spread/High Bandiwdth" + to_chat(user, "511.n WFS/HB (Subspace) - Wide Frequency Spread/High Bandiwdth") if(ethernet) - user << "OpenEth (Physical Connection) - Physical network connection port" + to_chat(user, "OpenEth (Physical Connection) - Physical network connection port") /obj/item/weapon/computer_hardware/network_card/New(var/l) ..(l) diff --git a/code/modules/modular_computers/hardware/printer.dm b/code/modules/modular_computers/hardware/printer.dm index 9595b7e5384..611e2a8765e 100644 --- a/code/modules/modular_computers/hardware/printer.dm +++ b/code/modules/modular_computers/hardware/printer.dm @@ -11,11 +11,11 @@ /obj/item/weapon/computer_hardware/printer/diagnostics(mob/living/user) ..() - user << "Paper level: [stored_paper]/[max_paper]" + to_chat(user, "Paper level: [stored_paper]/[max_paper]") /obj/item/weapon/computer_hardware/printer/examine(mob/user) ..() - user << "Paper level: [stored_paper]/[max_paper]" + to_chat(user, "Paper level: [stored_paper]/[max_paper]") /obj/item/weapon/computer_hardware/printer/proc/print_text(var/text_to_print, var/paper_title = "") @@ -41,13 +41,13 @@ /obj/item/weapon/computer_hardware/printer/try_insert(obj/item/I, mob/living/user = null) if(istype(I, /obj/item/weapon/paper)) if(stored_paper >= max_paper) - user << "You try to add \the [I] into [src], but its paper bin is full!" + to_chat(user, "You try to add \the [I] into [src], but its paper bin is full!") return FALSE if(user && !user.unEquip(I)) return FALSE - user << "You insert \the [I] into [src]'s paper recycler." + to_chat(user, "You insert \the [I] into [src]'s paper recycler.") qdel(I) stored_paper++ return TRUE diff --git a/code/modules/modular_computers/hardware/recharger.dm b/code/modules/modular_computers/hardware/recharger.dm index cb057c2775a..d1cd1b52948 100644 --- a/code/modules/modular_computers/hardware/recharger.dm +++ b/code/modules/modular_computers/hardware/recharger.dm @@ -57,7 +57,7 @@ /obj/item/weapon/computer_hardware/recharger/wired/can_install(obj/item/device/modular_computer/M, mob/living/user = null) if(istype(M.physical, /obj/machinery) && M.physical.anchored) return ..() - user << "\The [src] is incompatible with portable computers!" + to_chat(user, "\The [src] is incompatible with portable computers!") return 0 /obj/item/weapon/computer_hardware/recharger/wired/use_power(amount, charging=0)