Last commit. this was WIP

This commit is contained in:
ZKWolf 2024-09-05 16:59:29 +02:00
parent eceadc8181
commit 5fef8d6451

View File

@ -592,7 +592,6 @@ def progression_player_end_of_match():
CurrencyB = user_wallet["currency_blood_cells"]
CurrencyC = user_wallet["currency_ink_cells"]
wallet = []
for currency in data["earnedCurrencies"]:
if currency["currencyName"] == "CurrencyA":
wallet.append({"Currency": "CurrencyA", "Amount": currency["amount"]})
@ -801,7 +800,7 @@ def progression_player_end_of_match():
# }
# }
# ]
return jsonify({"Player": {"Success": True}})
return jsonify({
"Player": {
"InitialExperienceProgressions": [
@ -821,10 +820,21 @@ def progression_player_end_of_match():
}
],
"TotalEarnedCurrency": wallet,
"Wallet": wallet,
"Events": [
]
"Wallet": [
{
"Currency": "CurrencyA",
"Amount": CurrencyA
},
{
"Currency": "CurrencyB",
"Amount": CurrencyB
},
{
"Currency": "CurrencyC",
"Amount": CurrencyC
}
],
"Events": []
}
})
except TimeoutError: