Files
Bubberstation/code/modules/mining/equipment/miningradio.dm
T
SkyratBot e80057fe96 [MIRROR] Adds Mining Weather Radios [MDB IGNORE] (#23048)
* Adds Mining Weather Radios

* Update cargo.dm

* Moves these edits to modular

---------

Co-authored-by: Lamb <110322848+CoiledLamb@users.noreply.github.com>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
2023-08-12 23:45:56 -04:00

25 lines
802 B
Plaintext

/// Portable mining radio purchasable by miners
/obj/item/radio/weather_monitor
icon = 'icons/obj/miningradio.dmi'
name = "mining weather radio"
icon_state = "miningradio"
desc = "A weather radio designed for use in inhospitable environments. Gives audible warnings when storms approach. Has access to cargo channel."
freqlock = RADIO_FREQENCY_LOCKED
luminosity = 1
light_power = 1
light_range = 1.6
/obj/item/radio/weather_monitor/update_overlays()
. = ..()
. += emissive_appearance(icon, "small_emissive", src, alpha = src.alpha)
/obj/item/radio/weather_monitor/Initialize(mapload)
. = ..()
AddComponent( \
/datum/component/weather_announcer, \
state_normal = "weatherwarning", \
state_warning = "urgentwarning", \
state_danger = "direwarning", \
)
set_frequency(FREQ_SUPPLY)