using Godot; namespace Cirno.Scripts.Resources; [GlobalClass] public partial class DecreasingSpeedModifier : Resource, IBulletModifier { [Export] private float decreaseRate = 0.1f; public float ModifySpeed(float baseSpeed, int bulletIndex, int totalBullets) { return Mathf.Max(0, baseSpeed - (decreaseRate * bulletIndex)); } }