Skip to content

Commit

Permalink
Allows new weeds to overtake trays containing dead weeds (#36944)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeityLink authored Aug 21, 2024
1 parent fde9f34 commit a1971a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/hydroponics/hydro_tray_process.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// There's a chance for a weed explosion to happen if the weeds take over.
// Plants that are themselves weeds (weed_tolerance > 80) are unaffected.
if (get_weedlevel() >= WEEDLEVEL_MAX && prob(10))
if(!seed || get_weedlevel() >= seed.weed_tolerance + 20)
if(!seed || get_weedlevel() >= seed.weed_tolerance + 20 || dead)
weed_invasion()

// If there is no seed data (and hence nothing planted),
Expand Down

0 comments on commit a1971a8

Please sign in to comment.