mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
[MIRROR] Allows rotating statues with alt click (#1179)
* Allows rotating statues with alt click (#54179) Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@ users.noreply.github.com> * Allows rotating statues with alt click Co-authored-by: Mickyan <38563876+Mickyan@users.noreply.github.com> Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@ users.noreply.github.com>
This commit is contained in:
co-authored by
Jared-Fogle
Mickyan
parent
3780b09d94
commit
3ffe8bbb1f
@@ -20,6 +20,15 @@
|
||||
. = ..()
|
||||
AddComponent(art_type, impressiveness)
|
||||
INVOKE_ASYNC(src, /datum.proc/_AddComponent, list(/datum/component/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 class='warning'>It's bolted to the floor, you'll need to unwrench it first.</span>")
|
||||
|
||||
/obj/structure/statue/proc/can_user_rotate(mob/user)
|
||||
return isliving(user) && user.canUseTopic(src, BE_CLOSE, no_dexterity = ismonkey(user))
|
||||
|
||||
/obj/structure/statue/attackby(obj/item/W, mob/living/user, params)
|
||||
add_fingerprint(user)
|
||||
|
||||
Reference in New Issue
Block a user