Skip to content

Commit

Permalink
Update to lates lancer-inititiave library
Browse files Browse the repository at this point in the history
  • Loading branch information
BoltsJ committed Sep 7, 2022
1 parent dd6ec53 commit d2a23ee
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"license": "Apache-2.0",
"repository": "https://github.com/BoltsJ/lancer-initiative.git",
"dependencies": {
"lancer-initiative": "^3.0.0"
"lancer-initiative": "^3.1.0"
}
}
7 changes: 6 additions & 1 deletion src/lancer-initiative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,20 @@ function registerSettings(): void {
onChange: setAppearance,
default: {},
});
// Allows combat tracker sorting to be toggled. Optional for downstreams.
game.settings.register(module, "combat-tracker-sort", {
name: "LANCERINITIATIVE.SortTracker",
hint: "LANCERINITIATIVE.SortTrackerDesc",
scope: "world",
config: true,
type: Boolean,
onChange: () => game.combats?.render(),
onChange: v => {
CONFIG.LancerInitiative.sort = v;
game.combats?.render();
},
default: true,
});
CONFIG.LancerInitiative.sort = game.settings.get(module, "combat-tracker-sort");
// Allows initiative rolling to be toggled. Optional for downstreams.
game.settings.register(module, "combat-tracker-enable-initiative", {
name: "LANCERINITIATIVE.EnableInitiative",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "es2022",
"outDir": "./dist/",
"module": "es2020",
"sourceMap": true,
"inlineSources": true,
"lib": ["ES6", "ES2017", "DOM"],
"lib": ["ES6", "ES2022", "DOM"],
"types": ["@league-of-foundry-developers/foundry-vtt-types"],
"moduleResolution": "node",
"strict": true,
Expand Down

0 comments on commit d2a23ee

Please sign in to comment.