mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-10 04:12:15 +03:00
add odyssey ranks to status page
This commit is contained in:
parent
109f964fc3
commit
626fb0cb87
33
stats.py
33
stats.py
@ -59,6 +59,8 @@ def status(data: Dict[str, Any]) -> List[List[str]]:
|
|||||||
(_('Combat'), 'combat'), # LANG: Ranking
|
(_('Combat'), 'combat'), # LANG: Ranking
|
||||||
(_('Trade'), 'trade'), # LANG: Ranking
|
(_('Trade'), 'trade'), # LANG: Ranking
|
||||||
(_('Explorer'), 'explore'), # LANG: Ranking
|
(_('Explorer'), 'explore'), # LANG: Ranking
|
||||||
|
(_('Mercenary'), 'mercenary'), # LANG: Ranking
|
||||||
|
(_('Exobiologist'), 'exobiologist'), # LANG: Ranking
|
||||||
(_('CQC'), 'cqc'), # LANG: Ranking
|
(_('CQC'), 'cqc'), # LANG: Ranking
|
||||||
(_('Federation'), 'federation'), # LANG: Ranking
|
(_('Federation'), 'federation'), # LANG: Ranking
|
||||||
(_('Empire'), 'empire'), # LANG: Ranking
|
(_('Empire'), 'empire'), # LANG: Ranking
|
||||||
@ -102,6 +104,28 @@ def status(data: Dict[str, Any]) -> List[List[str]]:
|
|||||||
_('Pioneer'), # LANG: Explorer rank
|
_('Pioneer'), # LANG: Explorer rank
|
||||||
_('Elite') # LANG: Top rank
|
_('Elite') # LANG: Top rank
|
||||||
],
|
],
|
||||||
|
'mercenary': [
|
||||||
|
_('Defenceless'), # LANG: Mercenary rank
|
||||||
|
_('Mostly Defenceless'), # LANG: Mercenary rank
|
||||||
|
_('Rookie'), # LANG: Mercenary rank
|
||||||
|
_('Soldier'), # LANG: Mercenary rank
|
||||||
|
_('Gunslinger'), # LANG: Mercenary rank
|
||||||
|
_('Warrior'), # LANG: Mercenary rank
|
||||||
|
_('Gunslinger'), # LANG: Mercenary rank
|
||||||
|
_('Deadeye'), # LANG: Mercenary rank
|
||||||
|
_('Elite'), # LANG: Top rank
|
||||||
|
],
|
||||||
|
'exobiologist': [
|
||||||
|
_('Directionless'), # LANG: Exobiologist rank
|
||||||
|
_('Mostly Directionless'), # LANG: Exobiologist rank
|
||||||
|
_('Compiler'), # LANG: Exobiologist rank
|
||||||
|
_('Collector'), # LANG: Exobiologist rank
|
||||||
|
_('Cataloguer'), # LANG: Exobiologist rank
|
||||||
|
_('Taxonomist'), # LANG: Exobiologist rank
|
||||||
|
_('Ecologist'), # LANG: Exobiologist rank
|
||||||
|
_('Geneticist'), # LANG: Exobiologist rank
|
||||||
|
_('Elite'), # LANG: Top rank
|
||||||
|
],
|
||||||
'cqc': [
|
'cqc': [
|
||||||
_('Helpless'), # LANG: CQC rank
|
_('Helpless'), # LANG: CQC rank
|
||||||
_('Mostly Helpless'), # LANG: CQC rank
|
_('Mostly Helpless'), # LANG: CQC rank
|
||||||
@ -167,6 +191,7 @@ def status(data: Dict[str, Any]) -> List[List[str]]:
|
|||||||
for title, thing in RANKS:
|
for title, thing in RANKS:
|
||||||
rank = ranks.get(thing)
|
rank = ranks.get(thing)
|
||||||
names = RANK_NAMES[thing]
|
names = RANK_NAMES[thing]
|
||||||
|
# TODO: handle Elite I-V here.
|
||||||
if isinstance(rank, int):
|
if isinstance(rank, int):
|
||||||
res.append([title, names[rank] if rank < len(names) else f'Rank {rank}'])
|
res.append([title, names[rank] if rank < len(names) else f'Rank {rank}'])
|
||||||
|
|
||||||
@ -357,7 +382,13 @@ class StatsResults(tk.Toplevel):
|
|||||||
# assumes things two and three are money
|
# assumes things two and three are money
|
||||||
self.addpagerow(page, [thing[0], self.credits(int(thing[1]))], with_copy=True)
|
self.addpagerow(page, [thing[0], self.credits(int(thing[1]))], with_copy=True)
|
||||||
|
|
||||||
for thing in stats[3:]:
|
# TODO: Headers, and a bit saner of some splitting up of things here
|
||||||
|
self.addpagespacer(page)
|
||||||
|
for thing in stats[3:9]:
|
||||||
|
self.addpagerow(page, thing, with_copy=True)
|
||||||
|
|
||||||
|
self.addpagespacer(page)
|
||||||
|
for thing in stats[9:]:
|
||||||
self.addpagerow(page, thing, with_copy=True)
|
self.addpagerow(page, thing, with_copy=True)
|
||||||
|
|
||||||
ttk.Frame(page).grid(pady=5) # bottom spacer
|
ttk.Frame(page).grid(pady=5) # bottom spacer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user