Skip to content

Commit

Permalink
[MIRROR] fusion injectors don't stack infinite overlays (#2288)
Browse files Browse the repository at this point in the history
Co-authored-by: Spookerton <[email protected]>
  • Loading branch information
SierraHelper and Spookerton authored Jun 14, 2024
1 parent ee6eb66 commit 22fc1d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/modules/power/fusion/fuel_assembly/fuel_injector.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@

/obj/machinery/fusion_fuel_injector/on_update_icon()
ClearOverlays()
if(panel_open)
if (panel_open)
AddOverlays("[icon_state]_panel")
if(injecting && cur_assembly)
if (injecting && cur_assembly)
AddOverlays(emissive_appearance(icon, "[icon_state]_lights_emitting"))
AddOverlays("[icon_state]_lights_emitting")
else
AddOverlays(emissive_appearance(icon, "[icon_state]_lights"))
AddOverlays("[icon_state]_lights")

Expand Down Expand Up @@ -131,11 +134,8 @@
amount_left += cur_assembly.rod_quantities[reagent]
if(cur_assembly)
cur_assembly.percent_depleted = amount_left / cur_assembly.initial_amount
AddOverlays(emissive_appearance(icon, "[icon_state]_lights_emitting"))
AddOverlays("[icon_state]_lights_emitting")
else
StopInjecting()
update_icon()

/obj/machinery/fusion_fuel_injector/verb/rotate_clock()
set category = "Object"
Expand Down

0 comments on commit 22fc1d7

Please sign in to comment.