Fixes cyborgs putting items on Operating Tables and Janitor Borgs trashbags.

This commit is contained in:
Ren Erthilo
2012-04-15 01:29:38 +01:00
parent cb94bb4646
commit d14be222b8
2 changed files with 8 additions and 4 deletions

View File

@@ -83,6 +83,8 @@
return 0
MouseDrop_T(obj/O as obj, mob/user as mob)
if(isrobot(user))
return
if ((!( istype(O, /obj/item/weapon) ) || user.equipped() != O))
return
user.drop_item()
@@ -110,6 +112,8 @@
check_victim()
attackby(obj/item/weapon/W as obj, mob/user as mob)
if(isrobot(user))
return
if (istype(W, /obj/item/weapon/grab))
if(ismob(W:affecting))
var/mob/M = W:affecting

View File

@@ -45,10 +45,6 @@
if(stat & BROKEN || !I || !user)
return
//robots shouldn't be able to grab/carry stuff anyway
if(isrobot(user))
return
if(istype(I, /obj/item/weapon/melee/energy/blade))
user << "You can't place that item inside the disposal unit."
return
@@ -62,6 +58,10 @@
update()
return
//robots shouldn't be able to grab/carry stuff anyway
if(isrobot(user))
return
if(istype(I, /obj/item/ashtray) && (I.health > 0))
user << "\blue You empty the ashtray into [src]."
for(var/obj/item/O in I.contents)