Skip to content

Commit

Permalink
add AA setting for crit damage
Browse files Browse the repository at this point in the history
  • Loading branch information
Stexinator committed Oct 3, 2024
1 parent 272b94f commit 7268622
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/dark-heresy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import Dh from "./common/config.js";
// Import Helpers
import * as chat from "./common/chat.js";
import { registerDataModels } from "./setup/registerDataModels.js";
import { registerAdditionalModuleSettings } from "./moduleSupport/moduleSupportSettings.js";

Hooks.once("init", function() {
CONFIG.Combat.initiative = { formula: "@initiative.base + @initiative.bonus", decimals: 0 };
Expand Down Expand Up @@ -103,6 +104,7 @@ Hooks.once("init", function() {
type: Boolean
});

registerAdditionalModuleSettings();
});

Hooks.once("ready", function() {
Expand Down
13 changes: 13 additions & 0 deletions script/moduleSupport/moduleSupportSettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const registerAdditionalModuleSettings = function() {

if (game.modules.get("autoanimations")?.active) {
game.settings.register("autoanimations", "criticalAnimation", {
name: "Righteous Fury Effect",
hint: "This will play an effect on the token that scores a righteous fury",
scope: "world",
config: true,
type: String
});
}

}

0 comments on commit 7268622

Please sign in to comment.