From 5ad6486c5c854c9c47f95a8b29de5d2944448d0a Mon Sep 17 00:00:00 2001 From: mikomyazaki <47489928+mikomyazaki@users.noreply.github.com> Date: Wed, 19 Feb 2020 04:25:41 +0000 Subject: [PATCH] Removing an IC light turns the light off (#8306) --- code/modules/integrated_electronics/subtypes/output.dm | 5 +++++ html/changelogs/lights_out.yml | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 html/changelogs/lights_out.yml diff --git a/code/modules/integrated_electronics/subtypes/output.dm b/code/modules/integrated_electronics/subtypes/output.dm index 5d56a86ef12..a425b3b92b1 100644 --- a/code/modules/integrated_electronics/subtypes/output.dm +++ b/code/modules/integrated_electronics/subtypes/output.dm @@ -83,6 +83,11 @@ assembly.set_light(0) power_draw_idle = light_toggled ? light_brightness * 2 : 0 +/obj/item/integrated_circuit/output/light/disconnect_all() + ..() + light_toggled = FALSE + update_lighting() + /obj/item/integrated_circuit/output/light/advanced/update_lighting() var/new_color = get_pin_data(IC_INPUT, 1) var/brightness = get_pin_data(IC_INPUT, 2) diff --git a/html/changelogs/lights_out.yml b/html/changelogs/lights_out.yml new file mode 100644 index 00000000000..1d044ab1f8a --- /dev/null +++ b/html/changelogs/lights_out.yml @@ -0,0 +1,6 @@ +author: mikomyazaki + +delete-after: True + +changes: + - bugfix: "Removing an assembly light will now turn the light off." \ No newline at end of file