mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-23 19:19:53 +02:00
get_map(): renamed, get_tank_name(): add back
This commit is contained in:
1 parent
0f02caa425
commit
973d6c912f
2 files changed
+11
-1
No files matched your search
@@ -885,6 +885,16 @@ class WG:
|
||||
return cls.maps.keys()
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_tank_name(cls, tank_str: str) -> str:
|
||||
"""Return tank name from short tank string in replays"""
|
||||
try:
|
||||
return cls.tanks["userStr"][tank_str]
|
||||
except:
|
||||
error('Tank ' + tank_str + ' not found')
|
||||
return tank_str
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_tank_user_strs(cls) -> str:
|
||||
return cls.tanks["userStr"].keys()
|
||||
|
||||
Reference in new issue
Block a user