Skip to content

Commit

Permalink
v2.2.2
Browse files Browse the repository at this point in the history
- Ignore "core.time" and "pf2e.worldClock.worldCreatedOn" values by default.
  - These values can still be selected in from the importer dialog but will be unselected by default.
  - You may run `game.settings.set('forien-copy-environment', 'selected-properties', undefined);` as a script macro to reset the values to their default.
  - See [issue #53](#53).
  • Loading branch information
sneat authored Jul 13, 2024
2 parents f4f26b0 + 89b54c3 commit a5628bb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v2.2.2

- Ignore "core.time" and "pf2e.worldClock.worldCreatedOn" values by default.
- These values can still be selected in from the importer dialog but will be unselected by default.
- You may run `game.settings.set('forien-copy-environment', 'selected-properties', undefined);` as a script macro to reset the values to their default.
- See [issue #53](https://github.com/League-of-Foundry-Developers/foundryvtt-forien-copy-environment/issues/53).

## v2.2.1

- v12 compatibility.
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"minimumCoreVersion": "0.6.0",
"compatibleCoreVersion": "12",
"version": "2.2.1",
"version": "2.2.2",
"compatibility": {
"minimum": "0.6.0",
"verified": "12"
Expand Down
5 changes: 4 additions & 1 deletion scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export default class Core extends FormApplication {
this.notChangedSettings = [];
this.notChangedPlayers = [];
this.notFoundPlayers = [];
this.selectedProperties = game.settings.get(name, 'selected-properties') || {};
this.selectedProperties = game.settings.get(name, 'selected-properties') || {
'core.time': false,
'pf2e.worldClock.worldCreatedOn': false,
};
this.supportingData = {};

if (settings && Array.isArray(settings)) {
Expand Down
5 changes: 4 additions & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ Hooks.once('init', function () {
scope: 'client',
config: false,
type: Object,
default: {},
default: {
'core.time': false,
'pf2e.worldClock.worldCreatedOn': false,
},
});

game.settings.register(name, 'diff-length', {
Expand Down

0 comments on commit a5628bb

Please sign in to comment.