mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
[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>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/// 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)
|
||||
Reference in New Issue
Block a user