Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion modular_darkpack/modules/decor/code/decor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,30 @@
pixel_w = -32
anchored = TRUE

/obj/structure/trafficlight/standing
icon_state = "traffic-stand"

/obj/structure/trafficlight/Initialize(mapload)
. = ..()
var/area/vtm/my_area = get_area(src)
if(check_holidays(FESTIVE_SEASON))
var/area/my_area = get_area(src)
if(istype(my_area) && my_area.outdoors)
icon_state = "[initial(icon_state)]-snow"
if(my_area.requires_power)
RegisterSignal(my_area, COMSIG_AREA_POWER_CHANGE, PROC_REF(on_power_change))
//if(!my_area.powered()) TODO - sprite animated traffic light
//icon_state = "[initial(icon_state)]-off"

/obj/structure/trafficlight/proc/on_power_change(area/A)
SIGNAL_HANDLER
//if(A.power_light)
// icon_state = initial(icon_state)
//else
// icon_state = "[initial(icon_state)]-off"

/obj/structure/trafficlight/Destroy(force)
UnregisterSignal(get_area(src), COMSIG_AREA_POWER_CHANGE)
. = ..()

/obj/structure/closet/crate/dumpster
name = "dumpster"
Expand Down
Binary file modified modular_darkpack/modules/decor/icons/lamppost.dmi
Binary file not shown.