mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +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
@@ -190,7 +190,7 @@ BLIND // can't see anything
|
||||
set name = "Switch Eyepatch"
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
if(!istype(usr, /mob/living)) return
|
||||
if(!isliving(usr)) return
|
||||
if(usr.stat) return
|
||||
|
||||
eye = !eye
|
||||
@@ -214,7 +214,7 @@ BLIND // can't see anything
|
||||
set name = "Switch Eyepatch"
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
if(!istype(usr, /mob/living)) return
|
||||
if(!isliving(usr)) return
|
||||
if(usr.stat) return
|
||||
|
||||
eye = !eye
|
||||
@@ -538,7 +538,7 @@ BLIND // can't see anything
|
||||
flash_protection = FLASH_PROTECTION_REDUCED
|
||||
|
||||
/obj/item/clothing/glasses/thermal/emp_act(severity)
|
||||
if(istype(src.loc, /mob/living/carbon/human))
|
||||
if(ishuman(src.loc))
|
||||
var/mob/living/carbon/human/M = src.loc
|
||||
to_chat(M, span_red("The Optical Thermal Scanner overloads and blinds you!"))
|
||||
if(M.glasses == src)
|
||||
|
||||
Reference in New Issue
Block a user