Shootpattern allow replacing per bullet (ammo type support) (#11402)

This commit is contained in:
EggleEgg
2025-11-30 18:04:44 +01:00
committed by GitHub
parent da6aecf695
commit a0fe9e8415
2 changed files with 6 additions and 1 deletions

View File

@@ -705,7 +705,9 @@ public class Turret extends ReloadTurret{
type.chargeEffect.at(bulletX, bulletY, rotation);
}
shoot.shoot(barrelCounter, (xOffset, yOffset, angle, delay, mover) -> {
ShootPattern pattern = type.shootPattern != null ? type.shootPattern : shoot;
pattern.shoot(barrelCounter, (xOffset, yOffset, angle, delay, mover) -> {
queuedBullets++;
int barrel = barrelCounter;