mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 03:49:10 +01:00
Adds Collapsible Wheelchairs (#10374)
This commit is contained in:
@@ -193,3 +193,35 @@
|
||||
pulling = null
|
||||
usr.pulledby = null
|
||||
..()
|
||||
|
||||
/obj/item/wheelchair
|
||||
name = "wheelchair"
|
||||
desc = "A folded wheelchair that can be carried around."
|
||||
icon = 'icons/obj/furniture.dmi'
|
||||
icon_state = "wheelchair_folded"
|
||||
item_state = "wheelchair"
|
||||
w_class = ITEMSIZE_HUGE // Can't be put in backpacks. Oh well.
|
||||
|
||||
/obj/item/wheelchair/attack_self(mob/user)
|
||||
var/obj/structure/bed/chair/wheelchair/R = new /obj/structure/bed/chair/wheelchair(user.loc)
|
||||
R.add_fingerprint(user)
|
||||
R.name = src.name
|
||||
R.desc = src.desc
|
||||
R.color = src.color
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/bed/chair/wheelchair/MouseDrop(over_object, src_location, over_location)
|
||||
..()
|
||||
if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src))))
|
||||
if(!ishuman(usr))
|
||||
return FALSE
|
||||
if(buckled_mob)
|
||||
return FALSE
|
||||
visible_message(SPAN_NOTICE("[usr] collapses [src]."))
|
||||
var/obj/item/wheelchair/R = new(get_turf(src))
|
||||
R.name = src.name
|
||||
R.desc = src.desc
|
||||
R.color = src.color
|
||||
usr.put_in_hands(R)
|
||||
qdel(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user