1
This commit is contained in:
parent
dd18e41cb6
commit
b37c8df72e
@ -191,6 +191,9 @@ public:
|
|||||||
MetaMgr::Instance()->newbie_fill_interval = MetaMgr::Instance()->GetSysParamAsInt("newbie_fill_interval", 5000);
|
MetaMgr::Instance()->newbie_fill_interval = MetaMgr::Instance()->GetSysParamAsInt("newbie_fill_interval", 5000);
|
||||||
MetaMgr::Instance()->other_fill_interval = MetaMgr::Instance()->GetSysParamAsInt("other_fill_interval", 2000);
|
MetaMgr::Instance()->other_fill_interval = MetaMgr::Instance()->GetSysParamAsInt("other_fill_interval", 2000);
|
||||||
MetaMgr::Instance()->map_cell_width = MetaMgr::Instance()->GetSysParamAsInt("map_cell_width", 64 * 8);
|
MetaMgr::Instance()->map_cell_width = MetaMgr::Instance()->GetSysParamAsInt("map_cell_width", 64 * 8);
|
||||||
|
METAMGR_READ(zbmode_gas_inactive_time, 25);
|
||||||
|
METAMGR_READ(zbmode_game_duration, 300);
|
||||||
|
METAMGR_READ(zbmode_player_num, 15);
|
||||||
{
|
{
|
||||||
METAMGR_READ(newbie_first_robot_ammo, 3);
|
METAMGR_READ(newbie_first_robot_ammo, 3);
|
||||||
METAMGR_READ(newbie_first_robot_appeartime, 8);
|
METAMGR_READ(newbie_first_robot_appeartime, 8);
|
||||||
|
@ -1796,6 +1796,9 @@ ObstacleData* Room::GetPermanentObstacleData(int obstacle_uniid)
|
|||||||
|
|
||||||
long long Room::GetGasInactiveTime()
|
long long Room::GetGasInactiveTime()
|
||||||
{
|
{
|
||||||
|
if (room_mode_ == kZombieMode) {
|
||||||
|
return MetaMgr::Instance()->zbmode_gas_inactive_time;
|
||||||
|
} else {
|
||||||
if (room_type_ == RT_NewBrid) {
|
if (room_type_ == RT_NewBrid) {
|
||||||
if (creator_game_times_ <= 0) {
|
if (creator_game_times_ <= 0) {
|
||||||
return MetaMgr::Instance()->newbie_gas_inactive_time;
|
return MetaMgr::Instance()->newbie_gas_inactive_time;
|
||||||
@ -1807,6 +1810,7 @@ long long Room::GetGasInactiveTime()
|
|||||||
} else {
|
} else {
|
||||||
return MetaMgr::Instance()->gas_inactive_time;
|
return MetaMgr::Instance()->gas_inactive_time;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Room::EnableHuman(Human* target)
|
void Room::EnableHuman(Human* target)
|
||||||
@ -2903,11 +2907,15 @@ bool Room::IsMiniRoom()
|
|||||||
|
|
||||||
size_t Room::GetRoomMaxPlayerNum()
|
size_t Room::GetRoomMaxPlayerNum()
|
||||||
{
|
{
|
||||||
|
if (room_mode_ == kZombieMode) {
|
||||||
|
return MetaMgr::Instance()->zbmode_player_num;
|
||||||
|
} else {
|
||||||
if (IsMiniRoom()) {
|
if (IsMiniRoom()) {
|
||||||
return MINI_ROOM_MAX_PLAYER_NUM;
|
return MINI_ROOM_MAX_PLAYER_NUM;
|
||||||
} else {
|
} else {
|
||||||
return NORMAL_ROOM_MAX_PLAYER_NUM;
|
return NORMAL_ROOM_MAX_PLAYER_NUM;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Room::InitAndroidAI()
|
void Room::InitAndroidAI()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user