From 185de09d425bf21787cc9b2027f4cb2387fd1e98 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Tue, 2 Oct 2018 01:18:11 -0400 Subject: [PATCH] Allows alt-clicking to rotate assembled assemblies. --- code/modules/assembly/holder.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/assembly/holder.dm b/code/modules/assembly/holder.dm index 74e9cfeff96..3dddae32abc 100644 --- a/code/modules/assembly/holder.dm +++ b/code/modules/assembly/holder.dm @@ -14,6 +14,12 @@ var/obj/item/assembly/a_left = null var/obj/item/assembly/a_right = null +/obj/item/assembly_holder/ComponentInitialize() + . = ..() + AddComponent( + /datum/component/simple_rotation, + ROTATION_ALTCLICK | ROTATION_CLOCKWISE | ROTATION_COUNTERCLOCKWISE | ROTATION_FLIP | ROTATION_VERBS) + /obj/item/assembly_holder/IsAssemblyHolder() return TRUE @@ -73,7 +79,7 @@ if(a_right) a_right.on_found(finder) -/obj/item/assembly_holder/Move() +/obj/item/assembly_holder/setDir() . = ..() if(a_left) a_left.holder_movement()