Files
Bubberstation/code/modules/hydroponics/grown/rainbow_bunch.dm
SkyratBot 7d653f1f6b [MIRROR] Moves grown food to newfood (#1794)
* Moves grown food to newfood (#55040)

Moves grown food to newfood
Gives trash element support for callbacks for item creation override

* Moves grown food to newfood

Co-authored-by: Qustinnus <Floydje123@hotmail.com>
2020-11-23 22:35:35 +00:00

81 lines
2.6 KiB
Plaintext

/obj/item/seeds/rainbow_bunch
name = "pack of rainbow bunch seeds"
desc = "A pack of seeds that'll grow into a beautiful bush of various colored flowers."
icon_state = "seed-rainbowbunch"
species = "rainbowbunch"
plantname = "Rainbow Flowers"
icon_harvest = "rainbowbunch-harvest"
product = /obj/item/food/grown/rainbow_flower
lifespan = 25
endurance = 10
maturation = 6
production = 3
yield = 5
potency = 20
instability = 25
growthstages = 4
growing_icon = 'icons/obj/hydroponics/growing_flowers.dmi'
icon_dead = "rainbowbunch-dead"
genes = list(/datum/plant_gene/trait/repeated_harvest)
reagents_add = list(/datum/reagent/consumable/nutriment = 0.05)
/obj/item/food/grown/rainbow_flower
seed = /obj/item/seeds/rainbow_bunch
name = "rainbow flower"
desc = "A beautiful flower capable of being used for most dyeing processes."
icon_state = "rainbow_flower"
worn_icon_state = "rainbow"
slot_flags = ITEM_SLOT_HEAD
force = 0
throwforce = 0
w_class = WEIGHT_CLASS_TINY
throw_speed = 2
throw_range = 3
attack_verb_continuous = list("pompfs")
attack_verb_simple = list("pompf")
/obj/item/food/grown/rainbow_flower/Initialize()
. = ..()
var/flower_color = rand(1,8)
switch(flower_color)
if(1)
color = "#DA0000"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/red, 3)
dye_color = DYE_RED
desc += " This one is in a bright red color."
if(2)
color = "#FF9300"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/orange, 3)
dye_color = DYE_ORANGE
desc += " This one is in a citrus orange color."
if(3)
color = "#FFF200"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/yellow, 3)
dye_color = DYE_YELLOW
desc += " This one is in a bright yellow color."
if(4)
color = "#A8E61D"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/green, 3)
dye_color = DYE_GREEN
desc += " This one is in a grassy green color."
if(5)
color = "#00B7EF"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/blue, 3)
dye_color = DYE_BLUE
desc += " This one is in a soothing blue color."
if(6)
color = "#DA00FF"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/purple, 3)
dye_color = DYE_PURPLE
desc += " This one is in a vibrant purple color."
if(7)
color = "#1C1C1C"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/black, 3)
dye_color = DYE_BLACK
desc += " This one is in a midnight black color."
if(8)
color = "#FFFFFF"
reagents.add_reagent(/datum/reagent/colorful_reagent/powder/white, 3)
dye_color = DYE_WHITE
desc += " This one is in a pure white color."