Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importer hyperdrive 1537 #1563

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
* Creating combat via the group manager now works again ([#1545](https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1545))
* Removing initiative slots from combat now works ([#1545](https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1545))
* Soak can now go below the Brawn value if auto-calculation is turned off ([#1371](https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1371))
* Imported Vehicle improvements ([#1537](https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1537)):
* Navicomputer is now imported
* Hyperdrive primary is set to null if no hyperdrive is installed
* Hyperdrive secondary is imported (and set to null if no hyperdrive is installed)

`1.900`
* Features:
Expand Down
6 changes: 5 additions & 1 deletion modules/importer/oggdude/importers/vehicles.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,16 @@ export default class Vehicles {
value: item.HP ? parseInt(item.HP, 10) : 0,
},
hyperdrive: {
value: item.HyperdrivePrimary ? parseInt(item.HyperdrivePrimary, 10) : 1,
value: parseInt(item.HyperdrivePrimary, 10) > 0 ? parseInt(item.HyperdrivePrimary, 10) : null,
backup: parseInt(item.HyperdriveBackup, 10) > 0 ? parseInt(item.HyperdriveBackup, 10) : null,
},
consumables: {
value: 1,
duration: "months",
},
navicomputer: {
value: item.NaviComputer,
}
},
itemmodifier: [],
itemattachment: [],
Expand Down