mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 17:41:05 +00:00
Sugary plants, blend them for sugars. Foods Sugar packets are removed, coco paste removed (it is now a reagent), and crushed leaves are removed (due to not taking advantage of the potency system). Blend Coco Pods for Coco! Then add sugar and milk (or soymilk) for a chocolate bar! Or add water for hot chocolate (chocolate milk TBA). Crushed chocolate renamed crushed coco (is a reagent). Kitchen closet has a condiment bottle of sugar in it now, rather than a billion packets of sugar. Candies apples use 5 units of sugar now, rather than a pack of sugar. Modified some new hydroponics plants to take advantage of the potency system. Had a go with a few drink bottles in party crates that weren't showing up due to a typo! Feed Nuka Cola to humans or animals and they won't just spaz out, they will spaz out so much not even the cold can slow them down. Deleted some redundant reagents (there were two lime juices, two creams, and I forget what else). Rearranged a few reagents. Capisin and frost oil never added nutriment factor to start with, and they really shouldn't. That's pretty much it. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1839 316c924e-a436-60f5-8080-3fe189b3f50e
163 lines
4.8 KiB
Plaintext
163 lines
4.8 KiB
Plaintext
|
|
/obj/machinery/processor
|
|
name = "Food Processor"
|
|
icon = 'kitchen.dmi'
|
|
icon_state = "processor"
|
|
layer = 2.9
|
|
density = 1
|
|
anchored = 1
|
|
var/broken = 0
|
|
var/processing = 0
|
|
use_power = 1
|
|
idle_power_usage = 5
|
|
active_power_usage = 50
|
|
|
|
|
|
|
|
/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
|
|
|
|
meat2
|
|
input = /obj/item/weapon/syntiflesh
|
|
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
|
|
|
|
carrot
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/grown/carrot
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/carrotfries
|
|
|
|
soybeans
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/grown/soybeans
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/soydope
|
|
|
|
flour
|
|
input = /obj/item/weapon/reagent_containers/food/snacks/flour
|
|
output = /obj/item/weapon/reagent_containers/food/snacks/spagetti
|
|
|
|
/* mobs */
|
|
mob
|
|
process(loc, what)
|
|
..()
|
|
|
|
|
|
metroid
|
|
input = /mob/living/carbon/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
|
|
|
|
for(var/datum/disease/D in O.viruses)
|
|
if(D.spread_type != SPECIAL)
|
|
B.data["viruses"] = new D.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(500)
|
|
sleep(P.time)
|
|
P.process(src.loc, O)
|
|
src.processing = 0
|
|
src.visible_message("\blue \the [src] finished processing.", \
|
|
"You hear food processor stops")
|
|
|
|
|