Species names should now use defines

This commit is contained in:
Anewbe
2018-03-13 20:55:31 -05:00
parent b2b4329c4b
commit 5212fa152b
75 changed files with 340 additions and 302 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ var/list/organ_cache = list()
if(istype(holder))
src.owner = holder
src.w_class = max(src.w_class + mob_size_difference(holder.mob_size, MOB_MEDIUM), 1) //smaller mobs have smaller organs.
species = all_species["Human"]
species = all_species[SPECIES_HUMAN]
if(holder.dna)
dna = holder.dna.Clone()
species = all_species[dna.species]
+2 -2
View File
@@ -106,7 +106,7 @@ var/global/list/limb_icon_cache = list()
if(owner && owner.gender == MALE)
gender = "m"
icon_cache_key = "[icon_name]_[species ? species.name : "Human"]"
icon_cache_key = "[icon_name]_[species ? species.name : SPECIES_HUMAN]"
if(force_icon)
mob_icon = new /icon(force_icon, "[icon_name][gendered_icon ? "_[gender]" : ""]")
@@ -162,7 +162,7 @@ var/global/list/limb_icon_cache = list()
if(nonsolid)
applying.MapColors("#4D4D4D","#969696","#1C1C1C", "#000000")
if(species && species.get_bodytype(owner) != "Human")
if(species && species.get_bodytype(owner) != SPECIES_HUMAN)
applying.SetIntensity(1.5) // Unathi, Taj and Skrell have -very- dark base icons.
else
applying.SetIntensity(0.7)
+1 -1
View File
@@ -42,7 +42,7 @@ var/const/standard_monitor_styles = "blank=ipc_blank;\
var/lifelike // If set, appears organic.
var/skin_tone // If set, applies skin tone rather than part color
var/blood_color = "#030303"
var/list/species_cannot_use = list("Teshari")
var/list/species_cannot_use = list(SPECIES_TESHARI)
var/list/monitor_styles //If empty, the model of limbs offers a head compatible with monitors.
var/parts = BP_ALL //Defines what parts said brand can replace on a body.
var/health_hud_intensity = 1 // Intensity modifier for the health GUI indicator.