Is there a way to look for a specific variable from a path?
I would like to avoid having to go back and stick a name variable on for each and every recipe in a long list of recipes. I want it to find the name of the food item from the file path it picks up
example:
// obviously this not my actual code it's just an example
/obj/food/burger
name = "Burger"
/datum/recipe/burger
result = /obj/food/burger
/obj/item/recipe_book
var/foodname = choice_recipe.result
reader << "[foodname]" // this ends up giving the reader the file path which is not what i want
reader << "[foodname.name]" // this of course doesn't work