Working on translation context

This commit is contained in:
2025-05-25 20:15:34 -05:00
parent 470fd62e2f
commit 44dd3b7aa6
8 changed files with 112 additions and 19 deletions

View File

@@ -25,3 +25,10 @@ func _enter_tree() -> void:
func _init() -> void:
_updateRecipes()
func getRecipe(recipeType:Recipe.Type) -> Recipe:
if RECIPE_MAP.has(recipeType):
return RECIPE_MAP[recipeType]
else:
assert(false, "Recipe type not found: " + Recipe.Type.find_key(recipeType))
return null