mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Chefs spawning with random produce (#5198)
Chefs now spawn with 8 random, commonly used produce.
This commit is contained in:
@@ -899,11 +899,14 @@ var/list/global/random_stock_large = list(
|
||||
//This ensures the cargo bay will have a supply of food in an obtainable place for animals
|
||||
//allows nymphs and mice to raid it for nutrients, and thus gives playermice more
|
||||
//reason to infest the warehouse
|
||||
//^fucking mouse main
|
||||
if (CS && prob(65))
|
||||
if (!istype(L, /turf))
|
||||
L = get_turf(pick(CS.tables))
|
||||
|
||||
new /obj/item/weapon/storage/box/snack(L)
|
||||
if(prob(50))
|
||||
new /obj/item/weapon/storage/box/snack(L)
|
||||
else
|
||||
new /obj/item/weapon/storage/box/produce(L)
|
||||
|
||||
if ("oxytank")
|
||||
new /obj/item/weapon/tank/oxygen(L)
|
||||
|
||||
@@ -703,40 +703,43 @@
|
||||
total_yield = max(1,total_yield)
|
||||
|
||||
for(var/i = 0;i<total_yield;i++)
|
||||
var/obj/item/product
|
||||
if(has_mob_product)
|
||||
product = new has_mob_product(get_turf(user),name)
|
||||
else
|
||||
product = new /obj/item/weapon/reagent_containers/food/snacks/grown(get_turf(user),name)
|
||||
if(get_trait(TRAIT_PRODUCT_COLOUR))
|
||||
if(!istype(product, /mob))
|
||||
product.color = get_trait(TRAIT_PRODUCT_COLOUR)
|
||||
if(istype(product,/obj/item/weapon/reagent_containers/food))
|
||||
var/obj/item/weapon/reagent_containers/food/food = product
|
||||
food.filling_color = get_trait(TRAIT_PRODUCT_COLOUR)
|
||||
spawn_seed(get_turf(user))
|
||||
|
||||
if(mysterious)
|
||||
product.name += "?"
|
||||
product.desc += " On second thought, something about this one looks strange."
|
||||
/datum/seed/proc/spawn_seed(var/turf/spawning_loc)
|
||||
var/obj/item/product
|
||||
if(has_mob_product)
|
||||
product = new has_mob_product(spawning_loc,name)
|
||||
else
|
||||
product = new /obj/item/weapon/reagent_containers/food/snacks/grown(spawning_loc,name)
|
||||
if(get_trait(TRAIT_PRODUCT_COLOUR))
|
||||
if(!istype(product, /mob))
|
||||
product.color = get_trait(TRAIT_PRODUCT_COLOUR)
|
||||
if(istype(product,/obj/item/weapon/reagent_containers/food))
|
||||
var/obj/item/weapon/reagent_containers/food/food = product
|
||||
food.filling_color = get_trait(TRAIT_PRODUCT_COLOUR)
|
||||
|
||||
if(get_trait(TRAIT_BIOLUM))
|
||||
var/pwr
|
||||
if(get_trait(TRAIT_BIOLUM_PWR) == 0)
|
||||
pwr = get_trait(TRAIT_BIOLUM)
|
||||
else
|
||||
pwr = get_trait(TRAIT_BIOLUM_PWR)
|
||||
var/clr
|
||||
if(get_trait(TRAIT_BIOLUM_COLOUR))
|
||||
clr = get_trait(TRAIT_BIOLUM_COLOUR)
|
||||
product.set_light(get_trait(TRAIT_POTENCY)/10, pwr, clr)
|
||||
if(mysterious)
|
||||
product.name += "?"
|
||||
product.desc += " On second thought, something about this one looks strange."
|
||||
|
||||
//Handle spawning in living, mobile products (like dionaea).
|
||||
if(istype(product,/mob/living))
|
||||
product.visible_message("<span class='notice'>The pod disgorges [product]!</span>")
|
||||
handle_living_product(product)
|
||||
if(istype(product,/mob/living/simple_animal/mushroom)) // Gross.
|
||||
var/mob/living/simple_animal/mushroom/mush = product
|
||||
mush.seed = src
|
||||
if(get_trait(TRAIT_BIOLUM))
|
||||
var/pwr
|
||||
if(get_trait(TRAIT_BIOLUM_PWR) == 0)
|
||||
pwr = get_trait(TRAIT_BIOLUM)
|
||||
else
|
||||
pwr = get_trait(TRAIT_BIOLUM_PWR)
|
||||
var/clr
|
||||
if(get_trait(TRAIT_BIOLUM_COLOUR))
|
||||
clr = get_trait(TRAIT_BIOLUM_COLOUR)
|
||||
product.set_light(get_trait(TRAIT_POTENCY)/10, pwr, clr)
|
||||
|
||||
//Handle spawning in living, mobile products (like dionaea).
|
||||
if(istype(product,/mob/living))
|
||||
product.visible_message("<span class='notice'>The pod disgorges [product]!</span>")
|
||||
handle_living_product(product)
|
||||
if(istype(product,/mob/living/simple_animal/mushroom)) // Gross.
|
||||
var/mob/living/simple_animal/mushroom/mush = product
|
||||
mush.seed = src
|
||||
|
||||
// When the seed in this machine mutates/is modified, the tray seed value
|
||||
// is set to a new datum copied from the original. This datum won't actually
|
||||
|
||||
@@ -1066,7 +1066,7 @@
|
||||
set_trait(TRAIT_NUTRIENT_CONSUMPTION, 0.15)
|
||||
|
||||
/datum/seed/cocoa
|
||||
name = "cocoa"
|
||||
name = "cacao"
|
||||
seed_name = "cacao"
|
||||
display_name = "cacao tree"
|
||||
chems = list("nutriment" = list(1,10), "coco" = list(4,5))
|
||||
|
||||
Reference in New Issue
Block a user