Mass driver bullets are destroyed like the blocks with items (#10969)

* Mass driver bullets explosions like the blocks

* Better code style

---------

Co-authored-by: TempUser <temp@mail>
This commit is contained in:
Agzam4
2025-06-27 01:51:16 +03:00
committed by GitHub
parent 34032f63a5
commit b7cb080f36
2 changed files with 15 additions and 1 deletions

View File

@@ -299,7 +299,7 @@ public class MassDriver extends Block{
bullet.create(this, team,
x + Angles.trnsx(angle, translation), y + Angles.trnsy(angle, translation),
angle, -1f, bulletSpeed, bulletLifetime, data);
angle, totalUsed/2f, bulletSpeed, bulletLifetime, data);
shootEffect.at(x + Angles.trnsx(angle, translation), y + Angles.trnsy(angle, translation), angle);
smokeEffect.at(x + Angles.trnsx(angle, translation), y + Angles.trnsy(angle, translation), angle);