mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
New Modifier
This commit is contained in:
parent
50c111ee28
commit
019f7d7ca0
18 changed files with 423 additions and 45 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue