mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-12 02:22:11 +00:00
PR - Gender Update (#14406)
* PR - Gender Update Gives Gender three states instead of two. This allows clones of tri-gendered species to properly carry their genders over to new bodies (e.g. Greys, Drask, etc.). Tristate Gender Set Proc Tristate Gender Get Proc Fixes where Binary State was needed. * Update update_icons.dm Yeah, let's _not_ have Genderless folks get inconsistently gendered body part sprites (e.g. head, groin, torso mismatch). * Update dna2.dm * Update dna2.dm * Update organ_icon.dm * Update update_icons.dm * Update dna2_helpers.dm * Update organ_icon.dm Readability (spacing) * Update dna_injector.dm * Update dna2.dm * Changes made per Affected's requests. Changes made per Affected's feedback. * Update dna2.dm Got our heads too deep in using this just for DNA_UI_GENDERr - returning the Set and Get procs to 0, 1, 2 as per Affected's request. While in there, noticed some housekeeping items: - reorganized the ranges so they flow numerically now - changed the ranges so they don't overlap (line 205 having been the worst) - removed the "else" statement from line 222 since we're using ASSERTS. There shouldn't be a value outside the range of 0 to 2 for this.
This commit is contained in:
@@ -1289,6 +1289,9 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
|
||||
var/husk = (HUSK in mutations)
|
||||
var/hulk = (HULK in mutations)
|
||||
var/skeleton = (SKELETON in mutations)
|
||||
var/g = dna.GetUITriState(DNA_UI_GENDER)
|
||||
if(g == DNA_GENDER_PLURAL)
|
||||
g = DNA_GENDER_FEMALE
|
||||
|
||||
. = ""
|
||||
|
||||
@@ -1317,8 +1320,8 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
|
||||
if(part)
|
||||
var/datum/species/S = GLOB.all_species[part.dna.species.name]
|
||||
. += "[S.race_key]"
|
||||
. += "[part.dna.GetUIState(DNA_UI_GENDER)]"
|
||||
. += "[part.dna.GetUIValue(DNA_UI_SKIN_TONE)]"
|
||||
. += "[g]"
|
||||
if(part.s_col)
|
||||
. += "[part.s_col]"
|
||||
if(part.s_tone)
|
||||
|
||||
Reference in New Issue
Block a user