From bc018d7306d6bb56b2bfbd4baaceec8d84cc5be1 Mon Sep 17 00:00:00 2001 From: Matthew J <12817816+ZephyrTFA@users.noreply.github.com> Date: Wed, 4 Aug 2021 23:00:14 -0400 Subject: [PATCH] fix augments not applying (#7393) --- .../modules/customization/modules/client/preferences.dm | 4 ++-- .../modules/mob/dead/new_player/preferences_setup.dm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modular_skyrat/modules/customization/modules/client/preferences.dm b/modular_skyrat/modules/customization/modules/client/preferences.dm index 80374fb3140..a3e87faeeb9 100644 --- a/modular_skyrat/modules/customization/modules/client/preferences.dm +++ b/modular_skyrat/modules/customization/modules/client/preferences.dm @@ -3027,7 +3027,7 @@ GLOBAL_LIST_INIT(food, list( apply_prefs_to(character, icon_updates) /// Applies the given preferences to a human mob. -/datum/preferences/proc/apply_prefs_to(mob/living/carbon/human/character, icon_updates = TRUE) +/datum/preferences/proc/apply_prefs_to(mob/living/carbon/human/character, icon_updates = TRUE, preview = FALSE) character.real_name = real_name character.name = real_name @@ -3085,7 +3085,7 @@ GLOBAL_LIST_INIT(food, list( if(length(augments)) for(var/key in augments) var/datum/augment_item/aug = GLOB.augment_items[augments[key]] - aug.apply(character, TRUE, src) + aug.apply(character, preview, src) if(icon_updates) character.update_body() diff --git a/modular_skyrat/modules/customization/modules/mob/dead/new_player/preferences_setup.dm b/modular_skyrat/modules/customization/modules/mob/dead/new_player/preferences_setup.dm index 471ebeb04fd..58b85c5b447 100644 --- a/modular_skyrat/modules/customization/modules/mob/dead/new_player/preferences_setup.dm +++ b/modular_skyrat/modules/customization/modules/mob/dead/new_player/preferences_setup.dm @@ -153,7 +153,7 @@ // Set up the dummy for its photoshoot var/mob/living/carbon/human/dummy/mannequin = generate_or_wait_for_human_dummy(DUMMY_HUMAN_SLOT_PREFERENCES) - apply_prefs_to(mannequin, TRUE) + apply_prefs_to(mannequin, TRUE, TRUE) switch(preview_pref) if(PREVIEW_PREF_JOB)