mirror of
https://github.com/Justuser3310/ss14_chemistry_site.git
synced 2025-04-20 11:49:51 +00:00
Compare commits
No commits in common. "9f09fd67f4717bdb19fd437f12495e7093201ad1" and "2fa9b57ce3c20f7dd27f7e12081fdba48876cab3" have entirely different histories.
9f09fd67f4
...
2fa9b57ce3
@ -1,17 +0,0 @@
|
|||||||
from requests import get
|
|
||||||
from yaml import load, SafeLoader
|
|
||||||
|
|
||||||
def parse_yml(url = 'https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/Resources/Prototypes/Recipes/Reactions/medicine.yml'):
|
|
||||||
yml = load(get(url).content.decode('utf-8'), Loader=SafeLoader)
|
|
||||||
return yml
|
|
||||||
|
|
||||||
def parse_ftl(url = 'https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/Resources/Locale/ru-RU/reagents/meta/medicine.ftl'):
|
|
||||||
raw = get(url).content.decode('utf-8')
|
|
||||||
locales = {}
|
|
||||||
for i in raw.splitlines():
|
|
||||||
if 'name' in i:
|
|
||||||
splitted = i.split()
|
|
||||||
name = splitted[0][13:]
|
|
||||||
locale = splitted[2]
|
|
||||||
locales[name] = locale
|
|
||||||
return locales
|
|
@ -1,8 +0,0 @@
|
|||||||
class reag__:
|
|
||||||
def __init__(category = '-', comps, out):
|
|
||||||
# medicine
|
|
||||||
self.category = category
|
|
||||||
# {'инапровалин': 1, 'углерод': 1}
|
|
||||||
self.comps = comps
|
|
||||||
# 2
|
|
||||||
self.out = out
|
|
Loading…
Reference in New Issue
Block a user