Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenith00000 committed May 23, 2024
1 parent 109676a commit a8d733b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@

/obj/structure/machinery/engineerconsole_switch/LateInitialize()
. = ..()
for(var/obj/structure/machinery/colony_floodlight/engineer_circular/F in GLOB.ship_floodlights)
floodlist += F
F.fswitch = src
for(var/obj/structure/machinery/colony_floodlight/engineer_circular/floodlight in GLOB.ship_floodlights)
floodlist += floodlight
floodlight.fswitch = src
start_processing()

/obj/structure/machinery/engineerconsole_switch/Destroy()
Expand Down Expand Up @@ -401,15 +401,15 @@
update_icon()

/obj/structure/machinery/engineerconsole_switch/proc/toggle_lights()
for(var/obj/structure/machinery/colony_floodlight/engineer_circular/F in floodlist)
for(var/obj/structure/machinery/colony_floodlight/engineer_circular/floodlight in floodlist)
spawn(rand(10,60))
turned_on = FALSE

Check failure on line 406 in code/game/machinery/hybrisa_lights.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got '{', expected one of: operator, field access, ';'
if(!F.damaged)
if(F.is_lit) //Shut it down
F.set_light(l_range = F.lum_value,l_power = F.light_power , l_color = F.light_color)
if(!floodlight.damaged)
if(floodlight.is_lit) //Shut it down
floodlight.set_light(l_range = floodlight.lum_value,l_power = floodlight.light_power , l_color = floodlight.light_color)
else
F.set_light(0)
F.update_icon()
floodlight.set_light(0)
floodlight.update_icon()
return 0

/obj/structure/machinery/engineerconsole_switch/attack_hand(mob/user as mob)
Expand Down
2 changes: 1 addition & 1 deletion colonialmarines.dme
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@
#include "code\game\machinery\gear.dm"
#include "code\game\machinery\hologram.dm"
#include "code\game\machinery\holosign.dm"
#include "code\game\machinery\hybrsia_lights.dm"
#include "code\game\machinery\hybrisa_lights.dm"
#include "code\game\machinery\igniter.dm"
#include "code\game\machinery\iv_drip.dm"
#include "code\game\machinery\lightswitch.dm"
Expand Down

0 comments on commit a8d733b

Please sign in to comment.