|
|
@ -17,15 +17,15 @@ def parse_ftl(url = 'https://raw.githubusercontent.com/SerbiaStrong-220/space-st
|
|
|
|
locales[name] = locale
|
|
|
|
locales[name] = locale
|
|
|
|
return locales
|
|
|
|
return locales
|
|
|
|
|
|
|
|
|
|
|
|
def load_recipe(yml = parse_yml()):
|
|
|
|
def load_recipes(url = 'https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/Resources/Prototypes/Recipes/Reactions/medicine.yml', category = '-'):
|
|
|
|
recipes = {}
|
|
|
|
yml = parse_yml(url)
|
|
|
|
for element in yml:
|
|
|
|
recipes = {}
|
|
|
|
category = "medicine"
|
|
|
|
for element in yml:
|
|
|
|
product = element["id"]
|
|
|
|
product = element["id"]
|
|
|
|
comps = {}
|
|
|
|
comps = {}
|
|
|
|
for elem in element["reactants"]:
|
|
|
|
for elem in element["reactants"]:
|
|
|
|
comps[elem] = element["reactants"][elem]["amount"]
|
|
|
|
comps[elem] = element["reactants"][elem]["amount"]
|
|
|
|
for id, value in element["products"].items():
|
|
|
|
for id, value in element["products"].items():
|
|
|
|
out = value
|
|
|
|
out = value
|
|
|
|
recipes[product] = reag__(category=category, comps=comps, out=out)
|
|
|
|
recipes[product] = reag__(category=category, comps=comps, out=out)
|
|
|
|
return recipes
|
|
|
|
return recipes
|
|
|
|