diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 522b67c..c716076 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2034,6 +2034,7 @@ void Human::FillSMGameOver(cs::SMGameOver& msg) p->set_account_id(account_id); p->set_kills(stats.kills); p->set_cup(stats.cup); + p->set_gold(stats.gold); p->set_dead_times(stats.dead_times); for (auto& pair : stats.extra_drop) { diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 8fe7f76..06f6205 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -855,7 +855,7 @@ void Room::UpdateGas() NotifyWxVoip(); RoomMgr::Instance()->ActiveRoom(room_uuid); battle_start_frameno_ = frameno; - battle_report_timer_ = xtimer.AddDeadLineTimerAndAttach(kSERVER_FRAME_RATE * MetaMgr::Instance()->game_duration, + battle_report_timer_ = xtimer.AddDeadLineTimerAndAttach(kSERVER_FRAME_RATE * 15, a8::XParams() .SetSender(this), [] (const a8::XParams& param) diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index ddc7c3c..0ea1039 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -539,6 +539,7 @@ message MFPlayerStats optional int32 kills = 5; //击杀敌人数 optional int32 dead_times = 6; //死亡次数 optional int32 cup = 7; //奖杯 + optional double gold = 9; //金币 repeated MFPair extra_drop = 12; //额外掉落,key:item_id value:数量(看广告) }