僵尸模式添加倒计时

This commit is contained in:
aozhiwei 2020-07-27 15:53:59 +08:00
parent 0a1ce78fd6
commit c72727da0c

View File

@ -1332,6 +1332,11 @@ void Room::AirDrop(int appear_time, int box_id)
box_id = spec_box_id;
}
}
if (GetRoomMode() == kZombieMode) {
for (auto& pair : accountid_hash_) {
pair.second->SendShowCountdown("距离物资箱抵达还有%d秒", appear_time / 1000);
}
}
if (thing_meta && thing_meta->i->type() == 2) {
a8::Vec2 dir = a8::Vec2::UP;
dir.Rotate(a8::RandAngle());