all the print weapons

This commit is contained in:
Yanick Champoux 2023-04-28 12:05:17 -04:00
parent 38a6b168a9
commit 5a19d2b596
7 changed files with 46 additions and 6 deletions

View File

@ -59,7 +59,7 @@ export const weaponTypes = [
initial: { type: "scattergun" }, initial: { type: "scattergun" },
}, },
{ {
name: "needle weapon", name: "needle beam",
type: "needle", type: "needle",
reqs: { mass: 2, cost: 6 }, reqs: { mass: 2, cost: 6 },
initial: { arc: "F", type: "needle" }, initial: { arc: "F", type: "needle" },

View File

@ -0,0 +1,7 @@
<img src="/icons/needle-beam.svg" alt="needle beam" title="needle beam" />
<style>
img {
height: 2em;
}
</style>

View File

@ -0,0 +1,7 @@
<img src="/icons/pds.svg" alt="PDS pack" title="pds" />
<style>
img {
height: 2em;
}
</style>

View File

@ -0,0 +1,7 @@
<img src="/icons/scattergun.svg" alt="scattergun" title="scattergun" />
<style>
img {
height: 2em;
}
</style>

View File

@ -0,0 +1,11 @@
<img
src="/icons/submunition.svg"
alt="submunition pack"
title="submunition pack"
/>
<style>
img {
height: 2em;
}
</style>

View File

@ -2,7 +2,7 @@ import { render, fireEvent } from "@testing-library/svelte";
import "@testing-library/jest-dom"; import "@testing-library/jest-dom";
import { weaponTypes } from "$lib/store/ship/weaponry/rules"; import { weaponTypes } from "$lib/store/ship/weaponry/rules";
import printComp from "./printComp.js"; import printComp from "./printComps.js";
describe("all weapons have a print component", () => { describe("all weapons have a print component", () => {
test.each(weaponTypes)("$type", ({ type, initial }) => { test.each(weaponTypes)("$type", ({ type, initial }) => {

View File

@ -1,5 +1,13 @@
import Beam from "./Beam.svelte"; import Beam from "./Beam.svelte";
import Submunition from "./Submunition.svelte";
import PDS from "./PDS.svelte";
import Scattergun from "./Scattergun.svelte";
import Needlebeam from "./Needlebeam.svelte";
export default { export default {
beam: Beam, beam: Beam,
submunition: Submunition,
pds: PDS,
scattergun: Scattergun,
needle: Needlebeam,
}; };