New Modifier

This commit is contained in:
Marco 2025-02-09 09:37:43 +01:00
commit 019f7d7ca0
18 changed files with 423 additions and 45 deletions

View file

@ -7,7 +7,7 @@ public partial class DecreasingSpeedModifier : Resource, IBulletModifier
{
[Export] private float decreaseRate = 0.1f;
public float ModifySpeed(float baseSpeed, int bulletIndex)
public float ModifySpeed(float baseSpeed, int bulletIndex, int totalBullets)
{
return Mathf.Max(0, baseSpeed - (decreaseRate * bulletIndex));
}