mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user