Added damaged veteran dialog
This commit is contained in:
@@ -78,9 +78,9 @@ export default class DGAgentSheet extends AgentSheetBase {
|
||||
],
|
||||
},
|
||||
leftBarRestSanity: {
|
||||
initial: "rest",
|
||||
initial: "sanity",
|
||||
labelPrefix: "DG.Navigation.Agent.LeftBar",
|
||||
tabs: [{ id: "rest" }, { id: "sanity" }],
|
||||
tabs: [{ id: "sanity" }, { id: "rest" }],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -165,15 +165,4 @@ export default class DGActorSheet extends ComposedActorSheetBase {
|
||||
this._tooltipsSettings(element);
|
||||
this._bindAeBackedInputs(element);
|
||||
}
|
||||
|
||||
/** @override */
|
||||
_getHeaderControls() {
|
||||
const controls = super._getHeaderControls();
|
||||
controls.push({
|
||||
action: "rollLuck",
|
||||
label: "DG.RollLuck",
|
||||
icon: "fas fa-dice",
|
||||
});
|
||||
return controls;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { BASE_TEMPLATE_PATH } from "../config/index.js";
|
||||
import {
|
||||
getDisorderLabel,
|
||||
isKnownDisorderId,
|
||||
} from "../profession/disorders.js";
|
||||
import DGSheetMixin from "./base-sheet.js";
|
||||
import EffectsTabMixin from "./mixins/effects-tab-mixin.js";
|
||||
import ProfessionItemMixin from "./mixins/profession-item-mixin.js";
|
||||
@@ -249,6 +253,13 @@ export default class DGItemSheet extends ItemSheetBase {
|
||||
|
||||
context.owner = this.document.isOwner;
|
||||
|
||||
if (this.item.type === "motivation" && this.item.system.disorder) {
|
||||
context.disorderUsesKnownId = isKnownDisorderId(
|
||||
this.item.system.disorder,
|
||||
);
|
||||
context.disorderLabel = getDisorderLabel(this.item.system.disorder);
|
||||
}
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user