mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-05 23:13:06 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user