mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Merge branch 'main' into release
This commit is contained in:
commit
29d502fb97
65 changed files with 607 additions and 458 deletions
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
name: Feature report
|
||||
about: Create a feature report for suggestions on improving the system
|
||||
name: Feature request
|
||||
about: Create a feature request for suggestions on improving the system
|
||||
title: "[Feature] <Insert Title here> "
|
||||
labels: enhancement, discussion, maybe
|
||||
type: feature
|
||||
|
|
@ -1894,6 +1894,7 @@
|
|||
"amount": "Amount",
|
||||
"any": "Any",
|
||||
"armor": "Armor",
|
||||
"armors": "Armors",
|
||||
"armorScore": "Armor Score",
|
||||
"activeEffects": "Active Effects",
|
||||
"armorSlots": "Armor Slots",
|
||||
|
|
@ -1944,6 +1945,7 @@
|
|||
"inactiveEffects": "Inactive Effects",
|
||||
"inventory": "Inventory",
|
||||
"itemResource": "Item Resource",
|
||||
"items": "Items",
|
||||
"label": "Label",
|
||||
"level": "Level",
|
||||
"levelShort": "Lv",
|
||||
|
|
@ -1955,6 +1957,7 @@
|
|||
"plural": "Miss"
|
||||
},
|
||||
"maxWithThing": "Max {thing}",
|
||||
"missingDragDropThing": "Drop {thing} here",
|
||||
"multiclass": "Multiclass",
|
||||
"newCategory": "New Category",
|
||||
"none": "None",
|
||||
|
|
@ -1976,6 +1979,7 @@
|
|||
"scalable": "Scalable",
|
||||
"situationalBonus": "Situational Bonus",
|
||||
"stress": "Stress",
|
||||
"subclasses": "Subclasses",
|
||||
"success": "Success",
|
||||
"take": "Take",
|
||||
"Target": {
|
||||
|
|
@ -1993,6 +1997,7 @@
|
|||
"used": "Used",
|
||||
"uses": "Uses",
|
||||
"value": "Value",
|
||||
"weapons": "Weapons",
|
||||
"withThing": "With {thing}"
|
||||
},
|
||||
"ITEMS": {
|
||||
|
|
@ -2371,7 +2376,8 @@
|
|||
"insufficientResources": "You have insufficient resources",
|
||||
"multiclassAlreadyPresent": "You already have a class and multiclass",
|
||||
"subclassesAlreadyPresent": "You already have a class and multiclass subclass",
|
||||
"noDiceSystem": "Your selected dice {system} does not have a {faces} dice"
|
||||
"noDiceSystem": "Your selected dice {system} does not have a {faces} dice",
|
||||
"subclassAlreadyLinked": "{name} is already a subclass in the class {class}. Remove it from there if you want it to be a subclass to this class."
|
||||
},
|
||||
"Tooltip": {
|
||||
"disableEffect": "Disable Effect",
|
||||
|
|
|
|||
|
|
@ -432,12 +432,17 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
|
|||
}
|
||||
};
|
||||
|
||||
if (type == 'domains')
|
||||
if (type === 'domains')
|
||||
presets.filter = {
|
||||
'level.max': { key: 'level.max', value: 1 },
|
||||
'system.domain': { key: 'system.domain', value: this.setup.class?.system.domains ?? null }
|
||||
};
|
||||
|
||||
if (type === 'subclasses')
|
||||
presets.filter = {
|
||||
'system.linkedClass.uuid': { key: 'system.linkedClass.uuid', value: this.setup.class?.uuid }
|
||||
};
|
||||
|
||||
if (equipment.includes(type))
|
||||
presets.filter = {
|
||||
'system.tier': { key: 'system.tier', value: 1 },
|
||||
|
|
|
|||
|
|
@ -119,6 +119,15 @@ export default class ClassSheet extends DHBaseItemSheet {
|
|||
const itemType = data.data ? data.type : item.type;
|
||||
const target = event.target.closest('fieldset.drop-section');
|
||||
if (itemType === 'subclass') {
|
||||
if (item.system.linkedClass) {
|
||||
return ui.notifications.warn(
|
||||
game.i18n.format('DAGGERHEART.UI.Notifications.subclassAlreadyLinked', {
|
||||
name: item.name,
|
||||
class: this.document.name
|
||||
})
|
||||
);
|
||||
}
|
||||
await item.update({ 'system.linkedClass': this.document.uuid });
|
||||
await this.document.update({
|
||||
'system.subclasses': [...this.document.system.subclasses.map(x => x.uuid), item.uuid]
|
||||
});
|
||||
|
|
@ -181,6 +190,12 @@ export default class ClassSheet extends DHBaseItemSheet {
|
|||
static async #removeItemFromCollection(_event, element) {
|
||||
const { uuid, target } = element.dataset;
|
||||
const prop = foundry.utils.getProperty(this.document.system, target);
|
||||
|
||||
if (target === 'subclasses') {
|
||||
const subclass = await foundry.utils.fromUuid(uuid);
|
||||
await subclass.update({ 'system.linkedClass': null });
|
||||
}
|
||||
|
||||
await this.document.update({ [`system.${target}`]: prop.filter(i => i.uuid !== uuid).map(x => x.uuid) });
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
filters.forEach(f => {
|
||||
if (typeof f.field === 'string') f.field = foundry.utils.getProperty(game, f.field);
|
||||
else if (typeof f.choices === 'function') {
|
||||
f.choices = f.choices();
|
||||
f.choices = f.choices(this.items);
|
||||
}
|
||||
f.name ??= f.key;
|
||||
f.value = this.presets?.filter?.[f.name]?.value ?? null;
|
||||
|
|
@ -248,11 +248,8 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
/* -------------------------------------------- */
|
||||
|
||||
/**
|
||||
* Create and initialize search filter instances for the inventory and loadout sections.
|
||||
* Create and initialize search filter instance.
|
||||
*
|
||||
* Sets up two {@link foundry.applications.ux.SearchFilter} instances:
|
||||
* - One for the inventory, which filters items in the inventory grid.
|
||||
* - One for the loadout, which filters items in the loadout/card grid.
|
||||
* @private
|
||||
*/
|
||||
_createSearchFilter() {
|
||||
|
|
|
|||
|
|
@ -2,404 +2,422 @@ export const typeConfig = {
|
|||
adversaries: {
|
||||
columns: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier"
|
||||
key: 'system.tier',
|
||||
label: 'Tier'
|
||||
},
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type"
|
||||
key: 'system.type',
|
||||
label: 'Type'
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier",
|
||||
key: 'system.tier',
|
||||
label: 'Tier',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.tier'
|
||||
},
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type",
|
||||
key: 'system.type',
|
||||
label: 'Type',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.type'
|
||||
},
|
||||
{
|
||||
key: "system.difficulty",
|
||||
name: "difficulty.min",
|
||||
label: "Difficulty (Min)",
|
||||
key: 'system.difficulty',
|
||||
name: 'difficulty.min',
|
||||
label: 'Difficulty (Min)',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.difficulty',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.difficulty",
|
||||
name: "difficulty.max",
|
||||
label: "Difficulty (Max)",
|
||||
key: 'system.difficulty',
|
||||
name: 'difficulty.max',
|
||||
label: 'Difficulty (Max)',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.difficulty',
|
||||
operator: "lte"
|
||||
operator: 'lte'
|
||||
},
|
||||
{
|
||||
key: "system.resources.hitPoints.max",
|
||||
name: "hp.min",
|
||||
label: "Hit Points (Min)",
|
||||
key: 'system.resources.hitPoints.max',
|
||||
name: 'hp.min',
|
||||
label: 'Hit Points (Min)',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.hitPoints.fields.max',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.resources.hitPoints.max",
|
||||
name: "hp.max",
|
||||
label: "Hit Points (Max)",
|
||||
key: 'system.resources.hitPoints.max',
|
||||
name: 'hp.max',
|
||||
label: 'Hit Points (Max)',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.hitPoints.fields.max',
|
||||
operator: "lte"
|
||||
operator: 'lte'
|
||||
},
|
||||
{
|
||||
key: "system.resources.stress.max",
|
||||
name: "stress.min",
|
||||
label: "Stress (Min)",
|
||||
key: 'system.resources.stress.max',
|
||||
name: 'stress.min',
|
||||
label: 'Stress (Min)',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.stress.fields.max',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.resources.stress.max",
|
||||
name: "stress.max",
|
||||
label: "Stress (Max)",
|
||||
key: 'system.resources.stress.max',
|
||||
name: 'stress.max',
|
||||
label: 'Stress (Max)',
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.stress.fields.max',
|
||||
operator: "lte"
|
||||
},
|
||||
operator: 'lte'
|
||||
}
|
||||
]
|
||||
},
|
||||
items: {
|
||||
columns: [
|
||||
{
|
||||
key: "type",
|
||||
label: "Type"
|
||||
key: 'type',
|
||||
label: 'Type'
|
||||
},
|
||||
{
|
||||
key: "system.secondary",
|
||||
label: "Subtype",
|
||||
format: (isSecondary) => isSecondary ? "secondary" : (isSecondary === false ? "primary" : '-')
|
||||
key: 'system.secondary',
|
||||
label: 'Subtype',
|
||||
format: isSecondary => (isSecondary ? 'secondary' : isSecondary === false ? 'primary' : '-')
|
||||
},
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier"
|
||||
key: 'system.tier',
|
||||
label: 'Tier'
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "type",
|
||||
label: "Type",
|
||||
choices: () => CONFIG.Item.documentClass.TYPES.filter(t => ["armor", "weapon", "consumable", "loot"].includes(t)).map(t => ({ value: t, label: t }))
|
||||
key: 'type',
|
||||
label: 'Type',
|
||||
choices: () =>
|
||||
CONFIG.Item.documentClass.TYPES.filter(t =>
|
||||
['armor', 'weapon', 'consumable', 'loot'].includes(t)
|
||||
).map(t => ({ value: t, label: t }))
|
||||
},
|
||||
{
|
||||
key: "system.secondary",
|
||||
label: "Subtype",
|
||||
key: 'system.secondary',
|
||||
label: 'Subtype',
|
||||
choices: [
|
||||
{ value: false, label: "Primary Weapon"},
|
||||
{ value: true, label: "Secondary Weapon"}
|
||||
{ value: false, label: 'Primary Weapon' },
|
||||
{ value: true, label: 'Secondary Weapon' }
|
||||
]
|
||||
},
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier",
|
||||
choices: [{ value: "1", label: "1"}, { value: "2", label: "2"}, { value: "3", label: "3"}, { value: "4", label: "4"}]
|
||||
key: 'system.tier',
|
||||
label: 'Tier',
|
||||
choices: [
|
||||
{ value: '1', label: '1' },
|
||||
{ value: '2', label: '2' },
|
||||
{ value: '3', label: '3' },
|
||||
{ value: '4', label: '4' }
|
||||
]
|
||||
},
|
||||
{
|
||||
key: "system.burden",
|
||||
label: "Burden",
|
||||
key: 'system.burden',
|
||||
label: 'Burden',
|
||||
field: 'system.api.models.items.DHWeapon.schema.fields.burden'
|
||||
},
|
||||
{
|
||||
key: "system.attack.roll.trait",
|
||||
label: "Trait",
|
||||
key: 'system.attack.roll.trait',
|
||||
label: 'Trait',
|
||||
field: 'system.api.models.actions.actionsTypes.attack.schema.fields.roll.fields.trait'
|
||||
},
|
||||
{
|
||||
key: "system.attack.range",
|
||||
label: "Range",
|
||||
key: 'system.attack.range',
|
||||
label: 'Range',
|
||||
field: 'system.api.models.actions.actionsTypes.attack.schema.fields.range'
|
||||
},
|
||||
{
|
||||
key: "system.baseScore",
|
||||
name: "armor.min",
|
||||
label: "Armor Score (Min)",
|
||||
key: 'system.baseScore',
|
||||
name: 'armor.min',
|
||||
label: 'Armor Score (Min)',
|
||||
field: 'system.api.models.items.DHArmor.schema.fields.baseScore',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.baseScore",
|
||||
name: "armor.max",
|
||||
label: "Armor Score (Max)",
|
||||
key: 'system.baseScore',
|
||||
name: 'armor.max',
|
||||
label: 'Armor Score (Max)',
|
||||
field: 'system.api.models.items.DHArmor.schema.fields.baseScore',
|
||||
operator: "lte"
|
||||
operator: 'lte'
|
||||
},
|
||||
{
|
||||
key: "system.itemFeatures",
|
||||
label: "Features",
|
||||
choices: () => [...Object.entries(CONFIG.DH.ITEM.weaponFeatures), ...Object.entries(CONFIG.DH.ITEM.armorFeatures)].map(([k,v]) => ({ value: k, label: v.label})),
|
||||
operator: "contains3"
|
||||
key: 'system.itemFeatures',
|
||||
label: 'Features',
|
||||
choices: () =>
|
||||
[
|
||||
...Object.entries(CONFIG.DH.ITEM.weaponFeatures),
|
||||
...Object.entries(CONFIG.DH.ITEM.armorFeatures)
|
||||
].map(([k, v]) => ({ value: k, label: v.label })),
|
||||
operator: 'contains3'
|
||||
}
|
||||
]
|
||||
},
|
||||
features: {
|
||||
columns: [
|
||||
|
||||
],
|
||||
filters: [
|
||||
|
||||
]
|
||||
columns: [],
|
||||
filters: []
|
||||
},
|
||||
cards: {
|
||||
columns: [
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type"
|
||||
key: 'system.type',
|
||||
label: 'Type'
|
||||
},
|
||||
{
|
||||
key: "system.domain",
|
||||
label: "Domain"
|
||||
key: 'system.domain',
|
||||
label: 'Domain'
|
||||
},
|
||||
{
|
||||
key: "system.level",
|
||||
label: "Level"
|
||||
key: 'system.level',
|
||||
label: 'Level'
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type",
|
||||
key: 'system.type',
|
||||
label: 'Type',
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.type'
|
||||
},
|
||||
{
|
||||
key: "system.domain",
|
||||
label: "Domain",
|
||||
key: 'system.domain',
|
||||
label: 'Domain',
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.domain',
|
||||
operator: "contains2"
|
||||
operator: 'contains2'
|
||||
},
|
||||
{
|
||||
key: "system.level",
|
||||
name: "level.min",
|
||||
label: "Level (Min)",
|
||||
key: 'system.level',
|
||||
name: 'level.min',
|
||||
label: 'Level (Min)',
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.level',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.level",
|
||||
name: "level.max",
|
||||
label: "Level (Max)",
|
||||
key: 'system.level',
|
||||
name: 'level.max',
|
||||
label: 'Level (Max)',
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.level',
|
||||
operator: "lte"
|
||||
operator: 'lte'
|
||||
},
|
||||
{
|
||||
key: "system.recallCost",
|
||||
name: "recall.min",
|
||||
label: "Recall Cost (Min)",
|
||||
key: 'system.recallCost',
|
||||
name: 'recall.min',
|
||||
label: 'Recall Cost (Min)',
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.recallCost',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.recallCost",
|
||||
name: "recall.max",
|
||||
label: "Recall Cost (Max)",
|
||||
key: 'system.recallCost',
|
||||
name: 'recall.max',
|
||||
label: 'Recall Cost (Max)',
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.recallCost',
|
||||
operator: "lte"
|
||||
operator: 'lte'
|
||||
}
|
||||
]
|
||||
},
|
||||
classes: {
|
||||
columns: [
|
||||
{
|
||||
key: "system.evasion",
|
||||
label: "Evasion"
|
||||
key: 'system.evasion',
|
||||
label: 'Evasion'
|
||||
},
|
||||
{
|
||||
key: "system.hitPoints",
|
||||
label: "Hit Points"
|
||||
key: 'system.hitPoints',
|
||||
label: 'Hit Points'
|
||||
},
|
||||
{
|
||||
key: "system.domains",
|
||||
label: "Domains"
|
||||
key: 'system.domains',
|
||||
label: 'Domains'
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.evasion",
|
||||
name: "evasion.min",
|
||||
label: "Evasion (Min)",
|
||||
key: 'system.evasion',
|
||||
name: 'evasion.min',
|
||||
label: 'Evasion (Min)',
|
||||
field: 'system.api.models.items.DHClass.schema.fields.evasion',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.evasion",
|
||||
name: "evasion.max",
|
||||
label: "Evasion (Max)",
|
||||
key: 'system.evasion',
|
||||
name: 'evasion.max',
|
||||
label: 'Evasion (Max)',
|
||||
field: 'system.api.models.items.DHClass.schema.fields.evasion',
|
||||
operator: "lte"
|
||||
operator: 'lte'
|
||||
},
|
||||
{
|
||||
key: "system.hitPoints",
|
||||
name: "hp.min",
|
||||
label: "Hit Points (Min)",
|
||||
key: 'system.hitPoints',
|
||||
name: 'hp.min',
|
||||
label: 'Hit Points (Min)',
|
||||
field: 'system.api.models.items.DHClass.schema.fields.hitPoints',
|
||||
operator: "gte"
|
||||
operator: 'gte'
|
||||
},
|
||||
{
|
||||
key: "system.hitPoints",
|
||||
name: "hp.max",
|
||||
label: "Hit Points (Max)",
|
||||
key: 'system.hitPoints',
|
||||
name: 'hp.max',
|
||||
label: 'Hit Points (Max)',
|
||||
field: 'system.api.models.items.DHClass.schema.fields.hitPoints',
|
||||
operator: "lte"
|
||||
operator: 'lte'
|
||||
},
|
||||
{
|
||||
key: "system.domains",
|
||||
label: "Domains",
|
||||
choices: () => Object.values(CONFIG.DH.DOMAIN.domains).map(d => ({ value: d.id, label: d.label})),
|
||||
operator: "contains2"
|
||||
key: 'system.domains',
|
||||
label: 'Domains',
|
||||
choices: () => Object.values(CONFIG.DH.DOMAIN.domains).map(d => ({ value: d.id, label: d.label })),
|
||||
operator: 'contains2'
|
||||
}
|
||||
]
|
||||
},
|
||||
subclasses: {
|
||||
columns: [
|
||||
{
|
||||
key: "id",
|
||||
label: "Class",
|
||||
format: (id) => {
|
||||
return "";
|
||||
}
|
||||
key: 'system.linkedClass',
|
||||
label: 'Class',
|
||||
format: linkedClass => linkedClass.name
|
||||
},
|
||||
{
|
||||
key: "system.spellcastingTrait",
|
||||
label: "Spellcasting Trait"
|
||||
}
|
||||
],
|
||||
filters: []
|
||||
},
|
||||
beastforms: {
|
||||
columns: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier"
|
||||
},
|
||||
{
|
||||
key: "system.mainTrait",
|
||||
label: "Main Trait"
|
||||
key: 'system.spellcastingTrait',
|
||||
label: 'Spellcasting Trait'
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier",
|
||||
key: 'system.linkedClass.uuid',
|
||||
label: 'Class',
|
||||
choices: (items) => {
|
||||
const list = items.map(item => ({ value: item.system.linkedClass.uuid, label: item.system.linkedClass.name }));
|
||||
return list.reduce((a,c) => {
|
||||
if(!(a.find(i => i.value === c.value))) a.push(c);
|
||||
return a;
|
||||
}, []);
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
beastforms: {
|
||||
columns: [
|
||||
{
|
||||
key: 'system.tier',
|
||||
label: 'Tier'
|
||||
},
|
||||
{
|
||||
key: 'system.mainTrait',
|
||||
label: 'Main Trait'
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: 'system.tier',
|
||||
label: 'Tier',
|
||||
field: 'system.api.models.items.DHBeastform.schema.fields.tier'
|
||||
},
|
||||
{
|
||||
key: "system.mainTrait",
|
||||
label: "Main Trait",
|
||||
key: 'system.mainTrait',
|
||||
label: 'Main Trait',
|
||||
field: 'system.api.models.items.DHBeastform.schema.fields.mainTrait'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const compendiumConfig = {
|
||||
"daggerheart": {
|
||||
id: "daggerheart",
|
||||
label: "DAGGERHEART",
|
||||
daggerheart: {
|
||||
id: 'daggerheart',
|
||||
label: 'DAGGERHEART',
|
||||
folders: {
|
||||
"adversaries": {
|
||||
id: "adversaries",
|
||||
keys: ["adversaries"],
|
||||
label: "Adversaries",
|
||||
type: ["adversary"],
|
||||
listType: "adversaries"
|
||||
adversaries: {
|
||||
id: 'adversaries',
|
||||
keys: ['adversaries'],
|
||||
label: 'Adversaries',
|
||||
type: ['adversary'],
|
||||
listType: 'adversaries'
|
||||
},
|
||||
"ancestries": {
|
||||
id: "ancestries",
|
||||
keys: ["ancestries"],
|
||||
label: "Ancestries",
|
||||
type: ["ancestry"],
|
||||
ancestries: {
|
||||
id: 'ancestries',
|
||||
keys: ['ancestries'],
|
||||
label: 'Ancestries',
|
||||
type: ['ancestry'],
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["ancestries"],
|
||||
label: "Features",
|
||||
type: ["feature"]
|
||||
features: {
|
||||
id: 'features',
|
||||
keys: ['ancestries'],
|
||||
label: 'Features',
|
||||
type: ['feature']
|
||||
}
|
||||
}
|
||||
},
|
||||
"equipments": {
|
||||
id: "equipments",
|
||||
keys: ["armors", "weapons", "consumables", "loot"],
|
||||
label: "Equipment",
|
||||
type: ["armor", "weapon", "consumable", "loot"],
|
||||
listType: "items"
|
||||
equipments: {
|
||||
id: 'equipments',
|
||||
keys: ['armors', 'weapons', 'consumables', 'loot'],
|
||||
label: 'Equipment',
|
||||
type: ['armor', 'weapon', 'consumable', 'loot'],
|
||||
listType: 'items'
|
||||
},
|
||||
"classes": {
|
||||
id: "classes",
|
||||
keys: ["classes"],
|
||||
label: "Classes",
|
||||
type: ["class"],
|
||||
classes: {
|
||||
id: 'classes',
|
||||
keys: ['classes'],
|
||||
label: 'Classes',
|
||||
type: ['class'],
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["classes"],
|
||||
label: "Features",
|
||||
type: ["feature"]
|
||||
features: {
|
||||
id: 'features',
|
||||
keys: ['classes'],
|
||||
label: 'Features',
|
||||
type: ['feature']
|
||||
},
|
||||
"items": {
|
||||
id: "items",
|
||||
keys: ["classes"],
|
||||
label: "Items",
|
||||
type: ["armor", "weapon", "consumable", "loot"],
|
||||
listType: "items"
|
||||
items: {
|
||||
id: 'items',
|
||||
keys: ['classes'],
|
||||
label: 'Items',
|
||||
type: ['armor', 'weapon', 'consumable', 'loot'],
|
||||
listType: 'items'
|
||||
}
|
||||
},
|
||||
listType: "classes"
|
||||
listType: 'classes'
|
||||
},
|
||||
"subclasses": {
|
||||
id: "subclasses",
|
||||
keys: ["subclasses"],
|
||||
label: "Subclasses",
|
||||
type: ["subclass"],
|
||||
listType: "subclasses"
|
||||
subclasses: {
|
||||
id: 'subclasses',
|
||||
keys: ['subclasses'],
|
||||
label: 'Subclasses',
|
||||
type: ['subclass'],
|
||||
listType: 'subclasses'
|
||||
},
|
||||
"domains": {
|
||||
id: "domains",
|
||||
keys: ["domains"],
|
||||
label: "Domain Cards",
|
||||
type: ["domainCard"],
|
||||
listType: "cards"
|
||||
domains: {
|
||||
id: 'domains',
|
||||
keys: ['domains'],
|
||||
label: 'Domain Cards',
|
||||
type: ['domainCard'],
|
||||
listType: 'cards'
|
||||
},
|
||||
"communities": {
|
||||
id: "communities",
|
||||
keys: ["communities"],
|
||||
label: "Communities",
|
||||
type: ["community"],
|
||||
communities: {
|
||||
id: 'communities',
|
||||
keys: ['communities'],
|
||||
label: 'Communities',
|
||||
type: ['community'],
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["communities"],
|
||||
label: "Features",
|
||||
type: ["feature"]
|
||||
features: {
|
||||
id: 'features',
|
||||
keys: ['communities'],
|
||||
label: 'Features',
|
||||
type: ['feature']
|
||||
}
|
||||
}
|
||||
},
|
||||
"environments": {
|
||||
id: "environments",
|
||||
keys: ["environments"],
|
||||
label: "Environments",
|
||||
type: ["environment"]
|
||||
environments: {
|
||||
id: 'environments',
|
||||
keys: ['environments'],
|
||||
label: 'Environments',
|
||||
type: ['environment']
|
||||
},
|
||||
"beastforms": {
|
||||
id: "beastforms",
|
||||
keys: ["beastforms"],
|
||||
label: "Beastforms",
|
||||
type: ["beastform"],
|
||||
listType: "beastforms",
|
||||
beastforms: {
|
||||
id: 'beastforms',
|
||||
keys: ['beastforms'],
|
||||
label: 'Beastforms',
|
||||
type: ['beastform'],
|
||||
listType: 'beastforms',
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["beastforms"],
|
||||
label: "Features",
|
||||
type: ["feature"]
|
||||
features: {
|
||||
id: 'features',
|
||||
keys: ['beastforms'],
|
||||
label: 'Features',
|
||||
type: ['feature']
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -51,11 +51,13 @@ export default class DHAttackAction extends DHDamageAction {
|
|||
const labels = [];
|
||||
const { roll, range, damage } = this;
|
||||
|
||||
if (roll.trait) labels.push(game.i18n.localize(`DAGGERHEART.CONFIG.Traits.${roll.trait}.short`))
|
||||
if (roll.trait) labels.push(game.i18n.localize(`DAGGERHEART.CONFIG.Traits.${roll.trait}.short`));
|
||||
if (range) labels.push(game.i18n.localize(`DAGGERHEART.CONFIG.Range.${range}.short`));
|
||||
|
||||
for (const { value, type } of damage.parts) {
|
||||
const str = Roll.replaceFormulaData(value.getFormula(), this.actor?.getRollData() ?? {});
|
||||
const useAltDamage = this.actor?.effects?.find(x => x.type === 'horde')?.active;
|
||||
for (const { value, valueAlt, type } of damage.parts) {
|
||||
const usedValue = useAltDamage ? valueAlt : value;
|
||||
const str = Roll.replaceFormulaData(usedValue.getFormula(), this.actor?.getRollData() ?? {});
|
||||
|
||||
const icons = Array.from(type)
|
||||
.map(t => CONFIG.DH.GENERAL.damageTypes[t]?.icon)
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
|||
dialog: {
|
||||
configure: hasRoll
|
||||
},
|
||||
type: this.type,
|
||||
type: this.roll?.type ?? this.type,
|
||||
hasRoll: hasRoll,
|
||||
hasDamage: this.damage?.parts?.length && this.type !== 'healing',
|
||||
hasHealing: this.damage?.parts?.length && this.type === 'healing',
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ export default class DhpAdversary extends BaseDataActor {
|
|||
CONFIG.DH.id,
|
||||
CONFIG.DH.SETTINGS.gameSettings.Automation
|
||||
).hordeDamage;
|
||||
if (autoHordeDamage && changes.system?.resources?.hitPoints?.value) {
|
||||
if (autoHordeDamage && changes.system?.resources?.hitPoints?.value !== undefined) {
|
||||
const hordeActiveEffect = this.parent.effects.find(x => x.type === 'horde');
|
||||
if (hordeActiveEffect) {
|
||||
const halfHP = Math.ceil(this.resources.hitPoints.max / 2);
|
||||
|
|
|
|||
|
|
@ -115,11 +115,16 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
const typeForDefeated = ['character', 'adversary', 'companion'].find(x => x === this.parent.type);
|
||||
if (defeatedSettings.enabled && typeForDefeated) {
|
||||
const resource = typeForDefeated === 'companion' ? 'stress' : 'hitPoints';
|
||||
if (changes.system.resources[resource]) {
|
||||
const becameMax = changes.system.resources[resource].value === this.resources[resource].max;
|
||||
const resourceValue = changes.system.resources[resource];
|
||||
if (
|
||||
resourceValue &&
|
||||
this.resources[resource].max &&
|
||||
resourceValue.value !== this.resources[resource].value
|
||||
) {
|
||||
const becameMax = resourceValue.value === this.resources[resource].max;
|
||||
const wasMax =
|
||||
this.resources[resource].value === this.resources[resource].max &&
|
||||
this.resources[resource].value !== changes.system.resources[resource].value;
|
||||
this.resources[resource].value !== resourceValue.value;
|
||||
if (becameMax) {
|
||||
this.parent.toggleDefeated(true);
|
||||
} else if (wasMax) {
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ export default class DhCharacter extends BaseDataActor {
|
|||
}
|
||||
|
||||
get multiclass() {
|
||||
const value = this.parent.items.find(x => x.type === 'Class' && x.system.isMulticlass);
|
||||
const value = this.parent.items.find(x => x.type === 'class' && x.system.isMulticlass);
|
||||
const subclass = this.parent.items.find(x => x.type === 'subclass' && x.system.isMulticlass);
|
||||
|
||||
return {
|
||||
|
|
@ -443,7 +443,9 @@ export default class DhCharacter extends BaseDataActor {
|
|||
classFeatures.push(item);
|
||||
} else if (item.system.originItemType === CONFIG.DH.ITEM.featureTypes.subclass.id) {
|
||||
if (this.class.subclass) {
|
||||
const subclassState = this.class.subclass.system.featureState;
|
||||
const prop = item.system.multiclassOrigin ? 'multiclass' : 'class';
|
||||
const subclassState = this[prop].subclass?.system?.featureState;
|
||||
if (!subclassState) continue;
|
||||
|
||||
if (
|
||||
item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.foundation ||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
this.currentTargets = this.getTargetList();
|
||||
// this.registerTargetHook();
|
||||
|
||||
if (this.targetMode === true && this.hasRoll) {
|
||||
if (this.hasRoll) {
|
||||
this.targetShort = this.targets.reduce(
|
||||
(a, c) => {
|
||||
if (c.hit) a.hit += 1;
|
||||
|
|
@ -126,7 +126,8 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
}
|
||||
|
||||
this.canViewSecret = this.parent.speakerActor?.testUserPermission(game.user, 'OBSERVER');
|
||||
this.canButtonApply = game.user.isGM;
|
||||
this.canButtonApply = game.user.isGM; //temp
|
||||
this.isGM = game.user.isGM; //temp
|
||||
}
|
||||
|
||||
getTargetList() {
|
||||
|
|
|
|||
|
|
@ -148,7 +148,6 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
for (let f of this.features) {
|
||||
const fBase = f.item ?? f;
|
||||
const feature = fBase.system ? fBase : await foundry.utils.fromUuid(fBase.uuid);
|
||||
const multiclass = this.isMulticlass ? 'multiclass' : null;
|
||||
features.push(
|
||||
foundry.utils.mergeObject(
|
||||
feature.toObject(),
|
||||
|
|
@ -156,7 +155,8 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
_stats: { compendiumSource: fBase.uuid },
|
||||
system: {
|
||||
originItemType: this.parent.type,
|
||||
identifier: multiclass ?? (f.item ? f.type : null)
|
||||
identifier: f.item ? f.type : null,
|
||||
multiclassOrigin: this.isMulticlass
|
||||
}
|
||||
},
|
||||
{ inplace: false }
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ export default class DHFeature extends BaseDataItem {
|
|||
nullable: true,
|
||||
initial: null
|
||||
}),
|
||||
multiclassOrigin: new fields.BooleanField({ initial: false }),
|
||||
identifier: new fields.StringField()
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import ForeignDocumentUUIDField from '../fields/foreignDocumentUUIDField.mjs';
|
||||
import ItemLinkFields from '../fields/itemLinkFields.mjs';
|
||||
import BaseDataItem from './base.mjs';
|
||||
|
||||
|
|
@ -25,7 +26,8 @@ export default class DHSubclass extends BaseDataItem {
|
|||
}),
|
||||
features: new ItemLinkFields(),
|
||||
featureState: new fields.NumberField({ required: true, initial: 1, min: 1 }),
|
||||
isMulticlass: new fields.BooleanField({ initial: false })
|
||||
isMulticlass: new fields.BooleanField({ initial: false }),
|
||||
linkedClass: new ForeignDocumentUUIDField({ type: 'Item', nullable: true, initial: null })
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -167,13 +167,11 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
|
|||
|
||||
if (subclass) {
|
||||
const featureState = subclass.system.featureState;
|
||||
const featureType = subclass
|
||||
? (subclass.system.features.find(x => x.item?.uuid === this.parent.uuid)?.type ?? null)
|
||||
: null;
|
||||
|
||||
if (
|
||||
(featureType === CONFIG.DH.ITEM.featureSubTypes.specialization && featureState < 2) ||
|
||||
(featureType === CONFIG.DH.ITEM.featureSubTypes.mastery && featureState < 3)
|
||||
(this.parent.system.identifier === CONFIG.DH.ITEM.featureSubTypes.specialization &&
|
||||
featureState < 2) ||
|
||||
(this.parent.system.identifier === CONFIG.DH.ITEM.featureSubTypes.mastery && featureState < 3)
|
||||
) {
|
||||
this.transfer = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { emitAsGM, GMUpdateEvent } from '../systemRegistration/socket.mjs';
|
||||
import { LevelOptionType } from '../data/levelTier.mjs';
|
||||
import DHFeature from '../data/item/feature.mjs';
|
||||
import { damageKeyToNumber, versionCompare } from '../helpers/utils.mjs';
|
||||
import { damageKeyToNumber } from '../helpers/utils.mjs';
|
||||
import DhCompanionLevelUp from '../applications/levelup/companionLevelup.mjs';
|
||||
|
||||
export default class DhpActor extends Actor {
|
||||
|
|
@ -164,10 +164,10 @@ export default class DhpActor extends Actor {
|
|||
if (multiclass) {
|
||||
const multiclassItem = this.items.find(x => x.uuid === multiclass.itemUuid);
|
||||
const multiclassFeatures = this.items.filter(
|
||||
x => x.system.originItemType === 'class' && x.system.identifier === 'multiclass'
|
||||
x => x.system.originItemType === 'class' && x.system.multiclassOrigin
|
||||
);
|
||||
const subclassFeatures = this.items.filter(
|
||||
x => x.system.originItemType === 'subclass' && x.system.identifier === 'multiclass'
|
||||
x => x.system.originItemType === 'subclass' && x.system.multiclassOrigin
|
||||
);
|
||||
|
||||
this.deleteEmbeddedDocuments(
|
||||
|
|
@ -759,7 +759,7 @@ export default class DhpActor extends Actor {
|
|||
}
|
||||
|
||||
const parsedJSON = JSON.parse(json);
|
||||
if (versionCompare(parsedJSON._stats.systemVersion, '1.1.0')) {
|
||||
if (foundry.utils.isNewerVersion('1.1.0', parsedJSON._stats.systemVersion)) {
|
||||
const confirmed = await foundry.applications.api.DialogV2.confirm({
|
||||
window: {
|
||||
title: game.i18n.localize('DAGGERHEART.ACTORS.Character.InvalidOldCharacterImportTitle')
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ export default function DhDamageEnricher(match, _options) {
|
|||
const parts = match[1].split('|').map(x => x.trim());
|
||||
|
||||
let value = null,
|
||||
type = null;
|
||||
type = null,
|
||||
inline = false;
|
||||
|
||||
parts.forEach(part => {
|
||||
const split = part.split(':').map(x => x.toLowerCase().trim());
|
||||
|
|
@ -14,16 +15,19 @@ export default function DhDamageEnricher(match, _options) {
|
|||
case 'type':
|
||||
type = split[1];
|
||||
break;
|
||||
case 'inline':
|
||||
inline = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!value || !value) return match[0];
|
||||
|
||||
return getDamageMessage(value, type, match[0]);
|
||||
return getDamageMessage(value, type, inline, match[0]);
|
||||
}
|
||||
|
||||
function getDamageMessage(damage, type, defaultElement) {
|
||||
function getDamageMessage(damage, type, inline, defaultElement) {
|
||||
const typeIcons = type
|
||||
.replace('[', '')
|
||||
.replace(']', '')
|
||||
|
|
@ -40,7 +44,7 @@ function getDamageMessage(damage, type, defaultElement) {
|
|||
|
||||
const dualityElement = document.createElement('span');
|
||||
dualityElement.innerHTML = `
|
||||
<button class="enriched-damage-button"
|
||||
<button class="enriched-damage-button${inline ? ' inline' : ''}"
|
||||
data-value="${damage}"
|
||||
data-type="${type}"
|
||||
data-tooltip="${game.i18n.localize('DAGGERHEART.GENERAL.damage')}"
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ function getDualityMessage(roll, flavor) {
|
|||
|
||||
const dualityElement = document.createElement('span');
|
||||
dualityElement.innerHTML = `
|
||||
<button class="duality-roll-button"
|
||||
<button class="duality-roll-button${roll.inline ? ' inline' : ''}"
|
||||
data-title="${label}"
|
||||
data-label="${dataLabel}"
|
||||
data-reaction="${roll.reaction ? 'true' : 'false'}"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ export default function DhTemplateEnricher(match, _options) {
|
|||
const parts = match[1].split('|').map(x => x.trim());
|
||||
|
||||
let type = null,
|
||||
range = null;
|
||||
range = null,
|
||||
inline = false;
|
||||
|
||||
parts.forEach(part => {
|
||||
const split = part.split(':').map(x => x.toLowerCase().trim());
|
||||
|
|
@ -20,6 +21,9 @@ export default function DhTemplateEnricher(match, _options) {
|
|||
);
|
||||
range = matchedRange?.id;
|
||||
break;
|
||||
case 'inline':
|
||||
inline = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -30,7 +34,7 @@ export default function DhTemplateEnricher(match, _options) {
|
|||
|
||||
const templateElement = document.createElement('span');
|
||||
templateElement.innerHTML = `
|
||||
<button class="measured-template-button" data-type="${type}" data-range="${range}">
|
||||
<button class="measured-template-button${inline ? ' inline' : ''}" data-type="${type}" data-range="${range}">
|
||||
${label} - ${game.i18n.localize(`DAGGERHEART.CONFIG.Range.${range}.name`)}
|
||||
</button>
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -420,14 +420,3 @@ export async function createEmbeddedItemsWithEffects(actor, baseData) {
|
|||
export const slugify = name => {
|
||||
return name.toLowerCase().replaceAll(' ', '-').replaceAll('.', '');
|
||||
};
|
||||
|
||||
export const versionCompare = (current, target) => {
|
||||
const currentSplit = current.split('.').map(x => Number.parseInt(x));
|
||||
const targetSplit = target.split('.').map(x => Number.parseInt(x));
|
||||
for (var i = 0; i < currentSplit.length; i++) {
|
||||
if (currentSplit[i] < targetSplit[i]) return true;
|
||||
if (currentSplit[i] > targetSplit[i]) return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
import { versionCompare } from '../helpers/utils.mjs';
|
||||
|
||||
export async function runMigrations() {
|
||||
let lastMigrationVersion = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LastMigrationVersion);
|
||||
if (!lastMigrationVersion) lastMigrationVersion = '1.0.6';
|
||||
|
||||
if (versionCompare(lastMigrationVersion, '1.1.0')) {
|
||||
if (foundry.utils.isNewerVersion('1.1.0', lastMigrationVersion)) {
|
||||
const lockedPacks = [];
|
||||
const compendiumActors = [];
|
||||
for (let pack of game.packs) {
|
||||
if (pack.locked) {
|
||||
lockedPacks.push(pack.collection);
|
||||
await pack.configure({ locked: false });
|
||||
}
|
||||
const documents = await pack.getDocuments();
|
||||
compendiumActors.push(...documents.filter(x => x.type === 'character'));
|
||||
}
|
||||
|
|
@ -34,8 +37,64 @@ export async function runMigrations() {
|
|||
actor.updateEmbeddedDocuments('Item', items);
|
||||
});
|
||||
|
||||
for (let packId of lockedPacks) {
|
||||
const pack = game.packs.get(packId);
|
||||
await pack.configure({ locked: true });
|
||||
}
|
||||
|
||||
lastMigrationVersion = '1.1.0';
|
||||
}
|
||||
|
||||
if (foundry.utils.isNewerVersion('1.1.1', lastMigrationVersion)) {
|
||||
const lockedPacks = [];
|
||||
const compendiumClasses = [];
|
||||
const compendiumActors = [];
|
||||
for (let pack of game.packs) {
|
||||
if (pack.locked) {
|
||||
lockedPacks.push(pack.collection);
|
||||
await pack.configure({ locked: false });
|
||||
}
|
||||
const documents = await pack.getDocuments();
|
||||
compendiumClasses.push(...documents.filter(x => x.type === 'class'));
|
||||
compendiumActors.push(...documents.filter(x => x.type === 'character'));
|
||||
}
|
||||
|
||||
[...compendiumActors, ...game.actors.filter(x => x.type === 'character')].forEach(char => {
|
||||
const multiclass = char.items.find(x => x.type === 'class' && x.system.isMulticlass);
|
||||
const multiclassSubclass =
|
||||
multiclass?.system?.subclasses?.length > 0 ? multiclass.system.subclasses[0] : null;
|
||||
char.items.forEach(item => {
|
||||
if (item.type === 'feature' && item.system.identifier === 'multiclass') {
|
||||
const base = item.system.originItemType === 'class' ? multiclass : multiclassSubclass;
|
||||
if (base) {
|
||||
const baseFeature = base.system.features.find(x => x.item.name === item.name);
|
||||
if (baseFeature) {
|
||||
item.update({
|
||||
system: {
|
||||
multiclassOrigin: true,
|
||||
identifier: baseFeature.type
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const worldClasses = game.items.filter(x => x.type === 'class');
|
||||
for (let classVal of [...compendiumClasses, ...worldClasses]) {
|
||||
for (let subclass of classVal.system.subclasses) {
|
||||
await subclass.update({ 'system.linkedClass': classVal.uuid });
|
||||
}
|
||||
}
|
||||
|
||||
for (let packId of lockedPacks) {
|
||||
const pack = game.packs.get(packId);
|
||||
await pack.configure({ locked: true });
|
||||
}
|
||||
|
||||
lastMigrationVersion = '1.1.1';
|
||||
}
|
||||
|
||||
await game.settings.set(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LastMigrationVersion, lastMigrationVersion);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@
|
|||
"cost": [
|
||||
{
|
||||
"scalable": false,
|
||||
"key": "stress",
|
||||
"key": "fear",
|
||||
"value": 1,
|
||||
"keyIsID": false,
|
||||
"step": null
|
||||
|
|
@ -281,7 +281,7 @@
|
|||
"type": "self",
|
||||
"amount": null
|
||||
},
|
||||
"name": "Mark Stress",
|
||||
"name": "Spend Fear",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"range": ""
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
"type": "attack",
|
||||
"_id": "a6WROv0OKx0lbYVa",
|
||||
"systemPath": "actions",
|
||||
"description": "",
|
||||
"description": "<p>Choose an element for your breath (such as electricity, fire, or ice). You can use this breath against a target or group of targets within Very Close range, treating it as an Instinct weapon that deals <strong>d8</strong> magic damage using your Proficiency.</p>",
|
||||
"chatDisplay": true,
|
||||
"actionType": "action",
|
||||
"cost": [],
|
||||
|
|
@ -95,12 +95,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1753994055921,
|
||||
"modifiedTime": 1753994120065,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755938895948,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!sRaE3CgkgjBF1UpV"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,12 +70,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754174600538,
|
||||
"modifiedTime": 1754325498779,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943467705,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_id": "vegl3bFOq3pcFTWT",
|
||||
"sort": 300000,
|
||||
|
|
|
|||
|
|
@ -72,12 +72,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754222247012,
|
||||
"modifiedTime": 1754325498779,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943479440,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!ZNwUTCyGCEcidZFv"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,12 +68,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754246931974,
|
||||
"modifiedTime": 1754325498779,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943488697,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!nRAyoC0fOzXPDa4z"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,12 +68,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754268869310,
|
||||
"modifiedTime": 1754325517617,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943505024,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!BTyfve69LKqoOi9S"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,12 +72,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754325275832,
|
||||
"modifiedTime": 1754500637635,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755943515533,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!CvHlkHZfpMiCz5uT"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,12 +68,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754351482530,
|
||||
"modifiedTime": 1754355938087,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755943523935,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!5ZnlJ5bEoyOTkUJv"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,12 +76,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754349743129,
|
||||
"modifiedTime": 1754350005553,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755943536635,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!DchOzHcWIJE9FKcR"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,12 +72,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754255776706,
|
||||
"modifiedTime": 1754325510730,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943545980,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!xCUWwJz4WSthvLfy"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,12 +72,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754253505323,
|
||||
"modifiedTime": 1754325500455,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943555087,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!5LwX4m8ziY3F1ZGC"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
"type": "effect",
|
||||
"_id": "ZBVqSlsDUKf8uGrI",
|
||||
"systemPath": "actions",
|
||||
"description": "",
|
||||
"description": "<p>Record three sayings or values your upbringing instilled in you. Once per rest, when you describe how you’re embodying one of these principles through your current action, you can roll a d20 as your Hope Die</p>",
|
||||
"chatDisplay": true,
|
||||
"actionType": "action",
|
||||
"cost": [],
|
||||
|
|
@ -41,12 +41,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754010247432,
|
||||
"modifiedTime": 1754010247432,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755938935013,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"sort": 0,
|
||||
"ownership": {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.BTyfve69LKqoOi9S"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -43,12 +44,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754268237448,
|
||||
"modifiedTime": 1754268308097,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943503629,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!TIUsIlTS1WkK5vr2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.xCUWwJz4WSthvLfy"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754256077777,
|
||||
"modifiedTime": 1754256954656,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755943544886,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!NAFU9roaVG7f3RNJ"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.xCUWwJz4WSthvLfy"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -35,12 +36,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754256112978,
|
||||
"modifiedTime": 1754256959532,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755943545973,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!bcNe5qP3o6CKadhK"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.5ZnlJ5bEoyOTkUJv"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754352806098,
|
||||
"modifiedTime": 1754354057333,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755943522722,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!M5mpGoAj8LRkylrY"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.DchOzHcWIJE9FKcR"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -35,12 +36,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754349604941,
|
||||
"modifiedTime": 1754349648910,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755943535524,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!wg1H0hROc2acHwZh"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.CvHlkHZfpMiCz5uT"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -43,12 +44,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754322815758,
|
||||
"modifiedTime": 1754323509061,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943514465,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!h161OSIK24Up4qNd"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.DchOzHcWIJE9FKcR"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -35,12 +36,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754349604941,
|
||||
"modifiedTime": 1754349673276,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755943536628,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!GLpRVxnY5E82khxH"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.5LwX4m8ziY3F1ZGC"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -47,12 +48,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754253538384,
|
||||
"modifiedTime": 1754254543287,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755943553625,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!qqQlgCqhOivUFoQn"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.5LwX4m8ziY3F1ZGC"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -47,12 +48,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754253587683,
|
||||
"modifiedTime": 1754254721869,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755943555081,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!4y9Ph7RsCIAbkwTk"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.nRAyoC0fOzXPDa4z"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -47,12 +48,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754245881893,
|
||||
"modifiedTime": 1754245958817,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943487549,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!rKRxFBlkbh9cDK8K"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.CvHlkHZfpMiCz5uT"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -35,12 +36,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754323643089,
|
||||
"modifiedTime": 1754323735227,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943515526,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!95QxNZwgyEm1LqdG"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.vegl3bFOq3pcFTWT"
|
||||
},
|
||||
"effects": [],
|
||||
"ownership": {
|
||||
|
|
@ -33,12 +34,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754174653653,
|
||||
"modifiedTime": 1754236659263,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943465827,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_id": "ld8MIvk0xVJydSBz",
|
||||
"sort": 100000,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.nRAyoC0fOzXPDa4z"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754246011733,
|
||||
"modifiedTime": 1754246076491,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943488691,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!SUo8NPBPO8aN193u"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.ZNwUTCyGCEcidZFv"
|
||||
},
|
||||
"effects": [],
|
||||
"folder": "AZWrSJzGXltzQhAJ",
|
||||
|
|
@ -43,12 +44,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754221346981,
|
||||
"modifiedTime": 1754236671909,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943479431,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!xp0XMjYT85Q7E90o"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.ZNwUTCyGCEcidZFv"
|
||||
},
|
||||
"effects": [],
|
||||
"folder": "AZWrSJzGXltzQhAJ",
|
||||
|
|
@ -35,12 +36,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754221102716,
|
||||
"modifiedTime": 1754236671090,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943478132,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!W9hs5kxOWeY7eA4Q"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.BTyfve69LKqoOi9S"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754268318903,
|
||||
"modifiedTime": 1754268377047,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943505016,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!zsUglcU4NgZ8tNgZ"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.5ZnlJ5bEoyOTkUJv"
|
||||
},
|
||||
"effects": [],
|
||||
"sort": 0,
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754354451615,
|
||||
"modifiedTime": 1754355901649,
|
||||
"lastModifiedBy": "Q9NoTaEarn3VMS6Z"
|
||||
"modifiedTime": 1755943523928,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_key": "!items!y7ERWRIpJsdP9Re4"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@
|
|||
}
|
||||
],
|
||||
"featureState": 1,
|
||||
"isMulticlass": false
|
||||
"isMulticlass": false,
|
||||
"linkedClass": "Compendium.daggerheart.classes.Item.vegl3bFOq3pcFTWT"
|
||||
},
|
||||
"effects": [],
|
||||
"ownership": {
|
||||
|
|
@ -37,12 +38,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.1.0",
|
||||
"createdTime": 1754174655078,
|
||||
"modifiedTime": 1754236660088,
|
||||
"lastModifiedBy": "LgnbNMLaxandgMQq"
|
||||
"modifiedTime": 1755943467695,
|
||||
"lastModifiedBy": "tt3PwMBXcTLCtIQU"
|
||||
},
|
||||
"_id": "XTSODVM8st75Os8M",
|
||||
"sort": 200000,
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@
|
|||
.flavor-text {
|
||||
font-size: var(--font-size-12);
|
||||
line-height: 20px;
|
||||
color: var(--color-dark-4);
|
||||
color: light-dark(@dark, @beige);
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
|
|
|
|||
14
styles/less/global/enrichment.less
Normal file
14
styles/less/global/enrichment.less
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.measured-template-button,
|
||||
.enriched-damage-button,
|
||||
.duality-roll-button {
|
||||
display: inline;
|
||||
|
||||
&.inline {
|
||||
min-height: unset;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
12
styles/less/global/global.less
Normal file
12
styles/less/global/global.less
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.drag-area {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border: 1px dashed light-dark(@dark-blue-50, @beige-50);
|
||||
border-radius: 3px;
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
font-family: @font-body;
|
||||
}
|
||||
|
|
@ -2,6 +2,8 @@
|
|||
@import './dialog.less';
|
||||
@import './chat.less';
|
||||
@import './elements.less';
|
||||
@import './enrichment.less';
|
||||
@import './global.less';
|
||||
@import './tab-navigation.less';
|
||||
@import './tab-form-footer.less';
|
||||
@import './tab-actions.less';
|
||||
|
|
|
|||
|
|
@ -34,18 +34,5 @@
|
|||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.adversaries-dragger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border: 1px dashed light-dark(@dark-blue-50, @beige-50);
|
||||
border-radius: 3px;
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
font-family: @font-body;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,10 +27,6 @@
|
|||
outline: 2px solid light-dark(@dark, @golden);
|
||||
}
|
||||
|
||||
&:placeholder {
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
}
|
||||
|
||||
&::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
display: none;
|
||||
|
|
|
|||
|
|
@ -27,10 +27,6 @@
|
|||
outline: 2px solid light-dark(@dark, @golden);
|
||||
}
|
||||
|
||||
&:placeholder {
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
}
|
||||
|
||||
&::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
display: none;
|
||||
|
|
|
|||
|
|
@ -148,10 +148,6 @@
|
|||
outline: 2px solid light-dark(@dark, @golden);
|
||||
}
|
||||
|
||||
&:placeholder {
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
}
|
||||
|
||||
&::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
display: none;
|
||||
|
|
@ -187,7 +183,7 @@
|
|||
}
|
||||
|
||||
&:has(+ .subfolder-list):after {
|
||||
content: "+";
|
||||
content: '+';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -356,6 +352,8 @@
|
|||
display: grid;
|
||||
grid-template-rows: 0fr;
|
||||
transition: all 0.3s ease-in-out;
|
||||
width: 100%;
|
||||
|
||||
.wrapper {
|
||||
overflow: hidden;
|
||||
display: grid;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"id": "daggerheart",
|
||||
"title": "Daggerheart",
|
||||
"description": "An unofficial implementation of the Daggerheart system",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"compatibility": {
|
||||
"minimum": "13",
|
||||
"verified": "13.347",
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
<div class="adversaries-dragger">
|
||||
<div class="drag-area">
|
||||
{{localize "DAGGERHEART.GENERAL.dropActorsHere"}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@
|
|||
<fieldset>
|
||||
<legend>{{localize "TYPES.Item.subclass"}}</legend>
|
||||
<div class="feature-list">
|
||||
{{#unless source.system.subclasses}}
|
||||
<div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.subclasses")}}</div>
|
||||
{{/unless}}
|
||||
{{#each source.system.subclasses as |subclass index|}}
|
||||
<li class='feature-item'>
|
||||
<div class='feature-line'>
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@
|
|||
{{#unless (eq document.parent.type 'character')}}<a data-action="removeSuggestedItem" data-target="suggestedPrimaryWeapon"><i class="fa-solid fa-trash icon-button"></i></a>{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.weapons")}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
@ -60,6 +62,8 @@
|
|||
{{#unless (eq document.parent.type 'character')}}<a data-action="removeSuggestedItem" data-target="suggestedSecondaryWeapon"><i class="fa-solid fa-trash icon-button"></i></a>{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.weapons")}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
@ -75,6 +79,8 @@
|
|||
{{#unless (eq document.parent.type 'character')}}<a data-action="removeSuggestedItem" data-target="suggestedArmor"><i class="fa-solid fa-trash icon-button"></i></a>{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.armors")}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
@ -85,6 +91,9 @@
|
|||
<fieldset class="one-column drop-section take-section {{#if (eq document.parent.type 'character')}}inactive{{/if}}">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.take"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#unless source.system.inventory.take}}
|
||||
<div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.items")}}</div>
|
||||
{{/unless}}
|
||||
{{#each source.system.inventory.take}}
|
||||
{{#if this}}
|
||||
<div class="suggested-item item-line" data-action="editDoc" data-item-uuid="{{this.uuid}}">
|
||||
|
|
@ -102,6 +111,9 @@
|
|||
<fieldset class="one-column drop-section choice-a-section {{#if (eq document.parent.type 'character')}}inactive{{/if}}">
|
||||
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.thenChoose"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#unless source.system.inventory.choiceA}}
|
||||
<div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.items")}}</div>
|
||||
{{/unless}}
|
||||
{{#each source.system.inventory.choiceA}}
|
||||
{{#if this}}
|
||||
<div class="suggested-item item-line" data-action="editDoc" data-item-uuid="{{this.uuid}}">
|
||||
|
|
@ -119,6 +131,9 @@
|
|||
<fieldset class="one-column drop-section choice-b-section {{#if (eq document.parent.type 'character')}}inactive{{/if}}">
|
||||
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.andEither"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#unless source.system.inventory.choiceB}}
|
||||
<div class="drag-area">{{localize "DAGGERHEART.GENERAL.missingDragDropThing" thing=(localize "DAGGERHEART.GENERAL.items")}}</div>
|
||||
{{/unless}}
|
||||
{{#each source.system.inventory.choiceB}}
|
||||
{{#if this}}
|
||||
<div class="suggested-item item-line" data-action="editDoc" data-item-uuid="{{this.uuid}}">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="roll-part target-section dice-roll" data-action="expandRoll">
|
||||
<div class="roll-part-header"><div><span>Target</span></div></div>
|
||||
{{#if (or (and targets.length (or (gt targetShort.hit 0) (gt targetShort.miss 0))) (and hasSave pendingSaves))}}
|
||||
{{#if isGM}}
|
||||
<div class="roll-part-extra on-reduced">
|
||||
<div class="wrapper">
|
||||
{{#if (or (gt targetShort.hit 0) (gt targetShort.miss 0))}}
|
||||
|
|
@ -30,8 +30,8 @@
|
|||
<img class="target-img" src="{{img}}">
|
||||
<div class="target-data">
|
||||
<div class="target-name" data-perm-id="{{actorId}}"><span>{{name}}</span></div>
|
||||
{{#if (and ../targetMode ../hasRoll)}}
|
||||
<div class="target-hit-status {{#if hit}}is-hit{{else}}is-miss{{/if}}">
|
||||
{{#if (and ../hasRoll (hasProperty this "hit"))}}
|
||||
<div class="target-hit-status {{#if hit}}is-hit{{else}}is-miss{{/if}}" data-perm-id="{{actorId}}" data-perm-hidden="true">
|
||||
{{#if hit}}
|
||||
{{localize "DAGGERHEART.GENERAL.hit.single"}}
|
||||
{{else}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue