add walls destroyed stat

This commit is contained in:
Vinzenz Schroeter 2024-04-19 13:34:56 +02:00
parent 0aac6f780b
commit 9cf4304845
4 changed files with 12 additions and 0 deletions

View file

@ -77,7 +77,11 @@ internal sealed class CollideBullets(
{
var offsetPixel = new PixelPosition(x, y);
if (options.Value.DestructibleWalls)
{
map.Current.DestroyWallAt(offsetPixel);
owner.Scores.WallsDestroyed++;
}
TryHitTankAt(offsetPixel.ToFloatPosition(), owner);
}
}