mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixes cyborgs putting items on Operating Tables and Janitor Borgs trashbags.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user