1
This commit is contained in:
parent
b2ac5a91a7
commit
5672904677
@ -43,6 +43,7 @@ namespace mt
|
||||
s_.wait_cloud_time = GetIntParam("wait_cloud_time", 10);
|
||||
s_.newbie_room_battle_times = GetIntParam("newbie_room_battle_times", 0);
|
||||
s_.mid_room_max_rank = GetIntParam("mid_room_max_rank", 0);
|
||||
s_.mid_room_max_rank = GetIntParam("mid_room_max_level", 10);
|
||||
#if 1
|
||||
s_.match_lock_time++;
|
||||
#endif
|
||||
@ -263,6 +264,8 @@ namespace mt
|
||||
p->room_type = RoomType_Rank1;
|
||||
p->min_elo = 150;
|
||||
p->max_elo = 650;
|
||||
p->min_level = 1;
|
||||
p->max_level = 4;
|
||||
p->hero_min_lv = 1;
|
||||
p->hero_max_lv = 4;
|
||||
s_.rank_mode_confs.push_back(p);
|
||||
@ -273,6 +276,8 @@ namespace mt
|
||||
p->room_type = RoomType_Rank2;
|
||||
p->min_elo = 650;
|
||||
p->max_elo = 1150;
|
||||
p->min_level = 5;
|
||||
p->max_level = 9;
|
||||
p->hero_min_lv = 5;
|
||||
p->hero_max_lv = 9;
|
||||
s_.rank_mode_confs.push_back(p);
|
||||
@ -283,6 +288,8 @@ namespace mt
|
||||
p->room_type = RoomType_Rank3;
|
||||
p->min_elo = 1150;
|
||||
p->max_elo = 1650;
|
||||
p->min_level = 10;
|
||||
p->max_level = 14;
|
||||
p->hero_min_lv = 10;
|
||||
p->hero_max_lv = 14;
|
||||
s_.rank_mode_confs.push_back(p);
|
||||
@ -293,6 +300,8 @@ namespace mt
|
||||
p->room_type = RoomType_MasterRank;
|
||||
p->min_elo = 1650;
|
||||
p->max_elo = 165000000;
|
||||
p->min_level = 15;
|
||||
p->max_level = 15;
|
||||
p->hero_min_lv = 15;
|
||||
p->hero_max_lv = 15;
|
||||
s_.rank_mode_confs.push_back(p);
|
||||
|
@ -126,6 +126,7 @@ namespace mt
|
||||
|
||||
int newbie_room_battle_times = 0;
|
||||
int mid_room_max_rank = 0;
|
||||
int mid_room_max_level = 10;
|
||||
|
||||
int rank_mode_wait_time = 0;
|
||||
int rank_mode_min_player = 0;
|
||||
|
@ -41,19 +41,36 @@ static const int HUM_NUM_DOWN_LIMIT = 2500;
|
||||
|
||||
static RoomType_e GetHumanRoomType(const std::shared_ptr<BattleDataContext> netdata)
|
||||
{
|
||||
long long hero_uniid = 0;
|
||||
int hero_lv = 0;
|
||||
int quality = 0;
|
||||
netdata->GetHeroLvQuality(hero_uniid, hero_lv, quality);
|
||||
if (netdata->join_msg->room_mode() == kPvpRankMode) {
|
||||
#if 1
|
||||
auto rank_mode_conf = mt::Param::GetRankModeConfByElo(hero_lv);
|
||||
if (!rank_mode_conf) {
|
||||
abort();
|
||||
}
|
||||
#else
|
||||
auto rank_mode_conf = mt::Param::GetRankModeConfByElo(netdata->GetElo());
|
||||
if (!rank_mode_conf) {
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
return rank_mode_conf->room_type;
|
||||
} else {
|
||||
if (netdata->GetBattleTimes() < mt::Param::s().newbie_room_battle_times) {
|
||||
return RoomType_OldBrid1;
|
||||
}
|
||||
#if 1
|
||||
if (hero_lv < mt::Param::s().mid_room_max_level) {
|
||||
return RoomType_OldBrid2;
|
||||
}
|
||||
#else
|
||||
if (netdata->GetRank() < mt::Param::s().mid_room_max_rank) {
|
||||
return RoomType_OldBrid2;
|
||||
}
|
||||
#endif
|
||||
return RoomType_OldBrid3;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user