From 074249d566d0594ed1ef66474cbc1875d054af0c Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Fri, 24 Mar 2023 11:01:04 -0400 Subject: [PATCH] streamlining, store and edit --- src/lib/components/ShipEdit.story.svelte | 7 +- src/lib/components/ShipEdit.svelte | 10 +- src/lib/components/ShipEdit/Structure.svelte | 10 ++ .../ShipEdit/Structure/Streamlining.svelte | 8 +- src/lib/store/ship.test.ts | 35 ++++--- src/lib/store/ship.ts | 92 +++++++++++-------- src/lib/store/ship/carrier.ts | 6 +- src/lib/store/ship/identification.ts | 13 ++- src/lib/store/ship/propulsion/drive.ts | 4 +- src/lib/store/ship/propulsion/ftl.ts | 4 +- src/lib/store/ship/structure/rules.ts | 9 ++ src/lib/store/ship/structure/streamlining.ts | 26 ++++++ 12 files changed, 154 insertions(+), 70 deletions(-) create mode 100644 src/lib/components/ShipEdit/Structure.svelte create mode 100644 src/lib/store/ship/structure/rules.ts create mode 100644 src/lib/store/ship/structure/streamlining.ts diff --git a/src/lib/components/ShipEdit.story.svelte b/src/lib/components/ShipEdit.story.svelte index 71f3cc3..ad09f02 100644 --- a/src/lib/components/ShipEdit.story.svelte +++ b/src/lib/components/ShipEdit.story.svelte @@ -1,5 +1,5 @@ - + diff --git a/src/lib/components/ShipEdit.svelte b/src/lib/components/ShipEdit.svelte index c2a0071..98abf9d 100644 --- a/src/lib/components/ShipEdit.svelte +++ b/src/lib/components/ShipEdit.svelte @@ -1,14 +1,18 @@
- - + + +