Added damaged veteran dialog
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { getDisorderLabel } from "../profession/disorders.js";
|
||||
import DGUtils from "./utility-functions.js";
|
||||
|
||||
export default function registerHandlebarsHelpers() {
|
||||
@@ -100,6 +101,14 @@ export default function registerHandlebarsHelpers() {
|
||||
return game.user.isGM;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("dgDisorderLabel", (value) => {
|
||||
try {
|
||||
return getDisorderLabel(value);
|
||||
} catch {
|
||||
return value ?? "";
|
||||
}
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("showImpossibleLandscapesContent", () => {
|
||||
let result = false;
|
||||
const setting = game.settings.get(
|
||||
|
||||
Reference in New Issue
Block a user