Further work on properly integrating, updating and fixing prosthetic options.

WIP
Allowed heads/bodies to be prosthetic. Removed IPC. Refactored some flags.
This commit is contained in:
Zuhayr
2015-12-18 18:23:58 +10:30
parent c886810238
commit d71573e749
102 changed files with 925 additions and 722 deletions

View File

@@ -87,7 +87,7 @@
var/f = 1
for(var/k in all_species)
var/datum/species/S = all_species[k]
if(S.virus_immune)
if(S.get_virus_immune())
continue
if(!f) H += " | "
else f = 0

View File

@@ -45,7 +45,7 @@
var/list/res = list()
for (var/specie in all_species)
var/datum/species/S = all_species[specie]
if(!S.virus_immune)
if(!S.get_virus_immune())
meat += S
if(meat.len)
var/num = rand(1,meat.len)
@@ -71,7 +71,7 @@
// Some species are flat out immune to organic viruses.
var/mob/living/carbon/human/H = mob
if(istype(H) && H.species.virus_immune)
if(istype(H) && H.species.get_virus_immune(H))
cure(mob)
return

View File

@@ -4,7 +4,7 @@ proc/infection_check(var/mob/living/carbon/M, var/vector = "Airborne")
return 0
var/mob/living/carbon/human/H = M
if(istype(H) && H.species.virus_immune)
if(istype(H) && H.species.get_virus_immune(H))
return 0
var/protection = M.getarmor(null, "bio") //gets the full body bio armour value, weighted by body part coverage.

View File

@@ -16,7 +16,7 @@
var/mob/living/carbon/C = M
if (istype(C,/mob/living/carbon/human/))
var/mob/living/carbon/human/H = C
if(H.species.flags & NO_BLOOD)
if(!H.should_have_organ("heart"))
report("Scan aborted: The target does not have blood.", user)
return