1
This commit is contained in:
parent
93bceb6095
commit
109aefcc31
@ -135,7 +135,9 @@ public:
|
||||
{
|
||||
MetaMgr::Instance()->gas_inactive_time = MetaMgr::Instance()->GetSysParamAsInt("gas_inactive_time");
|
||||
|
||||
MetaMgr::Instance()->newbie_gas_inactive_time = MetaMgr::Instance()->GetSysParamAsInt("newbie_gas_inactive_time", 10);
|
||||
MetaMgr::Instance()->newbie_gas_inactive_time = MetaMgr::Instance()->GetSysParamAsInt("newbie_gas_inactive_time", 5);
|
||||
MetaMgr::Instance()->midbrid_gas_inactive_time = MetaMgr::Instance()->GetSysParamAsInt("midbrid_gas_inactive_time", 15);
|
||||
MetaMgr::Instance()->common_gas_inactive_time = MetaMgr::Instance()->GetSysParamAsInt("common_gas_inactive_time", 15);
|
||||
MetaMgr::Instance()->newbie_born_point = MetaMgr::Instance()->GetSysParamAsString("newbie_born_point");
|
||||
{
|
||||
std::vector<std::string> strings;
|
||||
|
@ -47,7 +47,9 @@ class MetaMgr : public a8::Singleton<MetaMgr>
|
||||
MetaData::Robot* RandRobot(std::set<int>& refreshed_robot_set);
|
||||
|
||||
int gas_inactive_time = 10;
|
||||
int newbie_gas_inactive_time = 10;
|
||||
int newbie_gas_inactive_time = 5;
|
||||
int midbrid_gas_inactive_time = 15;
|
||||
int common_gas_inactive_time = 15;
|
||||
int jump_time = 10;
|
||||
float K = 100.0f;
|
||||
float kill_param = 0.0f;
|
||||
|
@ -1773,7 +1773,13 @@ ObstacleData* Room::GetPermanentObstacleData(int obstacle_uniid)
|
||||
long long Room::GetGasInactiveTime()
|
||||
{
|
||||
if (room_type_ == RT_NewBrid) {
|
||||
return MetaMgr::Instance()->newbie_gas_inactive_time;
|
||||
if (creator_game_times_ <= 0) {
|
||||
return MetaMgr::Instance()->newbie_gas_inactive_time;
|
||||
} else {
|
||||
return MetaMgr::Instance()->common_gas_inactive_time;
|
||||
}
|
||||
} else if (room_type_ == RT_MidBrid) {
|
||||
return MetaMgr::Instance()->midbrid_gas_inactive_time;
|
||||
} else {
|
||||
return MetaMgr::Instance()->gas_inactive_time;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user