add VelocityModifier property to roll state
also nerf from 2x to 1.5x velocitywip-inventory
parent
5ae49b2030
commit
4419bf89be
|
@ -167,7 +167,7 @@ public partial class Character : CharacterBody2D, IFaction
|
||||||
// TODO: make PlayerRollState a CharacterRollState instead
|
// TODO: make PlayerRollState a CharacterRollState instead
|
||||||
else if (state is State.Character.PlayerRollState rollState)
|
else if (state is State.Character.PlayerRollState rollState)
|
||||||
{
|
{
|
||||||
Velocity *= 2;
|
Velocity *= rollState.VelocityModifier;
|
||||||
//Velocity *= rollState.VelocityModifier;
|
//Velocity *= rollState.VelocityModifier;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,8 @@ public partial class PlayerRollState : PlayerState
|
||||||
|
|
||||||
private GpuParticles2D _particles;
|
private GpuParticles2D _particles;
|
||||||
|
|
||||||
|
public float VelocityModifier { get; set; } = 1.5f;
|
||||||
|
|
||||||
public PlayerRollState()
|
public PlayerRollState()
|
||||||
{
|
{
|
||||||
CanEnterWhileUsingItem = false;
|
CanEnterWhileUsingItem = false;
|
||||||
|
|
Loading…
Reference in New Issue