Skip to content

Commit

Permalink
Update code/modules/hydroponics/grown.dm
Browse files Browse the repository at this point in the history
Co-authored-by: ancient-engineer <[email protected]>
  • Loading branch information
RafRoq and ancient-engineer authored Jul 2, 2024
1 parent 7c795c1 commit 5238df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/hydroponics/grown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
bite_consumption = 1 + round(max((seed.potency * BITE_SIZE_POTENCY_MULTIPLIER), 1) * (max_volume * BITE_SIZE_VOLUME_MULTIPLIER) * bite_consumption_mod)

. = ..() //Only call it here because we want all the genes and shit to be applied before we add edibility. God this code is a mess.

// we want this trait to run after reagents component is added to the plant
//Monkestation Edit Begin
//We want this trait to run after reagents component is added to the plant
var/datum/plant_gene/trait/trait_noreact = seed.get_gene(/datum/plant_gene/trait/noreact)
if(trait_noreact)
trait_noreact.on_new_plant(src, loc)

//Monkestation Edit End
seed.prepare_result(src)
transform *= TRANSFORM_USING_VARIABLE(seed.potency, 100) + 0.5 //Makes the resulting produce's sprite larger or smaller based on potency!

Expand Down

0 comments on commit 5238df0

Please sign in to comment.