This commit is contained in:
aozhiwei 2023-06-26 11:50:12 +08:00
parent fd75ca2301
commit 885bc6eae0

View File

@ -348,7 +348,12 @@ void Room::ShuaAndroid()
int refresh_time = a8::RandEx(map_meta_->refresh_robot_min_time,
map_meta_->refresh_robot_max_time);
if (robot_num > 0 && refresh_time > 0) {
CreateAndroid(robot_num);
if (IsPvpRankModeRoom()) {
refresh_time = a8::RandEx(10, 20);
CreateAndroid(robot_num);
} else {
CreateAndroid(robot_num);
}
xtimer.SetTimeoutEx
(SERVER_FRAME_RATE * refresh_time,
[this] (int event, const a8::Args* args)