Port current /tg/ lighting system

This commit is contained in:
Chompstation Bot
2021-06-18 04:23:09 +00:00
parent 8aa043f4f4
commit 55e3dc7904
369 changed files with 16264 additions and 2783 deletions

View File

@@ -4,7 +4,7 @@
name = "lantern"
icon_state = "lantern"
desc = "A mining lantern."
brightness_on = 6 // luminosity when on
light_range = 6 // luminosity when on
light_color = "FF9933" // A slight yellow/orange color.
/*****************************Pickaxe********************************/

View File

@@ -14,7 +14,7 @@
/obj/structure/outcrop/Initialize()
. = ..()
if(prob(1))
overlays += image(icon, "[initial(icon_state)]-egg")
add_overlay("[initial(icon_state)]-egg")
/obj/structure/outcrop/diamond
name = "shiny outcrop"

View File

@@ -134,7 +134,7 @@ turf/simulated/mineral/floor/light_corner
/turf/simulated/mineral/proc/update_general()
update_icon(1)
recalc_atom_opacity()
recalculate_directional_opacity()
if(ticker && ticker.current_state == GAME_STATE_PLAYING)
reconsider_lights()
if(air_master)

View File

@@ -266,6 +266,7 @@ GLOBAL_LIST_EMPTY(unique_deployable)
light_range = 5
light_power = 1.2
light_color = "#DDFFD3"
light_on = TRUE
pixel_y = -4
max_n_of_items = 100
@@ -331,6 +332,7 @@ GLOBAL_LIST_EMPTY(unique_deployable)
light_range = 3
light_power = 1
light_color = "#FFFFFF"
light_on = TRUE
/obj/structure/fans/hardlight/ex_act()
return