From 70bf9329643dab37c80fa2ad8924801a49f1c377 Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Mon, 7 Mar 2022 18:01:10 -0600 Subject: [PATCH] Allow using sailboat, and remove comment that won't happen. The comment is being removed because the colours/ships will not be getting fetched from the server because it doesn't make sense for the server to be handling that list since it's entirely client-side. --- web-svelte/src/components/modals/ShipDesigner.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-svelte/src/components/modals/ShipDesigner.svelte b/web-svelte/src/components/modals/ShipDesigner.svelte index a7cf169..0858b9b 100644 --- a/web-svelte/src/components/modals/ShipDesigner.svelte +++ b/web-svelte/src/components/modals/ShipDesigner.svelte @@ -11,7 +11,6 @@ const emit = createEventDispatcher(); export let open: boolean = false; -/** This will be fetched from the server when opening the modal */ const colours: IColour[] = [ { name: "Green", hex: "#00aa00" }, { name: "Blue", hex: "#0077b6" }, @@ -26,6 +25,7 @@ const colours: IColour[] = [ const spaceships: ISpaceship[] = [ { name: "Space Shuttle", id: "space-shuttle" }, { name: "Rocket", id: "rocket" }, + { name: "Sailboat", id: "sailboat" }, ] let player = $players.find(p => p.name == $myName);