fix augments not applying (#7393)

This commit is contained in:
Matthew J
2021-08-05 15:00:14 +12:00
committed by GitHub
parent 92a18bc2f5
commit bc018d7306
2 changed files with 3 additions and 3 deletions
@@ -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()
@@ -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)