mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-11 23:23:55 +01:00
fixes an issue with promethean resleeving and allows bodytype changing in records
This commit is contained in:
@@ -188,6 +188,11 @@
|
||||
if(mannequin.species && (mannequin.species.appearance_flags & HAS_SKIN_COLOR))
|
||||
styles["Body Color"] = list("colorHref" = "skin_color", "color" = MOB_HEX_COLOR(mannequin, skin))
|
||||
|
||||
if (mannequin.species && mannequin.species.selects_bodytype)
|
||||
if (!mannequin.species.base_species)
|
||||
mannequin.species.base_species = mannequin.species.name
|
||||
styles["Bodytype"] = list("styleHref" = "custom_base", "style" = mannequin.species.base_species)
|
||||
|
||||
var/datum/preferences/designer/P = new()
|
||||
apply_markings_to_prefs(mannequin, P)
|
||||
data["activeBodyRecord"]["markings"] = P.body_markings
|
||||
@@ -231,7 +236,7 @@
|
||||
mannequin.real_name = "Stock [S.name] Body"
|
||||
mannequin.name = mannequin.real_name
|
||||
mannequin.dna.real_name = mannequin.real_name
|
||||
mannequin.dna.base_species = mannequin.species
|
||||
mannequin.dna.base_species = mannequin.species.base_species
|
||||
active_br = new(mannequin, FALSE, FALSE)
|
||||
active_br.speciesname = "Custom Sleeve"
|
||||
update_preview_icon()
|
||||
@@ -392,6 +397,9 @@
|
||||
ASSERT(istype(B))
|
||||
var/datum/category_item/player_setup_item/general/basic/G = CG.items_by_name["Basic"]
|
||||
ASSERT(istype(G))
|
||||
var/datum/category_item/player_setup_item/vore/traits/V = CC.categories_by_name["VORE"].items_by_name["Traits"]
|
||||
ASSERT(istype(V))
|
||||
var/list/use_different_category = list("custom_base" = V) //add more here if needed
|
||||
|
||||
if(params["target_href"] == "bio_gender")
|
||||
var/new_gender = tgui_input_list(user, "Choose your character's biological gender:", "Character Preference", G.get_genders())
|
||||
@@ -404,11 +412,12 @@
|
||||
var/href_list = list()
|
||||
href_list["src"] = "\ref[src]"
|
||||
href_list["[params["target_href"]]"] = params["target_value"]
|
||||
var/datum/category_item/player_setup_item/to_use = (params["target_href"] in use_different_category) ? use_different_category[params["target_href"]] : B
|
||||
|
||||
var/action = 0
|
||||
action = B.OnTopic(list2params(href_list), href_list, user)
|
||||
action = to_use.OnTopic(list2params(href_list), href_list, user)
|
||||
if(action & TOPIC_UPDATE_PREVIEW && mannequin && active_br)
|
||||
B.copy_to_mob(mannequin)
|
||||
to_use.copy_to_mob(mannequin)
|
||||
active_br.mydna.dna.ResetUIFrom(mannequin)
|
||||
update_preview_icon()
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user