Skip to content

Commit

Permalink
Merge pull request #97 from hackerspace-ntnu/fix/scene-and-navmesh
Browse files Browse the repository at this point in the history
Fixed empty cell array in HexGrid + updated navmesh
  • Loading branch information
ThomasJGabrielsen committed Mar 6, 2022
2 parents 39789b8 + d89f97f commit fd384bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Assets/Scenes/Endless Mode.unity
Git LFS file not shown
Binary file modified Assets/Scenes/Endless Mode/NavMesh.asset
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/Scripts/Universal scripts/HealthLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public virtual void OnReceiveDamage(float damage, Vector3? knockBackDir = null,
if (Dead)
return;

health -= damage;
health -= Mathf.Clamp(damage, 0, health);

DamageInfo damageInfo = new DamageInfo(
damage,
Expand Down

0 comments on commit fd384bb

Please sign in to comment.