Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion code/modules/power/floodlight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
if((val < 1) || (val > light_setting_list.len))
return
active_power_usage = light_setting_list[val]
if(!avail(active_power_usage))
if(active_power_usage && !avail(active_power_usage))
return change_setting(val - 1)
setting = val
set_light(light_setting_list[val])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@
var/obj/mecha/M = LO
M.set_light(0)
M.lights = FALSE
if(istype(LO, /obj/machinery/power/floodlight))
var/obj/machinery/power/floodlight/FL = LO
FL.change_setting(2) // Set floodlight to lowest setting

for(var/obj/structure/glowshroom/G in orange(7, user)) //High radius because glowshroom spam wrecks shadowlings
if(!istype(G, /obj/structure/glowshroom/shadowshroom))
var/obj/structure/glowshroom/shadowshroom/S = new /obj/structure/glowshroom/shadowshroom(G.loc) //I CAN FEEL THE WARP OVERTAKING ME! IT IS A GOOD PAIN!
Expand Down