From 142ca8100f5d311fcf1853937a5d7115fa495bb8 Mon Sep 17 00:00:00 2001 From: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Date: Mon, 26 Aug 2024 16:34:19 -0500 Subject: [PATCH] Char tweak (#571) --- code/modules/food_and_drinks/machinery/grill.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/food_and_drinks/machinery/grill.dm b/code/modules/food_and_drinks/machinery/grill.dm index 695c70b75dae..a4ae4f89be0a 100644 --- a/code/modules/food_and_drinks/machinery/grill.dm +++ b/code/modules/food_and_drinks/machinery/grill.dm @@ -91,7 +91,9 @@ if(grilled_item) SEND_SIGNAL(grilled_item, COMSIG_ITEM_GRILL_PROCESS, src, seconds_per_tick) grill_time += seconds_per_tick - grilled_item.reagents.add_reagent(/datum/reagent/consumable/char, 0.5 * seconds_per_tick) + var/char_amount = clamp(grilled_item.reagents.get_reagent_amount(/datum/reagent/consumable/nutriment), 1, (/datum/reagent/consumable/char::overdose_threshold / 3)) + if(!grilled_item.reagents.has_reagent(/datum/reagent/consumable/char, char_amount)) + grilled_item.reagents.add_reagent(/datum/reagent/consumable/char, 0.15 * seconds_per_tick) grill_fuel -= GRILL_FUELUSAGE_ACTIVE * seconds_per_tick grilled_item.AddComponent(/datum/component/sizzle)