Skip to content

Commit

Permalink
Merge pull request #28 from Michiyamenotehifunana/GeneticsMeatRuntime2
Browse files Browse the repository at this point in the history
Further runtime fixes to meat genetics to prevent nuisance CI failures
  • Loading branch information
Hawk-v3 authored Aug 11, 2024
2 parents e91dddb + 366e318 commit 729cfc6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/modules/reagents/reagent_containers/food/snacks/meat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
//For initializing genetics information for meat, so it's easy to call.
/obj/item/reagent_containers/food/snacks/meat/proc/initialize_genetics(mob/living/meat_source)
if(meat_source) //EQUINOX EDIT: basic sanity check to prevent runtimes
inherent_mutations = meat_source.inherent_mutations.Copy()
unnatural_mutations = meat_source.unnatural_mutations.Copy()
source_mob = meat_source.type
if(meat_source.inherent_mutations) //EQUINOX EDIT: more sanity checks to prevent runtimes
inherent_mutations = meat_source.inherent_mutations.Copy()
if(meat_source.unnatural_mutations) //EQUINOX EDIT: more sanity checks to prevent runtimes
unnatural_mutations = meat_source.unnatural_mutations.Copy()
source_mob = meat_source.type // these don't need sanity checks since these are inherent vars that won't be null as long as meat_source exists (ergo, handled in first check already)
source_name = meat_source.name

/obj/item/reagent_containers/food/snacks/meat/syntiflesh
Expand Down

0 comments on commit 729cfc6

Please sign in to comment.