diff --git a/CHANGELOG.md b/CHANGELOG.md index 75ffbc9..96053c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.4.0] - 2023-04-25 + +### Added + +* Added a fourth "Hold or Berth" option called "Tender Bay" (see page 89 of the *Continuum* rules). It looks and works exactly the same as a "Boat Bay" but costs points. +* Added the option to add FTL tug capacity to any ship. + ## [v3.3.2] - 2023-04-17 ### Added diff --git a/package-lock.json b/package-lock.json index 5005dbc..2939a64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "ftshipbuilder", - "version": "3.3.1", + "version": "3.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ftshipbuilder", - "version": "3.3.1", + "version": "3.4.0", "license": "MIT", "dependencies": { "@zerodevx/svelte-toast": "^0.9.3", "canvg": "^4.0.1", "fast-xml-parser": "^4.2.0", - "ftlibship": "github:perlkonig/ftLibShip#v2.0.3", + "ftlibship": "github:perlkonig/ftLibShip#v2.0.4", "lz-string": "^1.5.0", "nanoid": "^4.0.2", "robust-point-in-polygon": "^1.0.3", @@ -1136,8 +1136,8 @@ } }, "node_modules/ftlibship": { - "version": "2.0.3", - "resolved": "git+ssh://git@github.com/perlkonig/ftLibShip.git#e249e51a09698185cf78a5818ce52b83bd77a7f2", + "version": "2.0.4", + "resolved": "git+ssh://git@github.com/perlkonig/ftLibShip.git#536ae731a26a135893d08d8adfa5a4252140f11b", "license": "MIT", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index a156223..af44366 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ftshipbuilder", "private": true, - "version": "3.3.2", + "version": "3.4.0", "description": "A web-based tool for generating valid Full Thrust ships", "author": "Aaron Dalton (https://www.perlkonig.com)", "license": "MIT", @@ -40,7 +40,7 @@ "@zerodevx/svelte-toast": "^0.9.3", "canvg": "^4.0.1", "fast-xml-parser": "^4.2.0", - "ftlibship": "github:perlkonig/ftLibShip#v2.0.3", + "ftlibship": "github:perlkonig/ftLibShip#v2.0.4", "lz-string": "^1.5.0", "nanoid": "^4.0.2", "robust-point-in-polygon": "^1.0.3", diff --git a/src/components/Builder.svelte b/src/components/Builder.svelte index 532384a..357db6b 100644 --- a/src/components/Builder.svelte +++ b/src/components/Builder.svelte @@ -43,6 +43,7 @@ let ftl: boolean; let ftlAdvanced: boolean; + let transferMass = 0; ship.subscribe((obj) => { const idx = obj.systems.findIndex(x => x.name === "ftl"); if (idx === -1) { @@ -72,6 +73,20 @@ $ship = $ship; } + const updateTransferMass = () => { + if ( (transferMass === undefined) || (transferMass === null) ) { + transferMass = 0; + } + if (transferMass % 5 !== 0) { + transferMass = Math.ceil(transferMass / 5) * 5; + } + const idx = $ship.systems.findIndex(x => x.name === "ftl"); + if (idx !== -1) { + $ship.systems[idx].transferMass = transferMass; + } + $ship = $ship; + } + let shipSystem: string; const addSystem = () => { if (shipSystem !== undefined) { @@ -400,6 +415,13 @@ Advanced FTL +
+ +
+ +
+

Must be a multiple of 5. Ship doesn't update until you exit the field.

+
x.name === "ftl"), $ship)} /> diff --git a/src/components/SysDisplay.svelte b/src/components/SysDisplay.svelte index 281b5e4..58d8af3 100644 --- a/src/components/SysDisplay.svelte +++ b/src/components/SysDisplay.svelte @@ -78,7 +78,7 @@