Skip to content

Commit

Permalink
bugfix: null mutatelist runtime (#4050)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rerik007 authored Dec 11, 2023
1 parent 3bcc269 commit 2959019
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/modules/hydroponics/grown/peas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
genes = list (/datum/plant_gene/trait/glow/blue)
reagents_add = list ("fomepizole" = 0.1, "love" = 0.1, "nutriment" = 0.15)
rarity = 50 // This absolutely will make even the most hardened Syndicate Operators relax.
mutatelist = null
mutatelist = list()

/obj/item/reagent_containers/food/snacks/grown/peaspeace
seed = /obj/item/seeds/peas/laugh/peace
Expand Down
11 changes: 6 additions & 5 deletions code/modules/hydroponics/hydroponics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,14 @@
return

var/oldPlantName = myseed.plantname
if(myseed.mutatelist.len > 0)
var/mutantseed = pick(myseed.mutatelist)
QDEL_NULL(myseed)
myseed = new mutantseed
else
if(!length(myseed.mutatelist))
return

var/mutantseed = pick(myseed.mutatelist)
QDEL_NULL(myseed)
myseed = new mutantseed


hardmutate()
age = 0
plant_health = myseed.endurance
Expand Down

0 comments on commit 2959019

Please sign in to comment.