all the print weapons
This commit is contained in:
parent
38a6b168a9
commit
5a19d2b596
@ -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" },
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
<img src="/icons/needle-beam.svg" alt="needle beam" title="needle beam" />
|
||||||
|
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
height: 2em;
|
||||||
|
}
|
||||||
|
</style>
|
7
src/routes/export/print/PrintShip/Weapons/PDS.svelte
Normal file
7
src/routes/export/print/PrintShip/Weapons/PDS.svelte
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<img src="/icons/pds.svg" alt="PDS pack" title="pds" />
|
||||||
|
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
height: 2em;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,7 @@
|
|||||||
|
<img src="/icons/scattergun.svg" alt="scattergun" title="scattergun" />
|
||||||
|
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
height: 2em;
|
||||||
|
}
|
||||||
|
</style>
|
11
src/routes/export/print/PrintShip/Weapons/Submunition.svelte
Normal file
11
src/routes/export/print/PrintShip/Weapons/Submunition.svelte
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<img
|
||||||
|
src="/icons/submunition.svg"
|
||||||
|
alt="submunition pack"
|
||||||
|
title="submunition pack"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
height: 2em;
|
||||||
|
}
|
||||||
|
</style>
|
@ -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 }) => {
|
||||||
|
@ -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,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user