fix some more boss names in /spawn command
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Successful in 3s
Build and push / Build-and-Push-Docker (push) Successful in 2m30s
Build and push / sync-argocd-app (push) Successful in 3s
Build and push / post-status-to-discord (push) Successful in 2s

This commit is contained in:
Luke Robles 2025-01-22 14:54:48 -08:00
parent 17201633ca
commit f0ad6c2c4f

View File

@ -51,10 +51,13 @@ def get_tarkov_boss_info():
"USEC", "USEC",
] ]
response = query_tarkov_api(query)["maps"] response = query_tarkov_api(query)["maps"]
corrections = {"Knight": "The Goons", "Cultist Priest": "Cultists"}
for map_data in response: for map_data in response:
for boss in map_data["bosses"]: for boss in map_data["bosses"]:
if boss["boss"]["name"] == "Knight": if boss["boss"]["name"] in corrections:
boss["boss"]["name"] = "The Goons" boss["boss"]["name"] = corrections[boss["boss"]["name"]]
# Wasteful, but make a new dict to hold the info we care about # Wasteful, but make a new dict to hold the info we care about
levels = {} levels = {}