mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 21:42:41 +00:00
pAI Radio Fixes and Oversights (#10616)
This commit is contained in:
@@ -79,8 +79,7 @@
|
||||
recalculateChannels()
|
||||
|
||||
/obj/item/device/paicard/proc/recalculateChannels()
|
||||
radio.channels = list()
|
||||
|
||||
radio.channels = list("Common" = radio.FREQ_LISTENING, "Entertainment" = radio.FREQ_LISTENING)
|
||||
for(var/keyslot in installed_encryptionkeys)
|
||||
var/obj/item/device/encryptionkey/EK = keyslot
|
||||
for(var/ch_name in (EK.channels | EK.additional_channels))
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
var/list/software = list()
|
||||
var/userDNA // The DNA string of our assigned user
|
||||
var/obj/item/device/paicard/card // The card we inhabit
|
||||
var/obj/item/device/radio/radio // Our primary radio
|
||||
var/obj/item/device/radio/pai/radio // Our primary radio
|
||||
|
||||
|
||||
var/chassis = "repairbot" // A record of your chosen chassis.
|
||||
@@ -165,8 +165,9 @@
|
||||
sradio = new(src)
|
||||
if(card)
|
||||
if(!card.radio)
|
||||
card.radio = new /obj/item/device/radio(src.card)
|
||||
card.radio = new /obj/item/device/radio/pai(src.card)
|
||||
radio = card.radio
|
||||
card.recalculateChannels()
|
||||
|
||||
//Default languages without universal translator software
|
||||
|
||||
@@ -522,4 +523,7 @@
|
||||
return
|
||||
|
||||
var/selection = input(src, "Choose an icon for you card.") in pai_emotions
|
||||
card.setEmotion(pai_emotions[selection])
|
||||
card.setEmotion(pai_emotions[selection])
|
||||
|
||||
/obj/item/device/radio/pai
|
||||
canhear_range = 0 // only people on their tile
|
||||
@@ -35,6 +35,8 @@
|
||||
|
||||
data["listening"] = host.radio.broadcasting
|
||||
data["frequency"] = format_frequency(host.radio.frequency)
|
||||
VUEUI_SET_CHECK_IFNOTSET(data["radio_range"], host.radio.canhear_range, ., data)
|
||||
host.radio.canhear_range = data["radio_range"]
|
||||
|
||||
var/list/pai_channels = list()
|
||||
for(var/ch_name in host.radio.channels)
|
||||
|
||||
Reference in New Issue
Block a user