mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 03:26:37 +01:00
More glowy
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
w_class = ITEMSIZE_LARGE
|
||||
canhear_range = 7 //VOREStation Edit
|
||||
flags = NOBLOODY
|
||||
light_color = "#00ff00"
|
||||
light_power = 0.25
|
||||
blocks_emissive = NONE
|
||||
var/circuit = /obj/item/weapon/circuitboard/intercom
|
||||
var/number = 0
|
||||
var/wiresexposed = 0
|
||||
@@ -17,6 +20,7 @@
|
||||
var/area/A = get_area(src)
|
||||
if(A)
|
||||
GLOB.apc_event.register(A, src, /atom/proc/update_icon)
|
||||
update_icon()
|
||||
|
||||
/obj/item/device/radio/intercom/Destroy()
|
||||
var/area/A = get_area(src)
|
||||
@@ -51,11 +55,13 @@
|
||||
/obj/item/device/radio/intercom/department/medbay
|
||||
name = "station intercom (Medbay)"
|
||||
icon_state = "medintercom"
|
||||
light_color = "#00aaff"
|
||||
frequency = MED_I_FREQ
|
||||
|
||||
/obj/item/device/radio/intercom/department/security
|
||||
name = "station intercom (Security)"
|
||||
icon_state = "secintercom"
|
||||
light_color = "#ff0000"
|
||||
frequency = SEC_I_FREQ
|
||||
|
||||
/obj/item/device/radio/intercom/entertainment
|
||||
@@ -166,8 +172,12 @@
|
||||
/obj/item/device/radio/intercom/update_icon()
|
||||
var/area/A = get_area(src)
|
||||
on = A?.powered(EQUIP)
|
||||
|
||||
cut_overlays()
|
||||
|
||||
if(!on)
|
||||
set_light(0)
|
||||
set_light_on(FALSE)
|
||||
if(wiresexposed)
|
||||
icon_state = "intercom-p_open"
|
||||
else
|
||||
@@ -175,8 +185,14 @@
|
||||
else
|
||||
if(wiresexposed)
|
||||
icon_state = "intercom_open"
|
||||
set_light(0)
|
||||
set_light_on(FALSE)
|
||||
else
|
||||
icon_state = initial(icon_state)
|
||||
add_overlay(mutable_appearance(icon, "[icon_state]_ov"))
|
||||
add_overlay(emissive_appearance(icon, "[icon_state]_ov"))
|
||||
set_light(2)
|
||||
set_light_on(TRUE)
|
||||
|
||||
//VOREStation Add Start
|
||||
/obj/item/device/radio/intercom/AICtrlClick(var/mob/user)
|
||||
|
||||
Reference in New Issue
Block a user