Skip to content

Commit

Permalink
translate hazard cause of death (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbles authored Aug 18, 2022
1 parent 1bf00a9 commit 257d3be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/engine-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export function getReadableCauseOfDeath(death) {
return `Ran into ${death.eliminatedBy}'s body`;
case "snake-self-collision":
return "Collided with itself";
case "starvation": // DEPRECATED, REMOVE ME
return "Out of health";
case "out-of-health":
return "Out of health";
case "hazard":
return "Moved into a hazard";
case "head-collision":
return `Lost head-to-head with ${death.eliminatedBy}`;
case "wall-collision":
Expand Down

0 comments on commit 257d3be

Please sign in to comment.