mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-26 17:31:58 +00:00
A new powerful microwave code allows completely new recipes. All cooked food all have transferred in all the reagents which ingredients had (except of nutriments). A new neat food sprites from Farart. New/changed recipes for cooking with microwave: - Berry Pie was replaced with Berry Clafoutis with new sprite. Recipe: 2 flour, 1 egg, 2 berries (not berryjuice); - Fortune cookies: 1 flour, 1 egg, piece of paper with prophecy; - Meat stake: 1 unit of salt, 1 unit of black pepper, 1 slab of meat; - Pizza "Margherita": 2 flour, 4 wedges of cheese, 1 tomato; - Meat Pizza: 2 flour, 2 slabs of meat, 1 wedge of cheese, 1 tomato; - Mushroom Pizza: 2 flour, 5 any mushrooms; - Vegetable Pizza: 2 flour, 1 eggplant, 1 carrot, 1 corn, 1 tomato; - Spacy Liberty Duff: 10 units of water, 5 units of vodka, 3 Liberty Caps; - Amanita Jelly: 5 units of water, 10 units of vodka, 3 Amanitas; - Meatball Soup: 20 units of water, 1 meatball (aka faggot), 1 carrot, 1 potato; - Vegetable Soup: 20 units of water, 1 carrot, 1 corn, 1 eggplant, 1 potato; - Meatball Soup: 20 units of water, 1 meatball (aka faggot), 1 carrot, 1 potato; - Nettle Soup: 20 units of water, 1 nettle, 1 egg, 1 potato; - Hot Chili stew: 1 slab of meat, 1 chili pepper, 1 tomato; - Cold Chili stew: 1 slab of meat, 1 ice pepper, 1 tomato; Other bugfixes: Fixed items showing under vendomats/microwaves. Activated item_state for anesthetic tank. Runes are under tables and doors now. Fixed runtime errors caused by some reagents. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1440 316c924e-a436-60f5-8080-3fe189b3f50e
134 lines
4.1 KiB
Plaintext
134 lines
4.1 KiB
Plaintext
/datum/food_processor_process
|
|
var/input
|
|
var/output
|
|
var/time = 40
|
|
proc/process(loc, what)
|
|
if (src.output && loc)
|
|
new src.output(loc)
|
|
if (what)
|
|
del(what)
|
|
|
|
/* objs */
|
|
wheat
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/grown/wheat
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/flour
|
|
|
|
meat
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/meat
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/faggot
|
|
/*
|
|
monkeymeat
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/meat/monkey
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/faggot
|
|
|
|
humanmeat
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/meat/human
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/faggot
|
|
*/
|
|
potato
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/grown/potato
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/fries
|
|
|
|
/* mobs */
|
|
mob
|
|
process(loc, what)
|
|
var/mob/O = what
|
|
if (O.client)
|
|
var/mob/dead/observer/newmob = new/mob/dead/observer(O)
|
|
O.client.mob = newmob
|
|
newmob.client.eye = newmob
|
|
..()
|
|
|
|
|
|
metroid
|
|
input = /mob/living/carbon/alien/larva/metroid
|
|
output = /obj/item/weapon/reagent_containers/food/drinks/jar
|
|
|
|
monkey
|
|
process(loc, what)
|
|
var/mob/living/carbon/monkey/O = what
|
|
if (O.client) //grief-proof
|
|
O.loc = loc
|
|
O.visible_message("\blue Suddenly [O] jumps out from the processor!", \
|
|
"You jump out from the processor", \
|
|
"You hear chimp")
|
|
return
|
|
var/obj/item/weapon/reagent_containers/glass/bucket/bucket_of_blood = new(loc)
|
|
var/datum/reagent/blood/B = new()
|
|
B.holder = bucket_of_blood
|
|
B.volume = 70
|
|
//set reagent data
|
|
B.data["donor"] = O
|
|
if(O.virus && O.virus.spread_type != SPECIAL)
|
|
B.data["virus"] = new O.virus.type(0)
|
|
B.data["blood_DNA"] = copytext(O.dna.unique_enzymes,1,0)
|
|
if(O.resistances&&O.resistances.len)
|
|
B.data["resistances"] = O.resistances.Copy()
|
|
bucket_of_blood.reagents.reagent_list += B
|
|
bucket_of_blood.reagents.update_total()
|
|
bucket_of_blood.on_reagent_change()
|
|
//bucket_of_blood.reagents.handle_reactions() //blood doesn't react
|
|
..()
|
|
|
|
input = /mob/living/carbon/monkey
|
|
output = null
|
|
|
|
/obj/machinery/processor/proc/select_recipe(var/X)
|
|
for (var/Type in typesof(/datum/food_processor_process) - /datum/food_processor_process - /datum/food_processor_process/mob)
|
|
var/datum/food_processor_process/P = new Type()
|
|
if (!istype(X, P.input))
|
|
continue
|
|
return P
|
|
return 0
|
|
|
|
/obj/machinery/processor/attackby(var/obj/item/O as obj, var/mob/user as mob)
|
|
if(src.processing)
|
|
user << "\red The processor is in the process of processing."
|
|
return 1
|
|
if(src.contents.len > 0) //TODO: several items at once? several different items?
|
|
user << "\red Something is already in the processing chamber."
|
|
return 1
|
|
var/what = O
|
|
if (istype(O, /obj/item/weapon/grab))
|
|
var/obj/item/weapon/grab/G = O
|
|
what = G.affecting
|
|
|
|
var/datum/food_processor_process/P = select_recipe(what)
|
|
if (!P)
|
|
user << "\red That probably won't blend."
|
|
return 1
|
|
user.visible_message("[user] put [what] into [src].", \
|
|
"You put the [what] into [src].")
|
|
user.drop_item()
|
|
what:loc = src
|
|
return
|
|
|
|
/obj/machinery/processor/attack_hand(var/mob/user as mob)
|
|
if (src.stat != 0) //NOPOWER etc
|
|
return
|
|
if(src.processing)
|
|
user << "\red The processor is in the process of processing."
|
|
return 1
|
|
if(src.contents.len == 0)
|
|
user << "\red The processor is empty."
|
|
return 1
|
|
for(var/O in src.contents)
|
|
var/datum/food_processor_process/P = select_recipe(O)
|
|
if (!P)
|
|
log_admin("DEBUG: [O] in processor havent suitable recipe. How do you put it in?") //-rastaf0
|
|
continue
|
|
src.processing = 1
|
|
user.visible_message("\blue [user] turns on \a [src].", \
|
|
"You turn on \a [src].", \
|
|
"You hear a food processor")
|
|
playsound(src.loc, 'blender.ogg', 50, 1)
|
|
use_power(50)
|
|
sleep(P.time)
|
|
P.process(src.loc, O)
|
|
src.processing = 0
|
|
src.visible_message("\blue \the [src] finished processing.", \
|
|
"You hear food processor stops")
|
|
|
|
|
|
|