mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-14 17:36:52 +01:00
7d058fc613
V2 of [previous music playing PR](https://github.com/Aurorastation/Aurora.3/pull/21466). TLDR no longer uses the connect_range component for implementation because it turned out a bit too inflexible for overlapping music players. Removes a NanoUI template for the [TGUI update](https://github.com/Aurorastation/Aurora.3/pull/21046). New changelog: - refactor: "Ported Jukebox's NanoUI interface to TGUI." - refactor: "Ported Jukebox audio playing functionality to a component." - refactor: "Sound keys refactored from singletons to datums, along with larger breakout of sound.dm to allow for easier SFX updates in future." - code_imp: "Expanded track datums to include track lengths." - code_imp: "Reorganized music file folders for more intuitive access." - rscadd: "Earphone status feedback text now includes track length." - rscadd: "Added autoplay functionality to earphones." - bugfix: "Fixed earphones' 'Previous Song' verb not sending you to the end of the playlist when used while the first track is selected." - bugfix: "Fixed gain adjustment for 'Konyang-1' (-23 dB -> standard -9.8 dB)." - bugfix: "Fixed y-offset of audioconsole-running overlay animation to line up with the actual screen." --------- Co-authored-by: VMSolidus <evilexecutive@gmail.com>
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
/datum/event/psi
|
|
startWhen = 30
|
|
endWhen = 120
|
|
|
|
/datum/event/psi/announce()
|
|
priority_announcement.Announce( \
|
|
"A localized disruption within the neighboring psionic continua has been detected. All psi-operant crewmembers \
|
|
are advised to cease any sensitive activities and report to medical personnel in case of damage.", \
|
|
"Nralakk Federation Observation Probe TC-203 Sensor Array", new_sound = 'sound/ai/announcements/nightlight_old.ogg', zlevels = affecting_z)
|
|
|
|
/datum/event/psi/announce_end()
|
|
. = ..()
|
|
if(.)
|
|
priority_announcement.Announce( \
|
|
"The psi-disturbance has ended and baseline normality has been re-asserted. \
|
|
Anything you still can't cope with is therefore your own problem.", \
|
|
"Nralakk Federation Observation Probe TC-203 Sensor Array", new_sound = 'sound/ai/announcements/nightlight_old.ogg', zlevels = affecting_z)
|
|
|
|
/datum/event/psi/tick()
|
|
for(var/thing in SSpsi.processing)
|
|
apply_psi_effect(thing)
|
|
|
|
/datum/event/psi/proc/apply_psi_effect(var/datum/psi_complexus/psi)
|
|
return psi && ishuman(psi.owner)
|