From 870b572f3edf33825d1b74010baae935d3439d95 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 20 Jun 2024 14:49:12 +0200 Subject: no hats for customerss --- test-client/visual.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test-client/visual.ts') diff --git a/test-client/visual.ts b/test-client/visual.ts index 4bbfac6c..37ae732d 100644 --- a/test-client/visual.ts +++ b/test-client/visual.ts @@ -133,10 +133,12 @@ function draw_character(character: number) { ctx.arc(0, 0, PLAYER_SIZE, 0, Math.PI * 2) ctx.fill() - ctx.fillStyle = `hsl(${character}rad, 80%, 10%)` - ctx.beginPath() - ctx.arc(0, -0.2, PLAYER_SIZE, 0, Math.PI * 2) - ctx.fill() + if (character > 0) { + ctx.fillStyle = `hsl(${character}rad, 80%, 10%)` + ctx.beginPath() + ctx.arc(0, -0.2, PLAYER_SIZE, 0, Math.PI * 2) + ctx.fill() + } ctx.fillStyle = `hsl(${character}rad, 80%, 70%)` ctx.beginPath() -- cgit v1.2.3-70-g09d2