Cleanbots have Janitor level access rather than Detective.

You can fold up closed and empty body bags via mouse drop.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2390 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
mport2004@gmail.com
2011-10-19 02:40:11 +00:00
parent f24295f43b
commit 454835bdb8
2 changed files with 23 additions and 2 deletions

View File

@@ -54,7 +54,7 @@
should_patrol = 0
src.botcard = new /obj/item/weapon/card/id(src)
src.botcard.access = get_access("Detective")
src.botcard.access = get_access("Janitor")
if(radio_controller)
radio_controller.add_object(src, beacon_freq, filter = RADIO_NAVBEACONS)

View File

@@ -38,6 +38,7 @@
icon_opened = "bodybag_open"
density = 0
attackby(P as obj, mob/user as mob)
if (istype(P, /obj/item/weapon/pen))
var/t = input(user, "What would you like the label to be?", text("[]", src.name), null) as text
@@ -52,4 +53,24 @@
else
src.name = "body bag"
..()
return
return
close()
if(..())
density = 0
return 1
return 0
MouseDrop(over_object, src_location, over_location)
..()
if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src))))
if(!ishuman(usr)) return
if(opened) return 0
if(contents.len) return 0
visible_message("[usr] folds up the [src.name]")
new/obj/item/bodybag(get_turf(src))
spawn(0)
del(src)
return