mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] some istype to macros (#9802)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
73486c399b
commit
ed79946ade
@@ -288,7 +288,7 @@
|
||||
return TRUE
|
||||
|
||||
else if(istype(I, /obj/item/integrated_circuit))
|
||||
if(!user.unEquip(I) && !istype(user, /mob/living/silicon/robot)) //Robots cannot de-equip items in grippers.
|
||||
if(!user.unEquip(I) && !isrobot(user)) //Robots cannot de-equip items in grippers.
|
||||
return FALSE
|
||||
if(add_circuit(I, user))
|
||||
to_chat(user, span_notice("You slide \the [I] inside \the [src]."))
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
user.visible_message("\The [user] attaches \the [src] to the wall.",
|
||||
span_notice("You attach \the [src] to the wall."),
|
||||
span_warningplain("You hear clicking."))
|
||||
if(istype(user, /mob/living/silicon/robot)) //Robots cannot unequip/drop items, for Safety Reasons.
|
||||
if(isrobot(user)) //Robots cannot unequip/drop items, for Safety Reasons.
|
||||
forceMove(T)
|
||||
user.drop_item(T)
|
||||
anchored = TRUE
|
||||
|
||||
Reference in New Issue
Block a user