mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
rm subspace, fix colors II, fix intercoms
This commit is contained in:
@@ -159,7 +159,6 @@
|
||||
radio.name = "[src] radio"
|
||||
radio.icon = icon
|
||||
radio.icon_state = icon_state
|
||||
radio.subspace_transmission = TRUE
|
||||
|
||||
/obj/mecha/examine(mob/user)
|
||||
. = ..()
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
"Vox Armalis" = 'icons/mob/species/armalis/ears.dmi'
|
||||
) //We read you loud and skree-er.
|
||||
materials = list(MAT_METAL=75)
|
||||
subspace_transmission = TRUE
|
||||
canhear_range = 0 // can't hear headsets from very far away
|
||||
|
||||
slot_flags = SLOT_EARS
|
||||
|
||||
@@ -75,7 +75,6 @@
|
||||
name = "illicit intercom"
|
||||
desc = "Talk through this. Evilly"
|
||||
frequency = SYND_FREQ
|
||||
subspace_transmission = TRUE
|
||||
syndiekey = new /obj/item/encryptionkey/syndicate/nukeops
|
||||
|
||||
/obj/item/radio/intercom/syndicate/New()
|
||||
@@ -85,7 +84,6 @@
|
||||
/obj/item/radio/intercom/pirate
|
||||
name = "pirate radio intercom"
|
||||
desc = "You wouldn't steal a space shuttle. Piracy. It's a crime!"
|
||||
subspace_transmission = TRUE
|
||||
|
||||
/obj/item/radio/intercom/pirate/New()
|
||||
..()
|
||||
@@ -109,13 +107,13 @@
|
||||
GLOB.global_intercoms.Remove(src)
|
||||
return ..()
|
||||
|
||||
/obj/item/radio/intercom/attack_ai(mob/user as mob)
|
||||
/obj/item/radio/intercom/attack_ai(mob/user)
|
||||
add_hiddenprint(user)
|
||||
add_fingerprint(user)
|
||||
spawn(0)
|
||||
attack_self(user)
|
||||
|
||||
/obj/item/radio/intercom/attack_hand(mob/user as mob)
|
||||
/obj/item/radio/intercom/attack_hand(mob/user)
|
||||
add_fingerprint(user)
|
||||
spawn(0)
|
||||
attack_self(user)
|
||||
|
||||
@@ -43,9 +43,6 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
var/listening = TRUE
|
||||
/// Whether the radio can be re-tuned to restricted channels it has no key for
|
||||
var/freerange = FALSE
|
||||
var/subspace_transmission = FALSE
|
||||
/// Whether the subspace_transmission of the radio can be toggled
|
||||
var/subspace_switchable = FALSE
|
||||
/// Whether the radio is able to have its primary frequency changed. Used for radios with weird primary frequencies, like DS, syndi, etc
|
||||
var/freqlock = FALSE
|
||||
|
||||
@@ -118,8 +115,7 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
/obj/item/radio/attack_ghost(mob/user)
|
||||
return interact(user)
|
||||
|
||||
/obj/item/radio/attack_self(mob/user as mob)
|
||||
user.set_machine(src)
|
||||
/obj/item/radio/attack_self(mob/user)
|
||||
tgui_interact(user)
|
||||
|
||||
/obj/item/radio/interact(mob/user)
|
||||
@@ -129,7 +125,7 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
wires.Interact(user)
|
||||
tgui_interact(user)
|
||||
|
||||
/obj/item/radio/tgui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = TRUE, datum/tgui/master_ui = null, datum/tgui_state/state = GLOB.tgui_inventory_state)
|
||||
/obj/item/radio/tgui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = TRUE, datum/tgui/master_ui = null, datum/tgui_state/state = GLOB.tgui_physical_state)
|
||||
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
|
||||
if(!ui)
|
||||
ui = new(user, src, ui_key, "Radio", name, 360, 150 + (length(channels) * 20), master_ui, state)
|
||||
@@ -151,9 +147,6 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
|
||||
data["has_loudspeaker"] = has_loudspeaker
|
||||
data["loudspeaker"] = loudspeaker
|
||||
data["subspace"] = subspace_transmission
|
||||
data["subspaceSwitchable"] = subspace_switchable
|
||||
|
||||
return data
|
||||
|
||||
/obj/item/radio/tgui_act(action, params, datum/tgui/ui)
|
||||
@@ -191,14 +184,6 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
channels[channel] &= ~FREQ_LISTENING
|
||||
else
|
||||
channels[channel] |= FREQ_LISTENING
|
||||
if("subspace")
|
||||
if(subspace_switchable)
|
||||
subspace_transmission = !subspace_transmission
|
||||
if(!subspace_transmission)
|
||||
channels = list()
|
||||
else
|
||||
recalculateChannels()
|
||||
. = TRUE
|
||||
if("loudspeaker")
|
||||
// // Toggle loudspeaker mode, AKA everyone around you hearing your radio.
|
||||
if(has_loudspeaker)
|
||||
@@ -621,8 +606,6 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
||||
has_loudspeaker = TRUE
|
||||
loudspeaker = FALSE
|
||||
canhear_range = 0
|
||||
subspace_transmission = TRUE
|
||||
subspace_switchable = TRUE
|
||||
dog_fashion = null
|
||||
|
||||
/obj/item/radio/borg/syndicate
|
||||
|
||||
@@ -94,7 +94,6 @@
|
||||
hud_possible = list(DIAG_STAT_HUD, DIAG_BOT_HUD, DIAG_HUD, DIAG_PATH_HUD = HUD_LIST_LIST)//Diagnostic HUD views
|
||||
|
||||
/obj/item/radio/headset/bot
|
||||
subspace_transmission = TRUE
|
||||
requires_tcomms = FALSE
|
||||
canhear_range = 0
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ export const RADIO_CHANNELS = [
|
||||
color: '#a52a2a',
|
||||
},
|
||||
{
|
||||
name: 'SyndicateTeam',
|
||||
name: 'SyndTeam',
|
||||
freq: 1244,
|
||||
color: '#a52a2a',
|
||||
},
|
||||
@@ -74,6 +74,11 @@ export const RADIO_CHANNELS = [
|
||||
freq: 1345,
|
||||
color: '#2681a5',
|
||||
},
|
||||
{
|
||||
name: 'SpecOps',
|
||||
freq: 1341,
|
||||
color: '#2681a5',
|
||||
},
|
||||
{
|
||||
name: 'Supply',
|
||||
freq: 1347,
|
||||
|
||||
@@ -17,8 +17,6 @@ export const Radio = (props, context) => {
|
||||
broadcasting,
|
||||
loudspeaker,
|
||||
has_loudspeaker,
|
||||
subspace,
|
||||
subspaceSwitchable,
|
||||
} = data;
|
||||
const tunedChannel = RADIO_CHANNELS
|
||||
.find(channel => channel.freq === frequency);
|
||||
@@ -97,38 +95,28 @@ export const Radio = (props, context) => {
|
||||
content="Loudspeaker"
|
||||
onClick={() => act('loudspeaker')} />
|
||||
)}
|
||||
{!!subspaceSwitchable && (
|
||||
<Button
|
||||
ml={1}
|
||||
icon="broadcast-tower"
|
||||
selected={subspace}
|
||||
content={`Subspace Tx`}
|
||||
onClick={() => act('subspace')} />
|
||||
)}
|
||||
</LabeledList.Item>
|
||||
{(!!subspace) && (
|
||||
<LabeledList.Item label="Channels">
|
||||
{channels.length === 0 && (
|
||||
<Box inline color="bad">
|
||||
No encryption keys installed.
|
||||
<LabeledList.Item label="Channels">
|
||||
{channels.length === 0 && (
|
||||
<Box inline color="bad">
|
||||
No encryption keys installed.
|
||||
</Box>
|
||||
)}
|
||||
{channels.map(channel => (
|
||||
<Box key={channel.name}>
|
||||
<Button
|
||||
icon={channel.status ? 'check-square-o' : 'square-o'}
|
||||
selected={channel.status}
|
||||
content=""
|
||||
onClick={() => act('channel', {
|
||||
channel: channel.name,
|
||||
})} />
|
||||
<Box inline color={colorMap[channel.name]}>
|
||||
{channel.name}
|
||||
</Box>
|
||||
)}
|
||||
{channels.map(channel => (
|
||||
<Box key={channel.name}>
|
||||
<Button
|
||||
icon={channel.status ? 'check-square-o' : 'square-o'}
|
||||
selected={channel.status}
|
||||
content=""
|
||||
onClick={() => act('channel', {
|
||||
channel: channel.name,
|
||||
})} />
|
||||
<Box inline color={colorMap[channel.name]}>
|
||||
{channel.name}
|
||||
</Box>
|
||||
</Box>
|
||||
))}
|
||||
</LabeledList.Item>
|
||||
)}
|
||||
</Box>
|
||||
))}
|
||||
</LabeledList.Item>
|
||||
</LabeledList>
|
||||
</Section>
|
||||
</Window.Content>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user