From 2d61523f61862429bf96cc8ecc1879b4c032edfd Mon Sep 17 00:00:00 2001 From: Hawk-v3 Date: Thu, 1 Mar 2012 20:55:56 +0000 Subject: [PATCH] Subject: [PATCH 087/285] TG UPdates: Meat will now spoil within three minutes at temperatures between 0C and 100C. Rotten meat has the same nutritional value as normal meat, and can be used in the same recipes. However, it is toxic, and ingesting a badly-prepared big bite burger can kill you. Because refrigeration serves a purpose now, the kitchen cold room freezing unit is turned off by default. Chefs should remember to turn the freezer on at the start of their shift. WRONG WRONG WRONG. Nothing useful changes here, (I hope), but later on when someone makes freezer crates usable, I will be uncommenting this. ~Hawk --- code/modules/food/food.dm | 52 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/code/modules/food/food.dm b/code/modules/food/food.dm index c5a2f62e054..04328edd76f 100644 --- a/code/modules/food/food.dm +++ b/code/modules/food/food.dm @@ -206,15 +206,48 @@ icon_state = "meat" slice_path = /obj/item/weapon/reagent_containers/food/snacks/rawcutlet slices_num = 3 - New() - ..() + health = 180 + New() ..() reagents.add_reagent("nutriment", 3) src.bitesize = 3 + processing_objects.Add(src) + + Del() + processing_objects.Remove(src) + ..() + +/* process() + var/turf/location = get_turf(src.loc) + var/datum/gas_mixture/environment = location.return_air() + switch(environment.temperature) + if(0 to T0C) + if(T0C to (T0C + 100)) + health = max(0, health - 1) + if(health <= 0) + name = "rotten meat" + desc = "A slab of meat. It looks rotten." + var/toxin_amount = reagents.get_reagent_amount("nutriment") * 3 + reagents.add_reagent("toxin",toxin_amount) + processing_objects.Remove(src) */ /obj/item/weapon/reagent_containers/food/snacks/sliceable/meat/syntiflesh name = "synthetic meat" desc = "A synthetic slab of flesh." +/* process() + var/turf/location = get_turf(src.loc) + var/datum/gas_mixture/environment = location.return_air() + switch(environment.temperature) + if(0 to T0C) + if(T0C to (T0C + 100)) + health = max(0, health - 1) + if(health <= 0) + name = "rotten synthetic meat" + desc = "A slab of synthetic meat. It looks rotten." + var/toxin_amount = reagents.get_reagent_amount("nutriment") * 3 + reagents.add_reagent("toxin",toxin_amount) + processing_objects.Remove(src) +*/ /obj/item/weapon/reagent_containers/food/snacks/appendix //yes, this is the same as meat. I might do something different in future name = "appendix" desc = "An appendix which looks perfectly healthy." @@ -238,6 +271,21 @@ var/subjectname = "" var/subjectjob = null +/* process() + var/turf/location = get_turf(src.loc) + var/datum/gas_mixture/environment = location.return_air() + switch(environment.temperature) + if(0 to T0C) + if(T0C to (T0C + 100)) + health = max(0, health - 1) + if(health <= 0) + name = "-rotten meat" + desc = "A slab of meat. It looks rotten." + var/toxin_amount = reagents.get_reagent_amount("nutriment") * 3 + reagents.add_reagent("toxin",toxin_amount) + processing_objects.Remove(src) +*/ +//Useful in later patch ~Hawk /obj/item/weapon/reagent_containers/food/snacks/sliceable/meat/monkey //same as plain meat