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
@@ -11,7 +11,7 @@
|
||||
return src
|
||||
|
||||
/mob/living/bot/mulebot/get_mob()
|
||||
if(load && istype(load, /mob/living))
|
||||
if(load && isliving(load))
|
||||
return list(src, load)
|
||||
return src
|
||||
|
||||
@@ -182,7 +182,7 @@ Proc for attack log creation, because really why not
|
||||
|
||||
//checks whether this item is a module of the robot it is located in.
|
||||
/proc/is_robot_module(var/obj/item/thing)
|
||||
if (!thing || !istype(thing.loc, /mob/living/silicon/robot))
|
||||
if (!thing || !isrobot(thing.loc))
|
||||
return 0
|
||||
var/mob/living/silicon/robot/R = thing.loc
|
||||
return (thing in R.module.modules)
|
||||
|
||||
Reference in New Issue
Block a user