diff --git a/growing_vegetables.dmi b/growing_vegetables.dmi new file mode 100644 index 00000000..86bb9fbe Binary files /dev/null and b/growing_vegetables.dmi differ diff --git a/onion.dm b/onion.dm new file mode 100644 index 00000000..4c10eccc --- /dev/null +++ b/onion.dm @@ -0,0 +1,92 @@ +/obj/item/seeds/onion + name = "pack of onion seeds" + desc = "These seeds grow into onions." + icon_state = "seed-onion" + species = "onion" + plantname = "Onion Sprouts" + product = /obj/item/reagent_containers/food/snacks/grown/onion + lifespan = 20 + maturation = 3 + production = 4 + yield = 6 + endurance = 25 + growthstages = 3 + weed_chance = 3 + growing_icon = 'icons/obj/hydroponics/growing_vegetables.dmi' + reagents_add = list("vitamin" = 0.04, "nutriment" = 0.1) + mutatelist = list(/obj/item/seeds/onion/red) + +/obj/item/reagent_containers/food/snacks/grown/onion + seed = /obj/item/seeds/onion + name = "onion" + desc = "Nothing to cry over." + icon_state = "onion" + filling_color = "#C0C9A0" + bitesize_mod = 2 + tastes = list("onions" = 1) + slice_path = /obj/item/reagent_containers/food/snacks/onion_slice + slices_num = 2 + wine_power = 30 + +/obj/item/seeds/onion/red + name = "pack of red onion seeds" + desc = "For growing exceptionally potent onions." + icon_state = "seed-onionred" + species = "onion_red" + plantname = "Red Onion Sprouts" + weed_chance = 1 + product = /obj/item/reagent_containers/food/snacks/grown/onion/red + reagents_add = list("vitamin" = 0.04, "nutriment" = 0.1, "tearjuice" = 0.05) + mutatelist = list(/obj/item/seeds/onion/burning) + +/obj/item/reagent_containers/food/snacks/grown/onion/red + seed = /obj/item/seeds/onion/red + name = "red onion" + desc = "Purple despite the name." + icon_state = "onion_red" + filling_color = "#C29ACF" + slice_path = /obj/item/reagent_containers/food/snacks/onion_slice/red + wine_power = 60 + +/obj/item/reagent_containers/food/snacks/grown/onion/slice(accuracy, obj/item/W, mob/user) + var/datum/effect_system/smoke_spread/chem/S = new //Since the onion is destroyed when it's sliced, + var/splat_location = get_turf(src) //we need to set up the smoke beforehand + S.attach(splat_location) + S.set_up(reagents, 0, splat_location, 0) + if(..()) + S.start() + return TRUE + qdel(S) + +/obj/item/reagent_containers/food/snacks/onion_slice + name = "onion slices" + desc = "Rings, not for wearing." + icon_state = "onionslice" + list_reagents = list("nutriment" = 5, "vitamin" = 2) + filling_color = "#C0C9A0" + gender = PLURAL + cooked_type = /obj/item/reagent_containers/food/snacks/onionrings + +/obj/item/reagent_containers/food/snacks/onion_slice/red + name = "red onion slices" + desc = "They shine like exceptionally low quality amethyst." + icon_state = "onionslice_red" + filling_color = "#C29ACF" + list_reagents = list("nutriment" = 5, "vitamin" = 2, "tearjuice" = 2.5) + +/obj/item/seeds/onion/burning + name ="pack of burning onion seeds" + desc = "For when you REALLY want to burn your eyes." + icon_state = "seed-onionburning" + species = "onion_burning" + plantname = "Burning Onion Sprouts" + product = /obj/item/reagent_containers/food/snacks/grown/onion/burning + reagents_add = list("phlogiston" = 0.05,"nutriment" = 0.05, "tearjuice" = 0.1, "condensedcapsaicin" = 0.04) + +/obj/item/reagent_containers/food/snacks/grown/onion/burning + seed = /obj/item/seeds/onion/burning + name = "burning onion" + desc = "Warm to the touch. Probably not safe to eat these." + icon_state = "onion_burning" + filling_color = "#F48E34" + list_reagents = list("phlogiston" = 2, "nutriment" = 2, "tearjuice" = 5, "condensedcapsaicin" = 1) \ No newline at end of file