From 16263d6ed29c2e38d9ef5a09c0c0467dbb654447 Mon Sep 17 00:00:00 2001 From: zxaber <37497534+zxaber@users.noreply.github.com> Date: Sun, 23 Apr 2023 16:17:05 -0700 Subject: [PATCH] Restores ability for borgs to adjust reflector angles (#74913) ## About The Pull Request Adds an override for `attack_robot()` on reflectors, which is called when a borg clicks on an object with no tool selected. Only allows rotating if the borg is adjacent to the reflector. ## Why It's Good For The Game This was an undocumented change of #74800, and I assume unintended. In any case, the inability to adjust reflectors somewhat restricts engineer borgs' ability to engineer. ## Changelog :cl: fix: Restores ability for borgs to adjust reflector angles. This is now a left-click with nothing selected, similar to humans' left-click with an empty hand. /:cl: --- code/game/objects/structures/reflector.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/objects/structures/reflector.dm b/code/game/objects/structures/reflector.dm index 73af6de19ce..6ec3f930884 100644 --- a/code/game/objects/structures/reflector.dm +++ b/code/game/objects/structures/reflector.dm @@ -297,6 +297,13 @@ ui = new(user, src, "Reflector") ui.open() +/obj/structure/reflector/attack_robot(mob/user) + ui_interact(user) + return + +/obj/structure/reflector/ui_state(mob/user) + return GLOB.physical_state //Prevents borgs from adjusting this at range + /obj/structure/reflector/ui_data(mob/user) var/list/data = list() data["rotation_angle"] = rotation_angle