Skip to content

Commit

Permalink
Allow odd mass values and update ftlibship
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlkonig committed Sep 27, 2024
1 parent 37aa2ef commit 9f820fc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ 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.7.3] - 2024-09-27

### Fixed

- Fixed bug that allowed some systems to have zero mass on very small ships.

### Changed

- Odd mass values are now permitted.

## [v3.7.2] - 2024-09-26

### Fixed
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ftshipbuilder",
"private": true,
"version": "3.7.2",
"version": "3.7.3",
"description": "A web-based tool for generating valid Full Thrust ships",
"author": "Aaron Dalton <[email protected]> (https://www.perlkonig.com)",
"license": "MIT",
Expand Down Expand Up @@ -43,7 +43,7 @@
"@zerodevx/svelte-toast": "^0.9.3",
"canvg": "^4.0.1",
"fast-xml-parser": "^4.2.0",
"ftlibship": "github:perlkonig/ftlibship#v2.4.1",
"ftlibship": "github:perlkonig/ftLibShip#v2.4.2",
"lz-string": "^1.5.0",
"nanoid": "^4.0.2",
"robust-point-in-polygon": "^1.0.3",
Expand Down
5 changes: 0 additions & 5 deletions src/components/Builder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@
placeholder="Mass"
min="4"
max="300"
step="2"
bind:value="{$ship.mass}"
on:change="{setClass}"
/>
Expand All @@ -330,10 +329,6 @@
<p class="help is-danger">The minimum mass is 4.</p>
{:else if $ship.mass > 300}
<p class="help is-danger">The maximum mass is 300.</p>
{:else if $ship.mass > 10 && $ship.mass % 2 !== 0}
<p class="help is-danger">
The mass of ships larger than 9 must be an even number.
</p>
{/if}
</div>

Expand Down

0 comments on commit 9f820fc

Please sign in to comment.