From 975770b9fe9d8a937983520afdcd0cd74a483557 Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Tue, 10 Jun 2025 15:41:51 +0000 Subject: [PATCH] Fixing more issues with genetics. tested [NO GBP] (#91565) ## About The Pull Request Fixing more stuff because I didn't test it properly before. ## Why It's Good For The Game It should work now. Fix #91560. ## Changelog :cl: fix: Fixed mutation injectors. fix: Fixed mutadone turning actual monkeys into humonkeys. /:cl: --- code/datums/dna.dm | 4 ++-- code/modules/reagents/chemistry/reagents/medicine_reagents.dm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/datums/dna.dm b/code/datums/dna.dm index 3dfaadb4626..b4c4a23d769 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -172,7 +172,7 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block()) var/list/sources_to_add = sources.Copy() //make sure not to modify the original if it's stored in a variable outside this proc if(!actual_mutation) if(istype(mutation_to_add, /datum/mutation)) - var/datum/mutation/mutation_instance + var/datum/mutation/mutation_instance = mutation_to_add actual_mutation = mutation_instance.make_copy() else actual_mutation = new mutation_to_add @@ -229,7 +229,7 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block()) /datum/dna/proc/remove_mutation_group(list/group, sources = GLOB.standard_mutation_sources) if(!group) return - for(var/datum/mutation/mutation in group) + for(var/mutation in group) remove_mutation(mutation, sources) /datum/dna/proc/generate_unique_identity() diff --git a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm index c2ce97d46a4..2ab1b8fb0b3 100644 --- a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm @@ -1188,7 +1188,7 @@ . = ..() affected_mob.remove_status_effect(/datum/status_effect/jitter) if(affected_mob.has_dna()) - affected_mob.dna.remove_mutation_group(affected_mob.dna.mutations - /datum/mutation/race, GLOB.standard_mutation_sources) + affected_mob.dna.remove_mutation_group(affected_mob.dna.mutations - affected_mob.dna.get_mutation(/datum/mutation/race), GLOB.standard_mutation_sources) affected_mob.dna.scrambled = FALSE /datum/reagent/medicine/antihol