Skip to content

Commit b8263bd

Browse files
authored
Improved quality gained from BIO and fix oven (#306)
1 parent 7297822 commit b8263bd

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

code/datums/components/butchering.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
ourdrop.name = "[meat.name] [ourdrop.name]"
107107
if(istype(ourdrop, /obj/item/reagent_containers/food/snacks))
108108
var/obj/item/reagent_containers/food/snacks/ourmeat = ourdrop
109-
ourmeat.food_quality = (ourmeat.food_quality * ((bio + 15) / 15) * clamp((toolpowr / 15), 0.25, 4))
109+
ourmeat.food_quality = (ourmeat.food_quality * (bio + 15) * clamp(toolpowr, 0.25, 4))
110110

111111

112112
//try to invoke a hazard effect on the butcher

code/modules/cooking_with_jane/cooking_items/cooking_containers.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
/obj/item/reagent_containers/cooking_with_jane/cooking_container/proc/clear_cooking_data()
221221
stove_data = list("High"=0 , "Medium" = 0, "Low"=0)
222222
grill_data = list("High"=0 , "Medium" = 0, "Low"=0)
223+
oven_data = list("High"=0 , "Medium" = 0, "Low"=0)
223224

224225
/obj/item/reagent_containers/cooking_with_jane/cooking_container/proc/label(number, CT = null)
225226
//This returns something like "Fryer basket 1 - empty"

code/modules/hydroponics/seed.dm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,12 +751,14 @@
751751
if(has_mob_product)
752752
product = new has_mob_product(get_turf(source),name)
753753
else
754-
var/quality
754+
var/quality //product quality
755+
var/plantpowr //inherent potency quality before harvest
755756
if(force_quality)
756757
quality = force_quality
757758
else
758759
if(livesource && livesource.stats.getStat(STAT_BIO))
759-
quality = clamp(1 * ((livesource.stats.getStat(STAT_BIO) + 15) / 15), 0, 10)
760+
plantpowr = round(get_trait(TRAIT_POTENCY) / 10)
761+
quality = ((livesource.stats.getStat(STAT_BIO) + 15) / 20) * clamp(plantpowr, 0.25, 4)
760762
else//nuclear farmbot nerf
761763
quality = -5
762764
product = new /obj/item/reagent_containers/food/snacks/grown(get_turf(source), name, quality)

0 commit comments

Comments
 (0)