添加新手判断规则
This commit is contained in:
parent
5d161ae4af
commit
6e797f956a
@ -17,7 +17,7 @@
|
||||
#include "framework/cpp/httpclientpool.h"
|
||||
#include "framework/cpp/utils.h"
|
||||
|
||||
const int ROOM_NUM_DOWN_LIMIT = 20;
|
||||
const int ROOM_NUM_DOWN_LIMIT = 5;
|
||||
const int ROOM_NUM_UP_LIMIT = 40;
|
||||
const int HUM_NUM_DOWN_LIMIT = 1000;
|
||||
|
||||
@ -28,6 +28,13 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg)
|
||||
if (tmp_strings.size() <= 3) {
|
||||
return RT_NewBrid;
|
||||
}
|
||||
//游戏次数,吃鸡数,击杀数
|
||||
int game_times = a8::XValue(tmp_strings[0]);
|
||||
int win_times = a8::XValue(tmp_strings[1]);
|
||||
int kill_times = a8::XValue(tmp_strings[2]);
|
||||
if (game_times <= MetaMgr::Instance()->newbie_game_times) {
|
||||
return RT_NewBrid;
|
||||
}
|
||||
return RT_OldBrid;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user