From 84dc871ad5bf3c3db055d361b3b732b47906cdbf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 7 Apr 2022 08:33:18 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 1866bf53..b442e0a1 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -94,7 +94,9 @@ void PlayerStats::SetHeroWeaponLv(int hero_id, int weapon_lv) void PlayerStats::CalcReward(int ranked, int kills) { - + int gold = MetaMgr::Instance()->GetRankRewardParam(ranked); + gold += MetaMgr::Instance()->GetKillRewardParam(kills); + int add_gold = std::floor(gold / 3); } Human::Human():Creature()