1
This commit is contained in:
parent
4c934a4a9e
commit
e2229a9084
@ -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) {
|
||||
|
@ -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)
|
||||
|
@ -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:数量(看广告)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user