Prevent printing restricted/whitelisted species

This commit is contained in:
Arokha Sieyes
2017-02-19 18:25:56 -05:00
parent 5b257f55e3
commit 260a7fa686
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -151,6 +151,8 @@
can_grow_active = 0
else if(!synthetic_capable && !organic_capable) //What have you done??
can_grow_active = 0
else if(active_br.toocomplex)
can_grow_active = 0
data["activeBodyRecord"] = list("real_name" = active_br.mydna.name, \
"speciesname" = active_br.speciesname, \
+6
View File
@@ -125,6 +125,7 @@ var/datum/transhuman/infocore/transcore = new/datum/transhuman/infocore
var/body_oocnotes
var/list/limb_data = list(BP_HEAD, BP_L_HAND, BP_R_HAND, BP_L_ARM, BP_R_ARM, BP_L_FOOT, BP_R_FOOT, BP_L_LEG, BP_R_LEG, BP_GROIN, BP_TORSO)
var/list/organ_data = list(O_HEART, O_EYES, O_LUNGS, O_BRAIN)
var/toocomplex
/datum/transhuman/body_record/New(var/mob/living/carbon/human/M,var/add_to_db = 1,var/ckeylock = 0)
ASSERT(M)
@@ -132,6 +133,11 @@ var/datum/transhuman/infocore/transcore = new/datum/transhuman/infocore
//Person OOCly doesn't want people impersonating them
locked = ckeylock
//Prevent people from printing restricted and whitelisted species
var/datum/species/S = all_species["[M.dna.species]"]
if(S)
toocomplex = (S.spawn_flags & SPECIES_IS_WHITELISTED) || (S.spawn_flags & SPECIES_IS_RESTRICTED)
//General stuff about them
synthetic = M.isSynthetic()
speciesname = M.custom_species ? M.custom_species : M.dna.species