From b20d004142ee65dbf6a40ad59f85af132c84bf8a Mon Sep 17 00:00:00 2001 From: FalseIncarnate Date: Mon, 25 May 2015 15:20:58 -0400 Subject: [PATCH] Biogenerator Biomass Value Fix Fixes the Biogenerator only giving one point of biomass per product inserted. The biogenerator previously calculated the points based on the amount of the nutriment reagent in the products inserted. Now the biogenerator will calculate the points based on the combined amounts of the nutriment and plant-matter reagents in the product. Overall, this just restores the values back to their pre-Nutrient Changes levels, as nutriment in plant products was replaced with plant-matter for nearly every plant that had it. --- code/game/machinery/biogenerator.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/biogenerator.dm b/code/game/machinery/biogenerator.dm index ad3939b294a..c7f0d27b6b2 100644 --- a/code/game/machinery/biogenerator.dm +++ b/code/game/machinery/biogenerator.dm @@ -191,9 +191,10 @@ var/S = 0 for(var/obj/item/weapon/reagent_containers/food/snacks/grown/I in contents) S += 5 - if(I.reagents.get_reagent_amount("nutriment") < 0.1) + var/reagent_amount = I.reagents.get_reagent_amount("nutriment") + I.reagents.get_reagent_amount("plantmatter") + if(reagent_amount < 0.1) points += 1*productivity - else points += I.reagents.get_reagent_amount("nutriment")*10*productivity + else points += reagent_amount*10*productivity qdel(I) if(S) processing = 1