Add support for non-genetic markings (#3643)

Adds support for non-genetic markings which are not embedded into DNA.
This commit is contained in:
Lohikar
2017-11-08 21:26:44 -06:00
committed by GitHub
parent a0d588ba1c
commit c1e0952a4f
8 changed files with 50 additions and 18 deletions
@@ -475,11 +475,13 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
else if(href_list["marking_style"])
var/list/usable_markings = pref.body_markings ^ body_marking_styles_list
var/datum/species/species = global.all_species[pref.species]
var/btype = species.get_bodytype()
for(var/M in usable_markings)
var/datum/sprite_accessory/S = usable_markings[M]
if(!S.species_allowed.len)
continue
else if(!(pref.species in S.species_allowed))
else if(!(btype in S.species_allowed))
usable_markings -= M
if (!usable_markings.len)