Fixes harddels, reduces unneccessary update body calls (#88300)

Closes #88283
Closes https://github.com/tgstation/tgstation/issues/88320

Fixes a harddel caused by the limp status effect not being properly
deleted

Reduces update-body calls in:
- Initialize from 4 to 1
- On z-level change from 2 to 1
- On move with bloody shoes from 1 to 0

Mostly by just passing along the proper argument and removing seemingly
unnecessary update body calls
This commit is contained in:
Time-Green
2024-12-04 01:34:57 +01:00
committed by GitHub
parent 194e4deeb8
commit a0d47d999e
27 changed files with 35 additions and 34 deletions
+3 -2
View File
@@ -37,7 +37,7 @@
*
* (IE, no wacky hair styles / colors)
*/
/proc/randomize_human_normie(mob/living/carbon/human/human, randomize_mutations = FALSE)
/proc/randomize_human_normie(mob/living/carbon/human/human, randomize_mutations = FALSE, update_body = TRUE)
// Sorry enbys but statistically you are not average enough
human.gender = human.dna.species.sexes ? pick(MALE, FEMALE) : PLURAL
human.physique = human.gender
@@ -59,4 +59,5 @@
// Normal DNA init stuff, these can generally be wacky but we care less, they're aliens after all
human.dna.initialize_dna(newblood_type = random_blood_type(), create_mutation_blocks = randomize_mutations, randomize_features = TRUE)
human.updatehealth()
human.updateappearance(mutcolor_update = TRUE)
if(update_body)
human.updateappearance(mutcolor_update = TRUE)