From d985ea8c848b08ab878b50e72f9ae5602eddf74a Mon Sep 17 00:00:00 2001 From: timothyteakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Thu, 9 Apr 2020 02:51:32 +0100 Subject: [PATCH] more quality --- code/datums/components/butchering.dm | 9 ++++++++- .../modules/reagents/chemistry/reagents/food_reagents.dm | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/code/datums/components/butchering.dm b/code/datums/components/butchering.dm index 06169f64bf..1477f7cbc5 100644 --- a/code/datums/components/butchering.dm +++ b/code/datums/components/butchering.dm @@ -69,6 +69,9 @@ H.apply_status_effect(/datum/status_effect/neck_slice) /datum/component/butchering/proc/Butcher(mob/living/butcher, mob/living/meat) + var/meat_quality = 30 + (bonus_modifier/10) //increases through quality of butchering tool, and through if it was butchered in the kitchen or not + if(istype(get_area(butcher), /area/crew_quarters/kitchen)) + meat_quality = meat_quality + 20 var/turf/T = meat.drop_location() var/final_effectiveness = effectiveness - meat.butcher_difficulty var/bonus_chance = max(0, (final_effectiveness - 100) + bonus_modifier) //so 125 total effectiveness = 25% extra chance @@ -83,7 +86,11 @@ if(butcher) to_chat(butcher, "You harvest some extra [initial(bones.name)] from [meat]!") for(var/i in 1 to 2) - new bones (T) + var/butcher_item = new bones (T) + if(istype(butcher_item, /obj/item/reagent_containers/food)) + var/obj/item/reagent_containers/food/butcher_food = butcher_item + butcher_food.adjust_food_quality(meat_quality) + else new bones (T) meat.butcher_results.Remove(bones) //in case you want to, say, have it drop its results on gib diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm index fa30609c54..c555609992 100644 --- a/code/modules/reagents/chemistry/reagents/food_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm @@ -777,6 +777,12 @@ can_synth = FALSE pH = 6.1 +/datum/reagent/consumable/secretsauce/reaction_obj(obj/O, reac_volume) + //splashing any amount above or equal to 1u of secret sauce onto a piece of food turns its quality to 100 + if(reac_volume >= 1 && istype(O, /obj/item/reagent_containers/food)) + var/obj/item/reagent_containers/food/splashed_food = O + splashed_food.adjust_food_quality(100) + /datum/reagent/consumable/char name = "Char" description = "Essence of the grill. Has strange properties when overdosed."