From 035b0cf0458b4f96b64f83867d1503ab6f1b0f6a Mon Sep 17 00:00:00 2001 From: Doxxmedearly <38594443+Doxxmedearly@users.noreply.github.com> Date: Thu, 3 Jun 2021 13:02:02 -0400 Subject: [PATCH] Fixes Light Replacer Bug (#11997) --- code/game/objects/items/devices/lightreplacer.dm | 2 ++ html/changelogs/doxxmedearly - lightreplacer_catch.yml | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 html/changelogs/doxxmedearly - lightreplacer_catch.yml diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm index 3d2f1e667f4..f50819b3cbb 100644 --- a/code/game/objects/items/devices/lightreplacer.dm +++ b/code/game/objects/items/devices/lightreplacer.dm @@ -137,6 +137,8 @@ return if (do_after(user, load_interval, needhand = 0) && boxstartloc == box.loc && ourstartloc == src.loc) + if(uses >= max_uses) //catches loading from multiple boxes + break uses++ to_chat(user, "Light loaded: [uses]/[max_uses]") playsound(src.loc, 'sound/machines/click.ogg', 20, 1) diff --git a/html/changelogs/doxxmedearly - lightreplacer_catch.yml b/html/changelogs/doxxmedearly - lightreplacer_catch.yml new file mode 100644 index 00000000000..2dae886b7e6 --- /dev/null +++ b/html/changelogs/doxxmedearly - lightreplacer_catch.yml @@ -0,0 +1,6 @@ +author: Doxxmedearly + +delete-after: True + +changes: + - bugfix: "You can no longer overfill a light replacer with bulbs by drawing from multiple boxes at the same time."