You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
Re add the missing gameplay notifications
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user