mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Fixes the cooking codex searching and some duplicate entry shenanigans (#22855)
Cargo orders would have trouble clearing the list of orders shown without reloading the ui, due to a lack of unique ID if there was several of the same item. The same applied to the cooking codex. This is fixed now. This also fixes the cooking codex search.
This commit is contained in:
@@ -34,6 +34,9 @@ SUBSYSTEM_DEF(codex)
|
||||
var/singleton/recipe/recipe = GET_SINGLETON(reaction_path)
|
||||
var/list/cookingRecipeData = list()
|
||||
|
||||
// ID for TGUI to use
|
||||
cookingRecipeData["id"] = "[reaction_path]"
|
||||
|
||||
// result
|
||||
var/obj/item/recipe_result = recipe.result
|
||||
cookingRecipeData["result"] = initial(recipe_result.name)
|
||||
@@ -74,6 +77,8 @@ SUBSYSTEM_DEF(codex)
|
||||
cookingRecipeData["ingredients"] += "[reagent.name] coating"
|
||||
|
||||
// kitchen appliance
|
||||
cookingRecipeData["appliances"] = ""
|
||||
|
||||
if(recipe.appliance)
|
||||
cookingRecipeData["appliances"] = recipe.get_appliance_names()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user