From 362ac3d7f3c00a364dfde8264828fb2f31dca38a Mon Sep 17 00:00:00 2001 From: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Date: Fri, 30 Jan 2026 00:21:49 +0530 Subject: [PATCH] Fixes 2 floor light instances not mounting (#94993) --- code/game/objects/items/rcd/RLD.dm | 2 ++ code/modules/power/lighting/light_construct.dm | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/code/game/objects/items/rcd/RLD.dm b/code/game/objects/items/rcd/RLD.dm index 0a038ebc650..5e3cf374c1c 100644 --- a/code/game/objects/items/rcd/RLD.dm +++ b/code/game/objects/items/rcd/RLD.dm @@ -175,6 +175,7 @@ L.setDir(get_dir(winner, interacting_with)) L.color = color_choice L.set_light_color(color_choice) + L.find_and_mount_on_atom() useResource(cost, user) return ITEM_INTERACT_SUCCESS @@ -185,6 +186,7 @@ var/obj/machinery/light/floor/FL = new /obj/machinery/light/floor(target) FL.color = color_choice FL.set_light_color(color_choice) + FL.find_and_mount_on_atom() useResource(cost, user) return ITEM_INTERACT_SUCCESS diff --git a/code/modules/power/lighting/light_construct.dm b/code/modules/power/lighting/light_construct.dm index 869196b3205..9832c3a3140 100644 --- a/code/modules/power/lighting/light_construct.dm +++ b/code/modules/power/lighting/light_construct.dm @@ -184,3 +184,9 @@ icon_state = "floor-construct-stage1" fixture_type = "floor" sheets_refunded = 1 + +/obj/structure/light_construct/floor/get_turfs_to_mount_on() + return list(get_turf(src)) + +/obj/structure/light_construct/floor/is_mountable_turf(turf/target) + return !isgroundlessturf(target)