Skip to content

Commit

Permalink
Make seeds carry their dominan/recessive stat to the planted plant (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Earthfire authored Jun 27, 2023
1 parent 7fd196b commit 0a7c924
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/obj/machinery/plantpot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,14 @@ TYPEINFO(/obj/machinery/plantpot)
DNA.harvests = SDNA.harvests
DNA.potency = SDNA.potency
DNA.endurance = SDNA.endurance
// now we transfer gene dominance + recessiveness as well
DNA.d_species = SDNA.d_species
DNA.d_growtime = SDNA.d_growtime
DNA.d_harvtime = SDNA.d_harvtime
DNA.d_cropsize = SDNA.d_cropsize
DNA.d_harvests = SDNA.d_harvests
DNA.d_potency = SDNA.d_potency
DNA.d_endurance = SDNA.d_endurance
// we use the same list as the seed here, as new lists are created only on mutation to avoid making way more lists than we need
DNA.commuts = SDNA.commuts
if(SDNA.mutation)
Expand Down

0 comments on commit 0a7c924

Please sign in to comment.