mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-25 00:43:38 +02:00
Compare commits
No commits in common. "ac998adaa6f94926072760c38685932379784ce5" and "6a0a8d8d6eba248be7c60815852f2c7416042eb8" have entirely different histories.
ac998adaa6
...
6a0a8d8d6e
7 changed files with 5 additions and 14 deletions
|
|
@ -111,7 +111,6 @@ export default class DhSceneConfigSettings extends foundry.applications.sheets.S
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _processSubmitData(event, form, submitData, options) {
|
async _processSubmitData(event, form, submitData, options) {
|
||||||
if (!submitData.flags) submitData.flags = {};
|
|
||||||
submitData.flags.daggerheart = this.daggerheartFlag.toObject();
|
submitData.flags.daggerheart = this.daggerheartFlag.toObject();
|
||||||
submitData.flags.daggerheart.sceneEnvironments = submitData.flags.daggerheart.sceneEnvironments.filter(x =>
|
submitData.flags.daggerheart.sceneEnvironments = submitData.flags.daggerheart.sceneEnvironments.filter(x =>
|
||||||
foundry.utils.fromUuidSync(x)
|
foundry.utils.fromUuidSync(x)
|
||||||
|
|
|
||||||
|
|
@ -314,7 +314,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2)
|
||||||
const index = Number.parseInt(button.dataset.index);
|
const index = Number.parseInt(button.dataset.index);
|
||||||
const toggle = (element, codeMirror) => {
|
const toggle = (element, codeMirror) => {
|
||||||
codeMirror.classList.toggle('revealed');
|
codeMirror.classList.toggle('revealed');
|
||||||
const button = element.querySelector('.expand-trigger > i');
|
const button = element.querySelector('a > i');
|
||||||
button.classList.toggle('fa-angle-up');
|
button.classList.toggle('fa-angle-up');
|
||||||
button.classList.toggle('fa-angle-down');
|
button.classList.toggle('fa-angle-down');
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,7 @@ export default class DhCharacter extends BaseDataActor {
|
||||||
min: 0,
|
min: 0,
|
||||||
integer: true,
|
integer: true,
|
||||||
label: 'DAGGERHEART.GENERAL.hope'
|
label: 'DAGGERHEART.GENERAL.hope'
|
||||||
}),
|
})
|
||||||
isReversed: new fields.BooleanField({ initial: false })
|
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
traits: new fields.SchemaField({
|
traits: new fields.SchemaField({
|
||||||
|
|
|
||||||
|
|
@ -159,9 +159,8 @@ export function ActionMixin(Base) {
|
||||||
}
|
}
|
||||||
|
|
||||||
get uuid() {
|
get uuid() {
|
||||||
const isItem = this.item instanceof game.system.api.documents.DHItem;
|
if (!(this.item instanceof game.system.api.documents.DHItem)) return null;
|
||||||
const isActor = this.item instanceof game.system.api.documents.DhpActor;
|
return `${this.item.uuid}.${this.documentName}.${this.id}`;
|
||||||
return isItem || isActor ? `${this.item.uuid}.${this.documentName}.${this.id}` : null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get sheet() {
|
get sheet() {
|
||||||
|
|
|
||||||
|
|
@ -185,10 +185,7 @@ export default class DHItem extends foundry.documents.Item {
|
||||||
tags: this._getTags()
|
tags: this._getTags()
|
||||||
},
|
},
|
||||||
actions: item.system.actionsList,
|
actions: item.system.actionsList,
|
||||||
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.system.description, {
|
description: this.system.description
|
||||||
relativeTo: this.parent,
|
|
||||||
rollData: this.parent?.getRollData() ?? {}
|
|
||||||
})
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const msg = {
|
const msg = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ export default function DhTemplateEnricher(match, _options) {
|
||||||
const params = parseInlineParams(match[1]);
|
const params = parseInlineParams(match[1]);
|
||||||
const { type, angle = CONFIG.MeasuredTemplate.defaults.angle, inline = false } = params;
|
const { type, angle = CONFIG.MeasuredTemplate.defaults.angle, inline = false } = params;
|
||||||
const direction = Number(params.direction) || 0;
|
const direction = Number(params.direction) || 0;
|
||||||
params.range = params.range?.toLowerCase();
|
|
||||||
const range =
|
const range =
|
||||||
params.range && Number.isNaN(Number(params.range))
|
params.range && Number.isNaN(Number(params.range))
|
||||||
? Object.values(CONFIG.DH.GENERAL.templateRanges).find(
|
? Object.values(CONFIG.DH.GENERAL.templateRanges).find(
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
|
||||||
|
|
||||||
select {
|
select {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
@ -97,7 +96,6 @@
|
||||||
height: 0;
|
height: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
transition: height 0.1s ease-in-out;
|
transition: height 0.1s ease-in-out;
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
&.revealed {
|
&.revealed {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue