Fixes? and side channels.
This commit is contained in:
@ -26,8 +26,8 @@ public class Player : MonoBehaviour, ICharacter
|
||||
PlayerCharacter.LastTimeHit = TimeManager.Instance.CurrentTime;
|
||||
Condition.GiveHealth(-Mathf.RoundToInt(damage * (1 - Condition.ArmourPoints * 0.5f)));
|
||||
Condition.GiveArmour(-Mathf.RoundToInt(Mathf.Sqrt(damage) * 5));
|
||||
|
||||
if (Condition.HealthPoints < 1)
|
||||
print(Condition.HealthPoints);
|
||||
if (Condition.HealthPoints < 10)
|
||||
Die();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user