From dc5f5fb5f4f04fc7f0f485b9d20e0f7ec38c50f4 Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:20:20 -0400 Subject: [PATCH] The curator's PDA now works in space (#70319) * The curator's PDA is now long-ranged The Curator's PDA is now long ranged and allows for it to be used while out in space. I recently removed the modular computer parts that allowed PDAs to be upgraded to connect to NTNet while on different Z-levels, so thought this would be a good replacement since Curators are a space exploration job, so being able to still talk to other players or use the newscaster app while away, is something I think would be beneficial. --- code/modules/modular_computers/computers/item/computer.dm | 8 +++++++- .../computers/item/role_tablet_presets.dm | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index fa22c4effb1..58b394c2a15 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -65,6 +65,8 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar var/allow_chunky = FALSE var/honkamnt = 0 /// honk honk honk honk honk honkh onk honkhnoohnk + ///Whether the PDA can still use NTNet while out of NTNet's reach. + var/long_ranged = FALSE var/list/idle_threads // Idle programs on background. They still receive process calls but can't be interacted with. var/obj/physical = null // Object that represents our computer. It's used for Adjacent() and UI visibility checks. @@ -315,6 +317,9 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar else if(atom_integrity < max_integrity) . += span_warning("It is damaged.") + if(long_ranged) + . += "It is upgraded with an experimental long-ranged network capabilities, picking up NTNet frequencies while further away." + var/obj/item/computer_hardware/card_slot/card_slot = all_components[MC_CARD] var/obj/item/computer_hardware/card_slot/card_slot2 = all_components[MC_CARD2] var/multiple_slots = istype(card_slot) && istype(card_slot2) @@ -610,7 +615,8 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar return NTNET_GOOD_SIGNAL else if(is_mining_level(current_turf.z)) return NTNET_LOW_SIGNAL - + else if(long_ranged) + return NTNET_LOW_SIGNAL return NTNET_NO_SIGNAL /obj/item/modular_computer/proc/add_log(text) diff --git a/code/modules/modular_computers/computers/item/role_tablet_presets.dm b/code/modules/modular_computers/computers/item/role_tablet_presets.dm index 2fff0f8d9d5..b489f9e04bc 100644 --- a/code/modules/modular_computers/computers/item/role_tablet_presets.dm +++ b/code/modules/modular_computers/computers/item/role_tablet_presets.dm @@ -351,10 +351,12 @@ /obj/item/modular_computer/tablet/pda/curator name = "curator PDA" + desc = "A small experimental microcomputer." greyscale_config = null greyscale_colors = null icon_state = "pda-library" inserted_item = /obj/item/pen/fountain + long_ranged = TRUE default_applications = list( /datum/computer_file/program/newscaster, ) @@ -394,3 +396,4 @@ icon_state = "pda-clear" greyscale_config = null greyscale_colors = null + long_ranged = TRUE