Re add the missing gameplay notifications

This commit is contained in:
David Kalatzis
2023-05-05 13:51:37 +03:00
parent 45fb64f975
commit 2ff333b1c7
8 changed files with 49 additions and 26 deletions

View File

@@ -21,6 +21,9 @@ public class ArcanaState : State
player.attackFrames = DemonicsAnimator.GetMaxAnimationFrames(player.playerStats._animation, player.animation);
player.velocity = new DemonicsVector2(player.attackNetwork.travelDistance.x * (DemonicsFloat)player.flip, (DemonicsFloat)player.attackNetwork.travelDistance.y);
player.InitializeProjectile(player.attackNetwork.moveName, player.attackNetwork, player.attackNetwork.projectileSpeed, player.attackNetwork.projectilePriority, player.attackNetwork.projectileDestroyOnHit);
player.invincible = player.player.PlayerAnimator.GetInvincible(player.animation, player.animationFrames);
if (player.invincible)
player.player.PlayerUI.DisplayNotification(NotificationTypeEnum.Reversal);
UpdateFramedata(player);
return;
}
@@ -35,6 +38,7 @@ public class ArcanaState : State
player.attackFrames--;
}
player.invincible = player.player.PlayerAnimator.GetInvincible(player.animation, player.animationFrames);
UpdateFramedata(player);
ToIdleState(player);
@@ -120,6 +124,7 @@ public class ArcanaState : State
}
else
{
player.player.PlayerUI.DisplayNotification(NotificationTypeEnum.Punish);
if (player.attackHurtNetwork.hardKnockdown)
EnterState(player, "Airborne");
else

View File

@@ -257,7 +257,7 @@ public class AttackState : State
player.otherPlayer.pushbackDuration = player.attackHurtNetwork.knockbackDuration;
}
player.player.PlayerUI.DisplayNotification(NotificationTypeEnum.Punish);
if (player.attackHurtNetwork.hardKnockdown)
{
EnterState(player, "Airborne");

View File

@@ -31,6 +31,7 @@ public class GrabbedState : State
{
if (player.otherPlayer.state != "Arcana" && player.animationFrames <= 6)
{
player.player.PlayerUI.DisplayNotification(NotificationTypeEnum.ThrowBreak);
player.sound = "ParryStart";
player.SetEffect("Impact", new DemonicsVector2((player.position.x + player.otherPlayer.position.x) / 2, player.position.y + (player.pushbox.size.y / 2)));
EnterState(player, "Knockback");

View File

@@ -7,6 +7,7 @@ public class WallSplatState : State
CheckFlip(player);
if (!player.enter)
{
player.player.PlayerUI.DisplayNotification(NotificationTypeEnum.WallSplat);
CameraShake.Instance.Zoom(-4, 0.2f);
if (player.CurrentState != this)
player.comboLocked = true;