Reverts Unnecessary Genetics Icon Skin-tone Foolery

Residual from another PR, forgot to gut it.
This commit is contained in:
KasparoVy
2016-07-21 14:16:20 -04:00
parent 0232a7a427
commit dc1733d976
2 changed files with 2 additions and 11 deletions
+1 -7
View File
@@ -205,13 +205,7 @@ var/global/list/bad_blocks[0]
SetUIValueRange(DNA_UI_TAIL_MARK_G, hex2num(copytext(marking_colours["tail"], 4, 6)), 255, 1)
SetUIValueRange(DNA_UI_TAIL_MARK_B, hex2num(copytext(marking_colours["tail"], 6, 8)), 255, 1)
var/s_tone_value = 35-character.s_tone
var/s_tone_max = 220
if(character.species.bodyflags & HAS_ICON_SKIN_TONE)
s_tone_value = character.s_tone
s_tone_max = character.species.icon_skin_tones.len
SetUIValueRange(DNA_UI_SKIN_TONE, s_tone_value, s_tone_max, 1)
SetUIValueRange(DNA_UI_SKIN_TONE, 35-character.s_tone, 220, 1) // Value can be negative.
SetUIState(DNA_UI_GENDER, character.gender!=MALE, 1)
+1 -4
View File
@@ -159,10 +159,7 @@
H.update_eyes()
if(H.species.bodyflags & HAS_SKIN_TONE)
H.s_tone = 35 - dna.GetUIValueRange(DNA_UI_SKIN_TONE, 220) // Value can be negative.
else if(H.species.bodyflags & HAS_ICON_SKIN_TONE)
H.s_tone = dna.GetUIValueRange(DNA_UI_SKIN_TONE, H.species.icon_skin_tones.len)
H.s_tone = 35 - dna.GetUIValueRange(DNA_UI_SKIN_TONE, 220) // Value can be negative.
if(dna.GetUIState(DNA_UI_GENDER))
H.change_gender(FEMALE, 0)