From 4419bf89be5c5858f73c52f4e38b42d38a7e1ffd Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Sat, 16 Dec 2023 16:38:52 -0800 Subject: [PATCH] add VelocityModifier property to roll state also nerf from 2x to 1.5x velocity --- Characters/Character.cs | 2 +- State/Character/PlayerRollState.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Characters/Character.cs b/Characters/Character.cs index 2f19b95..52a0285 100644 --- a/Characters/Character.cs +++ b/Characters/Character.cs @@ -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; } } diff --git a/State/Character/PlayerRollState.cs b/State/Character/PlayerRollState.cs index ccb6e93..335b536 100644 --- a/State/Character/PlayerRollState.cs +++ b/State/Character/PlayerRollState.cs @@ -10,6 +10,8 @@ public partial class PlayerRollState : PlayerState private GpuParticles2D _particles; + public float VelocityModifier { get; set; } = 1.5f; + public PlayerRollState() { CanEnterWhileUsingItem = false;