Minor gameplay fixes and UI main menu improvements

This commit is contained in:
David Kalatzis
2023-07-19 17:10:21 +03:00
parent f1d07d3c75
commit 667481b1db
27 changed files with 838 additions and 3621 deletions

View File

@@ -14,16 +14,19 @@ public class AttackState : State
}
if (player.attackNetwork.attackType == AttackTypeEnum.Break)
{
if (player.health > _guardBreakSelfDamage)
player.health -= _guardBreakSelfDamage;
else
player.health = 1;
player.healthRecoverable -= _guardBreakSelfDamage - 100;
player.player.StartShakeContact();
player.player.PlayerUI.Damaged();
player.player.PlayerUI.UpdateHealthDamaged(player.healthRecoverable);
DemonVector2 effectPosition = new DemonVector2(player.position.x, player.position.y + 20);
player.SetParticle("GuardBreak", effectPosition);
if (player.healthRecoverable == player.health)
{
if (player.health > _guardBreakSelfDamage)
player.health -= _guardBreakSelfDamage;
else
player.health = 1;
player.healthRecoverable -= _guardBreakSelfDamage - 100;
player.player.StartShakeContact();
player.player.PlayerUI.Damaged();
player.player.PlayerUI.UpdateHealthDamaged(player.healthRecoverable);
DemonVector2 effectPosition = new DemonVector2(player.position.x, player.position.y + 20);
player.SetParticle("GuardBreak", effectPosition);
}
//CheckTrainingComboEnd(player);
}
player.animationFrames = 0;