mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
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:
co-authored by
Mothblocks
John Willard
parent
c2a47aae89
commit
76e2a9c292
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user