add VelocityModifier property to roll state

also nerf from 2x to 1.5x velocity
wip-inventory
John Montagu, the 4th Earl of Sandvich 2023-12-16 16:38:52 -08:00
parent 5ae49b2030
commit 4419bf89be
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
2 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public partial class Character : CharacterBody2D, IFaction
// TODO: make PlayerRollState a CharacterRollState instead
else if (state is State.Character.PlayerRollState rollState)
{
Velocity *= 2;
Velocity *= rollState.VelocityModifier;
//Velocity *= rollState.VelocityModifier;
}
}

View File

@ -10,6 +10,8 @@ public partial class PlayerRollState : PlayerState
private GpuParticles2D _particles;
public float VelocityModifier { get; set; } = 1.5f;
public PlayerRollState()
{
CanEnterWhileUsingItem = false;