4.空袭,挂服务器

This commit is contained in:
aozhiwei 2021-06-25 16:57:13 +08:00
parent 31c1c73ec7
commit 62b560e3bf

View File

@ -183,6 +183,7 @@ void RoomObstacle::SpecExplosion()
bomb_born_offset.Rotate(a8::RandAngle()); bomb_born_offset.Rotate(a8::RandAngle());
bomb_born_offset = bomb_born_offset * a8::RandEx(1, std::max(2, meta->i->explosion_float())); bomb_born_offset = bomb_born_offset * a8::RandEx(1, std::max(2, meta->i->explosion_float()));
a8::Vec2 bomb_pos = GetPos() + bomb_born_offset; a8::Vec2 bomb_pos = GetPos() + bomb_born_offset;
if (room->grid_service->CanAdd(bomb_pos.x, bomb_pos.y)) {
Explosion explosion; Explosion explosion;
explosion.IndifferenceAttack( explosion.IndifferenceAttack(
room, room,
@ -192,6 +193,7 @@ void RoomObstacle::SpecExplosion()
meta->i->damage() meta->i->damage()
); );
} }
}
if (explosion_times_ >= meta->i->explosion_times()) { if (explosion_times_ >= meta->i->explosion_times()) {
room->xtimer.DeleteTimer(room->xtimer.GetRunningTimer()); room->xtimer.DeleteTimer(room->xtimer.GetRunningTimer());
Die(room); Die(room);