Adding species helpers (#770)

ishuman_species(jim) will return 1 if jim's a human and 0 if he's a filthy xeno

all are the form isTYPE_species()
This commit is contained in:
Bedshaped
2016-08-26 00:17:58 +02:00
committed by skull132
parent b9411eb391
commit 7829408335
2 changed files with 41 additions and 0 deletions
+35
View File
@@ -4,6 +4,41 @@
return 1
return 0
/proc/ishuman_species(A)
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Human"))
return 1
return 0
/proc/isunathi(A)
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Unathi"))
return 1
return 0
/proc/istajara(A)
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Tajara"))
return 1
return 0
/proc/isskrell(A)
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Skrell"))
return 1
return 0
/proc/isvaurca(A)
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Vaurca"))
return 1
return 0
/proc/isipc(A)
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Machine"))
return 1
return 0
/proc/isvox(A)
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Vox"))
return 1
return 0
/proc/isalien(A)
if(istype(A, /mob/living/carbon/alien))
return 1