From: CMDR furrycat Date: Mon, 16 Nov 2020 16:37:33 +0000 (+0100) Subject: Added more faction state names. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=665c158973c99a67baa87b78d502b14a5ec0dcdd;p=furrycat%2Fcatbot.git Added more faction state names. --- diff --git a/eddb.py b/eddb.py index 28e3f34..4a06252 100644 --- a/eddb.py +++ b/eddb.py @@ -22,6 +22,13 @@ eddb_states = { "1000": "Civil Liberty", "1001": "Incursion", "1002": "Pirate Attack", + "1003": "Infrastructure Failure", + "1004": "Public Holiday", + "1005": "Terrorism", + "1006": "Drought", + "1007": "Natural Disaster", + "1008": "Blight", + "1009": "Infested", } def state_name(id): @@ -32,6 +39,7 @@ def get_state_id(name): for state_id, state_name in eddb_states.items(): if state_name.lower().replace(' ', '') == stripped: return int(state_id) + logging.warning("Don't have an ID for state: {}".format(name)) return None def eddb_query(root, params, expand = None):