From 257d3be262022c604253238c108d8c89c3abebe6 Mon Sep 17 00:00:00 2001 From: Rob O'Dwyer Date: Thu, 18 Aug 2022 15:56:51 -0700 Subject: [PATCH] translate hazard cause of death (#63) --- src/utils/engine-client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/engine-client.js b/src/utils/engine-client.js index 7a17341..88d9e8a 100644 --- a/src/utils/engine-client.js +++ b/src/utils/engine-client.js @@ -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":