diff --git a/s3s.py b/s3s.py index 0689539..18b527b 100755 --- a/s3s.py +++ b/s3s.py @@ -11,7 +11,7 @@ import msgpack from packaging import version import iksm, utils -A_VERSION = "0.5.5" +A_VERSION = "0.5.6" DEBUG = False @@ -484,6 +484,15 @@ def set_scoreboard(battle, tricolor=False): p_dict["inked"] = player["paint"] p_dict["species"] = player["species"].lower() p_dict["rank_in_team"] = i+1 + + if player.get("crown"): + p_dict["crown_type"] = "x" + if "DRAGON" in player.get("festDragonCert", ""): + if player["festDragonCert"] == "DRAGON": + p_dict["crown_type"] = "100x" + elif player["festDragonCert"] == "DOUBLE_DRAGON": + p_dict["crown_type"] = "333x" + if "result" in player and player["result"] is not None: p_dict["kill_or_assist"] = player["result"]["kill"] p_dict["assist"] = player["result"]["assist"]