This commit is contained in:
aozhiwei 2022-08-13 07:01:53 +08:00
parent a5158fedff
commit d871368f85
2 changed files with 7 additions and 0 deletions

View File

@ -451,6 +451,7 @@ void Bullet::Check(float distance)
} else if (obstacle->meta->i->thing_type() == kObstacleStrengthenWall) {
if (!strengthened_ && TestCollision(room, collider)) {
strengthened_ = true;
OnStrengthen(obstacle);
}
}
}
@ -745,3 +746,8 @@ void Bullet::CalcDmg(Entity* entity,
finaly_dmg = std::max(finaly_dmg, 0.0f);
}
}
void Bullet::OnStrengthen(Obstacle* ob)
{
}

View File

@ -67,6 +67,7 @@ protected:
void Check(float distance);
void AddGunBuff();
void OnKillTarget(Entity* target);
void OnStrengthen(Obstacle* ob);
private:
CircleCollider* self_collider_ = nullptr;