Skip to content

Commit

Permalink
Merge branch 'release/v1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattd committed Jul 15, 2022
2 parents 6e4927c + d969a69 commit fd89933
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
8 changes: 6 additions & 2 deletions module/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
"url": "https://github.com/mattd/foundryvtt-progress-clocks",
"manifest": "https://raw.githubusercontent.com/mattd/foundryvtt-progress-clocks/main/module/module.json",
"download": "https://github.com/mattd/foundryvtt-progress-clocks/releases/download/v1.4.2/build.zip",
"version": "1.4.2",
"version": "1.5.0",
"minimumCoreVersion": "0.7.0",
"compatibleCoreVersion": "9",
"compatibleCoreVersion": "10",
"compatibility": {
"minimum": "0.7.0",
"verified": "10"
},
"esmodules": ["scripts/init.mjs"],
"styles": ["styles/clocks.css"]
}
8 changes: 7 additions & 1 deletion module/scripts/systems/index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import DND5E from "./dnd5e.mjs";
import BitD from "./blades-in-the-dark.mjs";
import { getFoundryVersion } from "../utils.mjs";

const SUPPORTED_SYSTEMS = {
"blades-in-the-dark": "BitD",
Expand Down Expand Up @@ -33,11 +34,16 @@ export const getSystemMapping = id => {
};

if (!SUPPORTED_SYSTEMS[id]) {
const types = (
getFoundryVersion(game).major > 9 ?
game.system.template.Actor.types :
game.data.system.template.Actor.types
);
return {
id,
...defaultSystemConfig,
registerSheetOptions: {
types: game.data.system.template.Actor.types
types: types
}
};
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "foundryvtt-progress-clocks",
"version": "1.4.2",
"version": "1.5.0",
"description": "Brings Forged in the Dark style progress clocks to your FoundryVTT games.",
"main": "module/scripts/init.js",
"main": "module/scripts/init.mjs",
"scripts": {
"clean": "rm build.zip",
"package": "cd module && zip -r ../build.zip . -x src\\* && cd ..",
"package": "cd module && zip -r ../build.zip . && cd ..",
"release": "npm test && npm run package",
"test": "ava"
},
Expand Down

0 comments on commit fd89933

Please sign in to comment.