Commit 62f63fb2 authored by Hubert Denkmair's avatar Hubert Denkmair

don't show suicides, use snake as kill symbol

parent caa6bb5b
......@@ -113,8 +113,11 @@ Game.prototype.HandleMessage = function(event)
let victim = this.vis.snakes[data.victim_id];
if (killer && victim)
{
let msg = killer.GetName() + " killed " + victim.GetName();
this.SendGameEvent("kill", msg);
if (data.killer_id != data.victim_id)
{
let msg = killer.GetName() + " 🐍 " + victim.GetName();
this.SendGameEvent("kill", msg);
}
}
return this.vis.HandleBotKilledMessage(data.killer_id, data.victim_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment