From 49553aeb0c90446e3dd88da0f40adb50e1975e4e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 28 May 2022 13:16:48 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 70a8a5b7..208bfeb9 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -1958,9 +1958,25 @@ void Human::GenBattleReportData(a8::MutableXObject* params) params->SetVal("rank_score", stats.rank_score); { { - double ranked_topx = 0; + double ranked_topx = rank / 40; params->SetVal("ranked_topx", ranked_topx); } + { + double kills_topx = rank / 40; + params->SetVal("kills_topx", kills_topx); + } + { + double hero_topx = rank / 40; + params->SetVal("hero_topx", hero_topx); + } + { + double weapon_topx = rank / 40; + params->SetVal("weapon_topx", weapon_topx); + } + { + double survival_topx = rank / 40; + params->SetVal("survival_topx", survival_topx); + } } }