mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-20 04:34:32 +01:00
[MIRROR] cleans up robot gripper code (#12388)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a450bdfcf0
commit
cbb200e0db
@@ -177,6 +177,13 @@
|
||||
. += "It has a power rating of [maxcharge]."
|
||||
. += "The charge meter reads [round(src.percent() )]%."
|
||||
|
||||
/obj/item/cell/attack(mob/living/M, mob/living/user, var/target_zone, var/attack_modifier)
|
||||
if(isrobot(M))
|
||||
var/mob/living/silicon/robot/target = M
|
||||
if(target.opened)
|
||||
return FALSE
|
||||
..()
|
||||
|
||||
/obj/item/cell/attackby(obj/item/W, mob/user)
|
||||
..()
|
||||
if(istype(W, /obj/item/reagent_containers/syringe))
|
||||
|
||||
Reference in New Issue
Block a user