1
This commit is contained in:
parent
c4e742f90d
commit
a39bf98d56
@ -1835,8 +1835,12 @@ void Room::ProcShuaAndroid(int shua_time, int shua_num)
|
|||||||
GetCanEnableAndroids(humans, real_shua_num);
|
GetCanEnableAndroids(humans, real_shua_num);
|
||||||
for (auto& hum : humans) {
|
for (auto& hum : humans) {
|
||||||
a8::Vec2 pos = target->GetPos();
|
a8::Vec2 pos = target->GetPos();
|
||||||
a8::Vec2 dir = a8::Vec2::UP;
|
a8::Vec2 dir = target->move_dir;
|
||||||
dir.Rotate(a8::RandAngle());
|
if (rand() % 100 < 80) {
|
||||||
|
dir.Rotate(a8::RandAngle() / 2.0f);
|
||||||
|
} else {
|
||||||
|
dir.Rotate(a8::RandAngle());
|
||||||
|
}
|
||||||
pos = pos + dir * SHUA_RANGE;
|
pos = pos + dir * SHUA_RANGE;
|
||||||
if (OverBorder(pos, hum->GetRadius())) {
|
if (OverBorder(pos, hum->GetRadius())) {
|
||||||
pos.x = target->GetPos().x;
|
pos.x = target->GetPos().x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user