From c983a06384d6ad050933dc7ce62fb492315b666f Mon Sep 17 00:00:00 2001 From: empdarkness <21046314+empdarkness@users.noreply.github.com> Date: Sun, 12 Mar 2023 13:58:34 -0400 Subject: [PATCH] Fixed dark sector issue. Updated the dark sector portion to support a more recent version of the solNodes.json file. --- arbitration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arbitration.py b/arbitration.py index 105b886..e219361 100644 --- a/arbitration.py +++ b/arbitration.py @@ -48,7 +48,10 @@ def request_arby(): ### get updated arbitration data CurrentArbi['solnodedata']['node'] = solnodes[CurrentArbi['solnode']]['node'] CurrentArbi['solnodedata']['planet'] = solnodes[CurrentArbi['solnode']]['planet'] CurrentArbi['solnodedata']['dark_sector'] = solnodes[CurrentArbi['solnode']]['dark_sector'] + if CurrentArbi['solnodedata']['dark_sector']: + CurrentArbi['solnodedata']['dark_sector_bonus'] = solnodes[CurrentArbi['solnode']]['dark_sector_bonus'] CurrentArbi['solnodedata']['tileset'] = solnodes[CurrentArbi['solnode']]['tileset'] + except KeyError: print(CurrentArbi) if 'bonus' in solnodes[CurrentArbi['solnode']]: @@ -102,7 +105,7 @@ async def arby_post_task(): # ~~ Dark sector bonus x = '' if CurrentArbi['solnodedata']['dark_sector'] == True: - x = f"Dark Sector (+{CurrentArbi['solnodedata']['bonus']})" + x = f"Dark Sector (+{CurrentArbi['solnodedata']['dark_sector_bonus']['resource']}%)" # ~~ Node mentions arb = { "content": content,