mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +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
@@ -1880,7 +1880,7 @@ Departamental Swimsuits, for general use
|
||||
if(!..())
|
||||
return 0
|
||||
|
||||
if(istype(M,/mob/living/carbon/human))
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!(H.get_species() == SPECIES_PROMETHEAN)) //Only wearable by slimes, since species_restricted actually checks bodytype, not species
|
||||
return 0
|
||||
@@ -2303,7 +2303,7 @@ Departamental Swimsuits, for general use
|
||||
set name = "Swap color"
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
if(!istype(usr, /mob/living)) return
|
||||
if(!isliving(usr)) return
|
||||
if(usr.stat) return
|
||||
|
||||
colorswap(usr)
|
||||
|
||||
@@ -1046,7 +1046,7 @@
|
||||
else
|
||||
activate(user)
|
||||
|
||||
if(istype(user,/mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
H.update_inv_l_hand()
|
||||
H.update_inv_r_hand()
|
||||
|
||||
Reference in New Issue
Block a user