You can attach a bell to your wheelchair (#67821)

* Bells can now be attached to wheelchairs.

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
SMOSMOSMOSMOSMO
2022-06-24 15:32:15 -04:00
committed by GitHub
co-authored by Mothblocks John Willard
parent c2a47aae89
commit 76e2a9c292
4 changed files with 64 additions and 0 deletions
+15
View File
@@ -106,3 +106,18 @@
/obj/structure/desk_bell/speed_demon
desc = "The cornerstone of any customer service job. This one's been modified for hyper-performance."
ring_cooldown_length = 0
/obj/structure/desk_bell/MouseDrop(obj/over_object, src_location, over_location)
if(!istype(over_object, /obj/vehicle/ridden/wheelchair))
return
if(!Adjacent(over_object) || !Adjacent(usr))
return
var/obj/vehicle/ridden/wheelchair/target = over_object
if(target.bell_attached)
usr.balloon_alert(usr, "already has a bell!")
return
usr.balloon_alert(usr, "attaching bell...")
if(!do_after(usr, 0.5 SECONDS))
return
target.attach_bell(src)
return ..()