Misc lighting fixes (#21600)

- Fixes hull beacons, radial lights and decal light sources not emitting
light. Thunderdome is no longer dark, fixes #21565
and fixes #21567

- Fixes radial lights not drawing any power from the powernet it's
connected to. Also refactors its toggle logic, since it never stopped
processing despite `STOP_PROCESSING` macro
This commit is contained in:
Kano
2025-11-15 23:14:41 +01:00
committed by GitHub
parent 3956b7ebc2
commit 210add0d68
5 changed files with 32 additions and 17 deletions
+3 -3
View File
@@ -51,8 +51,8 @@
/obj/effect/decal/fake_object/light_source/Initialize()
.=..()
set_light(light_power, light_range, light_color)
set_light(light_range, light_power, light_color)
/obj/effect/decal/fake_object/light_source/invisible
simulated = 0
invisibility = 101
simulated = FALSE
invisibility = INVISIBILITY_ABSTRACT
@@ -3,6 +3,12 @@
desc = "A light-emitting hull beacon."
icon = 'icons/obj/lighting.dmi'
anchored = TRUE
light_system = MOVABLE_LIGHT
light_range = 3
/obj/item/hullbeacon/Initialize()
. = ..()
set_light_on(TRUE)
/obj/item/hullbeacon/attack_hand(mob/user)
return
@@ -12,11 +18,9 @@
desc = "A red, light-emitting hull beacon."
icon_state = "beacon_red_on"
light_color = LIGHT_COLOR_RED
light_range = 3
/obj/item/hullbeacon/green
name = "green hull beacon"
desc = "A green, light-emitting hull beacon."
icon_state = "beacon_green_on"
light_color = LIGHT_COLOR_GREEN
light_range = 3