mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Fixes the randomization of external organs and species features (#84708)
## About The Pull Request Humanoids would not have their external organs and features change when being randomized (with mulligans, for example). The ´|=´ operator does nothing if the features list of the humanoid is already populated (i.e. we're not creating the humanoid). This new block instead overwrites each entry of the list. ## Why It's Good For The Game Bugfix. This broke mulligan among some other things. ## Changelog 🆑 fix: humanoid species featured are randomized correctly once again /🆑
This commit is contained in:
+3
-1
@@ -469,7 +469,9 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block())
|
||||
generate_dna_blocks()
|
||||
if(randomize_features)
|
||||
for(var/species_type in GLOB.species_prototypes)
|
||||
features |= GLOB.species_prototypes[species_type].randomize_features()
|
||||
var/list/new_features = GLOB.species_prototypes[species_type].randomize_features()
|
||||
for(var/feature in new_features)
|
||||
features[feature] = new_features[feature]
|
||||
|
||||
features["mcolor"] = "#[random_color()]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user