Fixed: item names

This commit is contained in:
Wiktor Mazur
2019-12-19 15:20:31 +01:00
parent 483a681cec
commit 598f8acd6e
4 changed files with 7292 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
import json
from . import assets
_mappings = None
def map_name(name):
global _mappings
if not _mappings:
with open(assets.path('localization.json')) as m:
_mappings = json.loads(m.read())
return _mappings[name] if name in _mappings else name