mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
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 🆑 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. /🆑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user