fix some more boss names in /spawn command

This commit is contained in:
Luke Robles 2025-01-22 14:54:48 -08:00
parent 0f8ded4df7
commit b6bb9691dc

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 = {}