From 0f4e243be8108e98a397d17a3808be4bd08b85a4 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Wed, 29 Jul 2020 16:09:05 -0400 Subject: [PATCH] armour --- .../Output/Print/Hull/Armour/index.svelte | 34 +++++++++++++++++++ src/components/Output/Print/index.svelte | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 src/components/Output/Print/Hull/Armour/index.svelte diff --git a/src/components/Output/Print/Hull/Armour/index.svelte b/src/components/Output/Print/Hull/Armour/index.svelte new file mode 100644 index 0000000..f0be2fa --- /dev/null +++ b/src/components/Output/Print/Hull/Armour/index.svelte @@ -0,0 +1,34 @@ +
+ {#each armour as layer (layer)} +
+ {#each _.range(layer.rating) as i (i) } +
+
+ {/each} +
+ {/each} + +
+ + + + diff --git a/src/components/Output/Print/index.svelte b/src/components/Output/Print/index.svelte index 676a5a0..bd864fe 100644 --- a/src/components/Output/Print/index.svelte +++ b/src/components/Output/Print/index.svelte @@ -1,5 +1,7 @@
+ + import Identification from './Identification'; import Integrity from './Hull/Integrity'; + import Armour from './Hull/Armour'; export let ship;