mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-09 07:08:03 +01:00
e80057fe96
* 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>
25 lines
802 B
Plaintext
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)
|