[MIRROR] Rotation component refactor and improvements [MDB IGNORE] (#11304)

* Rotation component refactor and improvements

* Update code/modules/power/singularity/emitter.dm

* e

Co-authored-by: Tim <timothymtorres@gmail.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-02-08 02:38:20 +01:00
committed by GitHub
parent e73aa07ddd
commit d682fbfbc8
33 changed files with 203 additions and 393 deletions
+1 -9
View File
@@ -21,15 +21,7 @@
. = ..()
AddElement(art_type, impressiveness)
AddElement(/datum/element/beauty, impressiveness * 75)
AddComponent(/datum/component/simple_rotation, ROTATION_ALTCLICK | ROTATION_CLOCKWISE, CALLBACK(src, .proc/can_user_rotate), CALLBACK(src, .proc/can_be_rotated), null)
/obj/structure/statue/proc/can_be_rotated(mob/user)
if(!anchored)
return TRUE
to_chat(user, span_warning("It's bolted to the floor, you'll need to unwrench it first."))
/obj/structure/statue/proc/can_user_rotate(mob/user)
return user.canUseTopic(src, BE_CLOSE, NO_DEXTERITY, FALSE, !iscyborg(user))
AddComponent(/datum/component/simple_rotation)
/obj/structure/statue/attackby(obj/item/W, mob/living/user, params)
add_fingerprint(user)