mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-02-06 14:48:59 +00:00
wowee (#23228)
This commit is contained in:
@@ -58,7 +58,9 @@
|
||||
#define DNA_UI_HEAD_MARK_STYLE 43
|
||||
#define DNA_UI_BODY_MARK_STYLE 44
|
||||
#define DNA_UI_TAIL_MARK_STYLE 45
|
||||
#define DNA_UI_LENGTH 46 // Update this when you add something, or you WILL break shit.
|
||||
#define DNA_UI_PHYSIQUE 46
|
||||
#define DNA_UI_HEIGHT 47
|
||||
#define DNA_UI_LENGTH 48 // Update this when you add something, or you WILL break shit.
|
||||
|
||||
#define DNA_SE_LENGTH 55 // Was STRUCDNASIZE, size 27. 15 new blocks added = 42, plus room to grow.
|
||||
|
||||
|
||||
@@ -130,6 +130,9 @@ GLOBAL_LIST_EMPTY(bad_blocks)
|
||||
SetUIValueRange(DNA_UI_BODY_MARK_STYLE, body_marks, GLOB.marking_styles_list.len, 1)
|
||||
SetUIValueRange(DNA_UI_TAIL_MARK_STYLE, tail_marks, GLOB.marking_styles_list.len, 1)
|
||||
|
||||
SetUIValueRange(DNA_UI_PHYSIQUE, GLOB.character_physiques.Find(character.physique), length(GLOB.character_physiques), 1)
|
||||
SetUIValueRange(DNA_UI_HEIGHT, GLOB.character_heights.Find(character.height), length(GLOB.character_heights), 1)
|
||||
|
||||
var/list/bodyacc = GLOB.body_accessory_by_name.Find(character.body_accessory?.name || "None")
|
||||
SetUIValueRange(DNA_UI_BACC_STYLE, bodyacc, length(GLOB.body_accessory_by_name), 1)
|
||||
|
||||
|
||||
@@ -175,6 +175,16 @@
|
||||
if((tail_marks > 0) && (tail_marks <= GLOB.marking_styles_list.len))
|
||||
H.m_styles["tail"] = GLOB.marking_styles_list[tail_marks]
|
||||
|
||||
// Physique (examine fluff)
|
||||
var/new_physique = dna.GetUIValueRange(DNA_UI_PHYSIQUE, length(GLOB.character_physiques))
|
||||
if(ISINDEXSAFE(GLOB.character_physiques, new_physique))
|
||||
H.physique = GLOB.character_physiques[new_physique]
|
||||
|
||||
// Height (examine fluff)
|
||||
var/new_height = dna.GetUIValueRange(DNA_UI_HEIGHT, length(GLOB.character_heights))
|
||||
if(ISINDEXSAFE(GLOB.character_heights, new_height))
|
||||
H.height = GLOB.character_heights[new_height]
|
||||
|
||||
var/bodyacc = dna.GetUIValueRange(DNA_UI_BACC_STYLE, length(GLOB.body_accessory_by_name))
|
||||
if(bodyacc > 0 && bodyacc <= length(GLOB.body_accessory_by_name))
|
||||
H.body_accessory = GLOB.body_accessory_by_name[GLOB.body_accessory_by_name[bodyacc]]
|
||||
|
||||
Reference in New Issue
Block a user