1
This commit is contained in:
parent
a5158fedff
commit
d871368f85
@ -451,6 +451,7 @@ void Bullet::Check(float distance)
|
|||||||
} else if (obstacle->meta->i->thing_type() == kObstacleStrengthenWall) {
|
} else if (obstacle->meta->i->thing_type() == kObstacleStrengthenWall) {
|
||||||
if (!strengthened_ && TestCollision(room, collider)) {
|
if (!strengthened_ && TestCollision(room, collider)) {
|
||||||
strengthened_ = true;
|
strengthened_ = true;
|
||||||
|
OnStrengthen(obstacle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -745,3 +746,8 @@ void Bullet::CalcDmg(Entity* entity,
|
|||||||
finaly_dmg = std::max(finaly_dmg, 0.0f);
|
finaly_dmg = std::max(finaly_dmg, 0.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Bullet::OnStrengthen(Obstacle* ob)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -67,6 +67,7 @@ protected:
|
|||||||
void Check(float distance);
|
void Check(float distance);
|
||||||
void AddGunBuff();
|
void AddGunBuff();
|
||||||
void OnKillTarget(Entity* target);
|
void OnKillTarget(Entity* target);
|
||||||
|
void OnStrengthen(Obstacle* ob);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CircleCollider* self_collider_ = nullptr;
|
CircleCollider* self_collider_ = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user