diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 53e6c5114f3..d3629f10945 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -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 diff --git a/html/changelogs/Bedshaped-PR-770.yml b/html/changelogs/Bedshaped-PR-770.yml new file mode 100644 index 00000000000..e95620a5947 --- /dev/null +++ b/html/changelogs/Bedshaped-PR-770.yml @@ -0,0 +1,6 @@ +author: Bedshaped + +delete-after: True + +changes: + - rscadd: "Added species check helpers to the code."