1
This commit is contained in:
parent
2e77222302
commit
973984bb7b
@ -285,4 +285,9 @@ namespace mt
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::tuple<int, int, int, int>* Param::GetRankModeConf(int elo)
|
||||||
|
{
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -125,6 +125,7 @@ namespace mt
|
|||||||
int revive_count = 1;
|
int revive_count = 1;
|
||||||
int pvp_revive_time = 10;
|
int pvp_revive_time = 10;
|
||||||
|
|
||||||
|
std::vector<std::tuple<int, int, int, int>> rank_mode_confs;
|
||||||
};
|
};
|
||||||
static void StaticPostInit();
|
static void StaticPostInit();
|
||||||
static const S& s() { return s_; };
|
static const S& s() { return s_; };
|
||||||
@ -133,6 +134,7 @@ namespace mt
|
|||||||
static double GetFloatParam(const std::string& param_name, double def_val = 0.0f);
|
static double GetFloatParam(const std::string& param_name, double def_val = 0.0f);
|
||||||
static std::string GetStringParam(const std::string& param_name, const char* def_val = "");
|
static std::string GetStringParam(const std::string& param_name, const char* def_val = "");
|
||||||
static int GetStarNum(int rank);
|
static int GetStarNum(int rank);
|
||||||
|
static std::tuple<int, int, int, int>* GetRankModeConf(int elo);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static S s_;
|
static S s_;
|
||||||
|
@ -38,6 +38,9 @@ const int HUM_NUM_DOWN_LIMIT = 2500;
|
|||||||
|
|
||||||
static RoomType_e GetHumanRoomType(const std::shared_ptr<BattleDataContext> netdata)
|
static RoomType_e GetHumanRoomType(const std::shared_ptr<BattleDataContext> netdata)
|
||||||
{
|
{
|
||||||
|
if (netdata->join_msg->room_mode() == kPvpRankMode) {
|
||||||
|
auto rank_mode_conf = mt::Param::GetRankModeConf(netdata->GetElo());
|
||||||
|
} else {
|
||||||
if (netdata->GetBattleTimes() < mt::Param::s().newbie_room_battle_times) {
|
if (netdata->GetBattleTimes() < mt::Param::s().newbie_room_battle_times) {
|
||||||
return RoomType_OldBrid1;
|
return RoomType_OldBrid1;
|
||||||
}
|
}
|
||||||
@ -46,6 +49,7 @@ static RoomType_e GetHumanRoomType(const std::shared_ptr<BattleDataContext> netd
|
|||||||
}
|
}
|
||||||
return RoomType_OldBrid3;
|
return RoomType_OldBrid3;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void RoomMgr::Init()
|
void RoomMgr::Init()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user