mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-26 14:46:52 +01:00
Testing/refinement of backyard grilling logic.
This commit is contained in:
@@ -45,22 +45,35 @@
|
||||
. = ..()
|
||||
nutriment_desc = null
|
||||
|
||||
// Halfassed version of Crabs' cooking system on Cit, should be folded into that if it is ported to Polaris.
|
||||
/obj/item/reagent_containers/food/snacks
|
||||
|
||||
// Halfassed version of Crabs' cooking system on Cit, should
|
||||
// be folded into that if it is ported to Polaris.
|
||||
|
||||
/// How many SSobj ticks of cooking the food has experienced.
|
||||
var/backyard_grilling_progress = 0
|
||||
/// What object type the food cooks into.
|
||||
var/backyard_grilling_product = /obj/item/reagent_containers/food/snacks/badrecipe
|
||||
var/backyard_grilling_threshold = 5
|
||||
/// How many SSobj ticks it takes for the food to cook.
|
||||
var/backyard_grilling_threshold = 10
|
||||
/// The message shown when the food cooks.
|
||||
var/backyard_grilling_announcement = "smokes and chars!"
|
||||
/// The span class used for the message above. Burned food defaults to SPAN_DANGER.
|
||||
var/backyard_grilling_span = "notice"
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/proc/grill(var/atom/heat_source)
|
||||
if(!backyard_grilling_product || !backyard_grilling_threshold)
|
||||
return
|
||||
backyard_grilling_progress++
|
||||
if(backyard_grilling_progress >= backyard_grilling_threshold)
|
||||
backyard_grilling_progress = 0
|
||||
var/obj/item/food = new backyard_grilling_product
|
||||
food.dropInto(loc)
|
||||
if(backyard_grilling_announcement)
|
||||
food.visible_message("\The [src] [backyard_grilling_announcement]")
|
||||
if(istype(food, /obj/item/reagent_containers/food/snacks/badrecipe))
|
||||
food.visible_message(SPAN_DANGER("\The [src] [backyard_grilling_announcement]"))
|
||||
else
|
||||
food.visible_message("<span class='[backyard_grilling_span]'>\The [src] [backyard_grilling_announcement]</span>")
|
||||
qdel(src)
|
||||
|
||||
//Placeholder for effect that trigger on eating that aren't tied to reagents.
|
||||
@@ -987,6 +1000,7 @@
|
||||
name = "charred spider meat"
|
||||
desc = "A slab of green meat with char lines. The poison has been burned out of it."
|
||||
color = COLOR_LIGHT_RED
|
||||
backyard_grilling_product = /obj/item/reagent_containers/food/snacks/badrecipe
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/xenomeat/spidermeat/charred/add_venom()
|
||||
return
|
||||
@@ -1031,6 +1045,24 @@
|
||||
. = ..()
|
||||
reagents.add_reagent("protein", 2, TASTE_DATA(list("salty meat mush" = 2)))
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/donkpocket/grill(var/atom/heat_source)
|
||||
|
||||
backyard_grilling_progress++
|
||||
if(backyard_grilling_progress >= backyard_grilling_threshold)
|
||||
backyard_grilling_progress = 0
|
||||
|
||||
// We're already warm, so we burn.
|
||||
if(warm)
|
||||
var/obj/item/reagent_containers/food/snacks/badrecipe/whoops = new
|
||||
whoops.dropInto(loc)
|
||||
visible_message(SPAN_DANGER("\The [src] chars and blackens!"))
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
// Otherwise we just warm up.
|
||||
heat()
|
||||
visible_message(SPAN_NOTICE("\The [src] steams gently!"))
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/donkpocket/proc/heat()
|
||||
warm = 1
|
||||
for(var/reagent in heated_reagents)
|
||||
@@ -1615,9 +1647,23 @@
|
||||
filling_color = "#211F02"
|
||||
center_of_mass = list("x"=16, "y"=12)
|
||||
bitesize = 2
|
||||
backyard_grilling_product = null
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/badrecipe/grill(var/atom/heat_source)
|
||||
return // We are already carbonized.
|
||||
if(!backyard_grilling_progress) // Smoke on our first grill
|
||||
// Produce nasty smoke.
|
||||
var/datum/effect_system/smoke_spread/bad/burntfood/smoke = new /datum/effect_system/smoke_spread/bad/burntfood
|
||||
playsound(src, 'sound/effects/smoke.ogg', 20, 1)
|
||||
smoke.attach(src)
|
||||
smoke.set_up(10, 0, get_turf(src), 300)
|
||||
smoke.start()
|
||||
// Set off fire alarms!
|
||||
var/obj/machinery/firealarm/FA = locate() in get_area(src)
|
||||
if(FA)
|
||||
FA.alarm()
|
||||
backyard_grilling_progress++
|
||||
if(backyard_grilling_progress >= backyard_grilling_threshold)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/badrecipe/Initialize()
|
||||
. = ..()
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
icon = 'icons/obj/food_sivian.dmi'
|
||||
icon_state = "gumbo"
|
||||
trash = /obj/item/trash/gumbo_bowl
|
||||
nutriment_amt = 6
|
||||
nutriment_amt = 8
|
||||
nutriment_desc = list(
|
||||
"smoky fish" = 3,
|
||||
"spiced vegetables" = 3,
|
||||
@@ -36,7 +36,7 @@
|
||||
bitesize = 3
|
||||
|
||||
/obj/item/trash/gumbo_bowl
|
||||
name = "bowl"
|
||||
name = "brown bowl"
|
||||
icon_state = "gumbo_bowl"
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/sif_jambalaya
|
||||
@@ -45,7 +45,7 @@
|
||||
gender = PLURAL
|
||||
icon = 'icons/obj/food_sivian.dmi'
|
||||
icon_state = "jambalaya"
|
||||
trash = /obj/item/trash/jambalaya_bowl
|
||||
trash = /obj/item/trash/jambalaya_plate
|
||||
nutriment_amt = 2
|
||||
nutriment_desc = list(
|
||||
"rich tomato and chili" = 3,
|
||||
@@ -63,9 +63,9 @@
|
||||
reagents.add_reagent("water", 1)
|
||||
reagents.add_reagent("rice", 1)
|
||||
|
||||
/obj/item/trash/jambalaya_bowl
|
||||
name = "small bowl"
|
||||
icon_state = "small_blue_bowl"
|
||||
/obj/item/trash/jambalaya_plate
|
||||
name = "plate"
|
||||
icon_state = "blue_plate"
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/sif_gerjao_auga
|
||||
name = "gerjao auga"
|
||||
@@ -73,8 +73,8 @@
|
||||
gender = PLURAL
|
||||
icon = 'icons/obj/food_sivian.dmi'
|
||||
icon_state = "gerjao_auga"
|
||||
trash = /obj/item/trash/gerjao_auga_plate
|
||||
nutriment_amt = 6
|
||||
trash = /obj/item/trash/gerjao_auga_bowl
|
||||
nutriment_amt = 3
|
||||
nutriment_desc = list(
|
||||
"sharp vinegar" = 4,
|
||||
"bitter citrus" = 2,
|
||||
@@ -85,11 +85,11 @@
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/sif_gerjao_auga/Initialize()
|
||||
. = ..()
|
||||
reagents.add_reagent("vinegar", 2)
|
||||
reagents.add_reagent("vinegar", 1)
|
||||
|
||||
/obj/item/trash/gerjao_auga_plate
|
||||
name = "blue plate"
|
||||
icon_state = "blue plate"
|
||||
/obj/item/trash/gerjao_auga_bowl
|
||||
name = "small bowl"
|
||||
icon_state = "small_blue_bowl"
|
||||
|
||||
/*
|
||||
/obj/item/reagent_containers/food/snacks/sif_wabback_gratin
|
||||
|
||||
@@ -22,10 +22,11 @@
|
||||
/datum/recipe/sif_jambalaya
|
||||
appliance = OVEN
|
||||
reagent_mix = RECIPE_REAGENT_REPLACE
|
||||
result_quantity = 5
|
||||
result_quantity = 5 // This is a lot, but we have no way to make a big bulk stew item and split it up currently.
|
||||
reagents = list(
|
||||
"water" = 5,
|
||||
"rice" = 10
|
||||
"rice" = 10,
|
||||
"spacespice" = 2
|
||||
)
|
||||
items = list(
|
||||
/obj/item/reagent_containers/food/snacks/meat,
|
||||
@@ -54,10 +55,11 @@
|
||||
/datum/recipe/sif_gumbo
|
||||
appliance = OVEN
|
||||
reagent_mix = RECIPE_REAGENT_REPLACE
|
||||
result_quantity = 3
|
||||
result_quantity = 3 // See jambalaya above.
|
||||
reagents = list(
|
||||
"water" = 5,
|
||||
"rice" = 5
|
||||
"rice" = 5,
|
||||
"spacespice" = 2
|
||||
)
|
||||
items = list(
|
||||
/obj/item/reagent_containers/food/snacks/meat,
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
seed_name = "cavebulbs"
|
||||
display_name = "cavebulbs"
|
||||
kitchen_tag = null
|
||||
chems = list("nutriment" = list(1,10), "spacespice" = list(1,10))
|
||||
|
||||
/datum/seed/flower/sunflower/cavebulbs/New()
|
||||
..()
|
||||
@@ -118,4 +119,4 @@
|
||||
..()
|
||||
set_trait(TRAIT_IDEAL_LIGHT, 1)
|
||||
set_trait(TRAIT_PLANT_COLOUR,"#5e0303")
|
||||
set_trait(TRAIT_CARNIVOROUS,1)
|
||||
set_trait(TRAIT_CARNIVOROUS,1)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
kitchen_tag = "potato"
|
||||
chems = list("nutriment" = list(1,10), "potatojuice" = list(10,10))
|
||||
backyard_grilling_product = /obj/item/reagent_containers/food/snacks/bakedpotato
|
||||
c = "steams as it is baked through."
|
||||
backyard_grilling_announcement = "steams as it is baked through."
|
||||
|
||||
/datum/seed/potato/New()
|
||||
..()
|
||||
|
||||
@@ -691,6 +691,12 @@
|
||||
reagent_state = SOLID
|
||||
color = "#e08702"
|
||||
|
||||
// Drakenip...
|
||||
/datum/reagent/spacespice/affect_animal(var/mob/living/simple_mob/animal/M, var/removed)
|
||||
..()
|
||||
if(istype(M, /mob/living/simple_mob/animal/sif/grafadreka))
|
||||
M.druggy = max(M.druggy, 15)
|
||||
|
||||
/datum/reagent/browniemix
|
||||
name = "Brownie Mix"
|
||||
id = "browniemix"
|
||||
|
||||
Reference in New Issue
Block a user