mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Merge branch 'development' into feature/673-weapon-custom-formula
This commit is contained in:
commit
442cfd4097
1136 changed files with 12094 additions and 5832 deletions
2
.env.example
Normal file
2
.env.example
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
FOUNDRY_MAIN_PATH=/path/to/foundry/resources/app/main.js
|
||||
FOUNDRY_DATA_PATH=/path/to/foundry/data
|
||||
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: "[BUG] - "
|
||||
about: Create a bug report to help us identify issues and resolve them
|
||||
title: "[Bug] <Insert Title here> "
|
||||
labels: bug
|
||||
type: bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
|
|
@ -24,10 +24,10 @@ A clear and concise description of what you expected to happen.
|
|||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Setup Information:**
|
||||
- OS: [e.g. iOS]
|
||||
- OS: [e.g. iOS, Windows]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Foundry Version [e.g. v13 b342]
|
||||
- System Version [e.g. main-3593f44]
|
||||
- System Version [e.g. v.1.0, v.1.0.1]
|
||||
|
||||
|
||||
**Additional context**
|
||||
|
|
|
|||
14
.github/ISSUE_TEMPLATE/feature_report.md
vendored
Normal file
14
.github/ISSUE_TEMPLATE/feature_report.md
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
name: Feature report
|
||||
about: Create a feature report for suggestions on improving the system
|
||||
title: "[Feature] <Insert Title here> "
|
||||
labels: enhancement, discussion, maybe
|
||||
type: feature
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
**Description**
|
||||
A clear and concise description of what feature needs to be implemented.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain the feature that needs to be implemented.
|
||||
9
.github/ISSUE_TEMPLATE/typo_report.md
vendored
Normal file
9
.github/ISSUE_TEMPLATE/typo_report.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
name: Typo report
|
||||
about: Create a new issue to report a compendium typo
|
||||
title: "[TYPO] - "
|
||||
labels: compendium, typo
|
||||
type: bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
55
.github/PULL_REQUEST_TEMPLATE/community_pull_request_template.md
vendored
Normal file
55
.github/PULL_REQUEST_TEMPLATE/community_pull_request_template.md
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
name: Pull Request
|
||||
about: Create a new pull request
|
||||
title: "[Community PR] <Insert Title here>"
|
||||
labels: community pr
|
||||
assignees: ''
|
||||
---
|
||||
## Description
|
||||
|
||||
Please include a summary of the change and which issue is fixed (if applicable). Also include relevant context or motivation for the change.
|
||||
|
||||
- Fixes #(issue)
|
||||
- Closes #(issue)
|
||||
|
||||
## Type of Change
|
||||
|
||||
Please check the relevant options:
|
||||
|
||||
- [ ] Bug fix
|
||||
- [ ] New feature
|
||||
- [ ] Code cleanup/refactor
|
||||
- [ ] Documentation update
|
||||
- [ ] Test coverage
|
||||
- [ ] Dependency update
|
||||
- [ ] Configuration change
|
||||
- [ ] Other (please describe):
|
||||
|
||||
## How Has This Been Tested?
|
||||
|
||||
Please describe the tests you ran to verify your changes:
|
||||
|
||||
- [ ] Manual testing
|
||||
- [ ] Other:
|
||||
|
||||
## Screenshots (if applicable)
|
||||
|
||||
Include screenshots or GIFs to help explain your changes visually.
|
||||
|
||||
## Checklist
|
||||
|
||||
- [ ] My code follows the project style guidelines
|
||||
- [ ] I have performed a self-review of my code
|
||||
- [ ] I have commented my code where necessary
|
||||
- [ ] I have made corresponding changes to the documentation
|
||||
- [ ] My changes generate no new warnings or errors
|
||||
- [ ] I have added tests that prove my fix or feature works
|
||||
- [ ] New and existing tests pass locally with my changes
|
||||
|
||||
## Additional Comments
|
||||
|
||||
Add any other context or questions here.
|
||||
|
||||
---
|
||||
|
||||
> Thank you for your contribution! 🎉
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
.vscode
|
||||
.env
|
||||
node_modules
|
||||
/packs
|
||||
Build
|
||||
|
|
|
|||
45
README.md
45
README.md
|
|
@ -24,24 +24,41 @@ You can find the documentation here: https://github.com/Foundryborne/daggerheart
|
|||
|
||||
## Development Setup
|
||||
|
||||
- Open a terminal in the directory with the repo `cd <path>/<to>/<repo>`
|
||||
- NOTE: The repo should be placed in the system files are or somewhere else and a link (if on linux) is placed in the system directory
|
||||
- NOTE: Linux link can be made using `ln -snf <path to development folder> daggerheart` inside the system folder
|
||||
- Install npm `npm install`
|
||||
- Update package.json to match your profile
|
||||
1. **Navigate to the repo directory:**
|
||||
|
||||
```
|
||||
"start": "concurrently \"rollup -c --watch\" \"node C:/FoundryDev/resources/app/main.js --dataPath=C:/FoundryDevFiles --noupnp\" \"gulp\"",
|
||||
"start-test": "node C:/FoundryDev/resources/app/main.js --dataPath=C:/FoundryDevFiles && rollup -c --watch && gulp",
|
||||
```bash
|
||||
cd <path>/<to>/<repo>
|
||||
```
|
||||
|
||||
```
|
||||
2. **Install dependencies:**
|
||||
|
||||
- Replace `C:/FoundryDev/resources/app/main.js` with `<your>/<path>/<to>/<foundry>/<main.js>`
|
||||
- The main is likely in `<Foundry Install Location>/resouces/app/main.js`
|
||||
- Replace `--dataPath=C:/FoundryDevFiles` with `<your>/<path>/<to>/<foundry>/<data>`
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
Now you should be able to build the app using `npm start`
|
||||
[Foundry VTT Website][1]
|
||||
3. **Configure your Foundry paths:**
|
||||
|
||||
```bash
|
||||
npm run setup:dev -- --foundry-path="/path/to/foundry/main.js" --data-path="/path/to/data"
|
||||
```
|
||||
|
||||
4. **Start developing:**
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
### Available Scripts
|
||||
|
||||
- `npm start` - Start development with file watching and Foundry launching
|
||||
- `npm run build` - One-time build
|
||||
- `npm run setup:dev -- --foundry-path="<path>" --data-path="<path>"` - Configure development environment
|
||||
|
||||
### Notes
|
||||
|
||||
- The repo should be placed in your Foundry `Data/systems/` directory or symlinked there
|
||||
- Linux symlink can be made using `ln -snf <path to development folder> daggerheart` inside the systems folder
|
||||
- Your `.env` file is ignored by git, so each developer can have their own configuration
|
||||
[Foundry VTT Website][1]
|
||||
|
||||
[1]: https://foundryvtt.com/
|
||||
|
||||
|
|
|
|||
|
|
@ -8,11 +8,12 @@ import RegisterHandlebarsHelpers from './module/helpers/handlebarsHelper.mjs';
|
|||
import { enricherConfig, enricherRenderSetup } from './module/enrichers/_module.mjs';
|
||||
import { getCommandTarget, rollCommandToJSON } from './module/helpers/utils.mjs';
|
||||
import { NarrativeCountdowns } from './module/applications/ui/countdowns.mjs';
|
||||
import { DHRoll, DualityRoll, D20Roll, DamageRoll } from './module/dice/_module.mjs';
|
||||
import { BaseRoll, DHRoll, DualityRoll, D20Roll, DamageRoll } from './module/dice/_module.mjs';
|
||||
import { enrichedDualityRoll } from './module/enrichers/DualityRollEnricher.mjs';
|
||||
import { registerCountdownHooks } from './module/data/countdowns.mjs';
|
||||
import {
|
||||
handlebarsRegistration,
|
||||
runMigrations,
|
||||
settingsRegistration,
|
||||
socketRegistration
|
||||
} from './module/systemRegistration/_module.mjs';
|
||||
|
|
@ -49,9 +50,7 @@ Hooks.once('init', () => {
|
|||
DamageRoll: DamageRoll
|
||||
};
|
||||
|
||||
CONFIG.Dice.rolls = [...CONFIG.Dice.rolls, DHRoll, DualityRoll, D20Roll, DamageRoll];
|
||||
Roll.CHAT_TEMPLATE = 'systems/daggerheart/templates/ui/chat/foundryRoll.hbs';
|
||||
Roll.TOOLTIP_TEMPLATE = 'systems/daggerheart/templates/ui/chat/foundryRollTooltip.hbs';
|
||||
CONFIG.Dice.rolls = [BaseRoll, DHRoll, DualityRoll, D20Roll, DamageRoll];
|
||||
CONFIG.MeasuredTemplate.objectClass = placeables.DhMeasuredTemplate;
|
||||
|
||||
const { DocumentSheetConfig } = foundry.applications.apps;
|
||||
|
|
@ -147,6 +146,11 @@ Hooks.once('init', () => {
|
|||
// Make Compendium Dialog resizable
|
||||
foundry.applications.sidebar.apps.Compendium.DEFAULT_OPTIONS.window.resizable = true;
|
||||
|
||||
DocumentSheetConfig.registerSheet(foundry.documents.Scene, SYSTEM.id, applications.scene.DhSceneConfigSettings, {
|
||||
makeDefault: true,
|
||||
label: 'Daggerheart'
|
||||
});
|
||||
|
||||
settingsRegistration.registerDHSettings();
|
||||
RegisterHandlebarsHelpers.registerHelpers();
|
||||
|
||||
|
|
@ -170,6 +174,8 @@ Hooks.on('ready', async () => {
|
|||
game.user.setFlag(CONFIG.DH.id, CONFIG.DH.FLAGS.userFlags.welcomeMessage, true);
|
||||
}
|
||||
}
|
||||
|
||||
runMigrations();
|
||||
});
|
||||
|
||||
Hooks.once('dicesoniceready', () => {});
|
||||
|
|
|
|||
93
lang/en.json
93
lang/en.json
|
|
@ -26,6 +26,14 @@
|
|||
"CONTROLS": {
|
||||
"inFront": "In Front"
|
||||
},
|
||||
"SCENE": {
|
||||
"TABS": {
|
||||
"SHEET": {
|
||||
"dh": "Daggerheart"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"DAGGERHEART": {
|
||||
"ACTIONS": {
|
||||
"TYPES": {
|
||||
|
|
@ -201,7 +209,10 @@
|
|||
"companionLevelup": {
|
||||
"confirmTitle": "Companion Levelup",
|
||||
"confirmText": "Would you like to level up your companion {name} by {levelChange} levels at this time? (You can do it manually later)"
|
||||
}
|
||||
},
|
||||
"viewLevelups": "View Levelups",
|
||||
"InvalidOldCharacterImportTitle": "Old Character Import",
|
||||
"InvalidOldCharacterImportText": "Character data exported prior to system version 1.1 will not generate a complete character. Do you wish to continue?"
|
||||
},
|
||||
"Companion": {
|
||||
"FIELDS": {
|
||||
|
|
@ -244,6 +255,9 @@
|
|||
}
|
||||
},
|
||||
"APPLICATIONS": {
|
||||
"Attribution": {
|
||||
"title": "Attribution"
|
||||
},
|
||||
"CharacterCreation": {
|
||||
"tabs": {
|
||||
"ancestry": "Ancestry",
|
||||
|
|
@ -498,7 +512,8 @@
|
|||
"pretext": "When you level up, record it on your character sheet, then choose two from the list below or any unmarked from the previous tier.",
|
||||
"posttext": "Take an additional domain card of your level or lower from a domain you have access to."
|
||||
},
|
||||
"title": "{actor} Level Up"
|
||||
"title": "{actor} Level Up",
|
||||
"viewModeTitle": "{actor} Level Up (View Mode)"
|
||||
},
|
||||
"MulticlassChoice": {
|
||||
"title": "Multiclassing - {actor}",
|
||||
|
|
@ -1452,11 +1467,11 @@
|
|||
},
|
||||
"protective": {
|
||||
"name": "Protective",
|
||||
"description": "Add your character's Tier to your Armor Score",
|
||||
"description": "Add the item's Tier to your Armor Score",
|
||||
"effects": {
|
||||
"protective": {
|
||||
"name": "Protective",
|
||||
"description": "Add your character's Tier to your Armor Score"
|
||||
"description": "Add the item's Tier to your Armor Score"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -1893,7 +1908,8 @@
|
|||
"tier4": "tier 4",
|
||||
"domains": "Domains",
|
||||
"downtime": "Downtime",
|
||||
"rules": "Rules"
|
||||
"rules": "Rules",
|
||||
"types": "Types"
|
||||
},
|
||||
"Tiers": {
|
||||
"singular": "Tier",
|
||||
|
|
@ -1913,6 +1929,7 @@
|
|||
"armorScore": "Armor Score",
|
||||
"activeEffects": "Active Effects",
|
||||
"armorSlots": "Armor Slots",
|
||||
"artistAttribution": "Artwork By: {artist}",
|
||||
"attack": "Attack",
|
||||
"basics": "Basics",
|
||||
"bonus": "Bonus",
|
||||
|
|
@ -2003,7 +2020,7 @@
|
|||
"true": "True",
|
||||
"type": "Type",
|
||||
"unarmed": "Unarmed",
|
||||
"unarmedStrike": "Unarmed Strike",
|
||||
"unarmedAttack": "Unarmed Attack",
|
||||
"unarmored": "Unarmored",
|
||||
"use": "Use",
|
||||
"used": "Used",
|
||||
|
|
@ -2013,6 +2030,11 @@
|
|||
},
|
||||
"ITEMS": {
|
||||
"FIELDS": {
|
||||
"attribution": {
|
||||
"source": { "label": "Source" },
|
||||
"page": { "label": "Page" },
|
||||
"artist": { "label": "Artist" }
|
||||
},
|
||||
"resource": {
|
||||
"amount": { "label": "Amount" },
|
||||
"dieFaces": { "label": "Die Faces" },
|
||||
|
|
@ -2110,12 +2132,18 @@
|
|||
"FIELDS": {
|
||||
"displayFear": { "label": "Fear Display" },
|
||||
"dualityColorScheme": { "label": "Chat Style" },
|
||||
"showGenericStatusEffects": { "label": "Show Foundry Status Effects" },
|
||||
"hideAttribution": { "label": "Hide Attribution" },
|
||||
"expandedTitle": "Auto-expand Descriptions",
|
||||
"extendCharacterDescriptions": { "label": "Characters" },
|
||||
"extendAdversaryDescriptions": { "label": "Adversaries" },
|
||||
"extendEnvironmentDescriptions": { "label": "Environments" },
|
||||
"extendItemDescriptions": { "label": "Items" }
|
||||
"extendItemDescriptions": { "label": "Items" },
|
||||
"expandRollMessage": "Auto-expand Message Sections",
|
||||
"expandRollMessageDesc": { "label": "Description" },
|
||||
"expandRollMessageRoll": { "label": "Formula" },
|
||||
"expandRollMessageDamage": { "label": "Damage/Healing" },
|
||||
"expandRollMessageTarget": { "label": "Target" },
|
||||
"showGenericStatusEffects": { "label": "Show Foundry Status Effects" }
|
||||
},
|
||||
"fearDisplay": {
|
||||
"token": "Tokens",
|
||||
|
|
@ -2211,6 +2239,10 @@
|
|||
"deleteDomain": "Delete Domain",
|
||||
"deleteDomainText": "Are you sure you want to delete the {name} domain? It will be immediately removed from all Actors in this world where it's currently used. Compendiums are not cleared.",
|
||||
"duplicateDomain": "There is already a domain with this identification."
|
||||
},
|
||||
"adversaryType": {
|
||||
"title": "Custom Adversary Types",
|
||||
"newType": "Adversary Type"
|
||||
}
|
||||
},
|
||||
"Menu": {
|
||||
|
|
@ -2274,6 +2306,9 @@
|
|||
"ResetSettings": {
|
||||
"resetConfirmationTitle": "Reset Settings",
|
||||
"resetConfirmationText": "Are you sure you want to reset the {settings}?"
|
||||
},
|
||||
"Scene": {
|
||||
"rangeMeasurementOverride": "Override Global Range Measurement Settings"
|
||||
}
|
||||
},
|
||||
"UI": {
|
||||
|
|
@ -2325,6 +2360,42 @@
|
|||
"playerMessage": "{user} rerolled their {name}"
|
||||
}
|
||||
},
|
||||
"ItemBrowser": {
|
||||
"title": "Daggerheart Compendium Browser",
|
||||
"hint": "Select a Folder in sidebar to start browsing through the compendium",
|
||||
"searchPlaceholder": "Search...",
|
||||
"columnName": "Name",
|
||||
"tooltipFilters": "Filters",
|
||||
"tooltipErase": "Erase",
|
||||
"difficultyMin": "Difficulty (Min)",
|
||||
"difficultyMax": "Difficulty (Max)",
|
||||
"hitPointsMin": "Hit Points (Min)",
|
||||
"hitPointsMax": "Hit Points (Max)",
|
||||
"stressMin": "Stress (Min)",
|
||||
"stressMax": "Stress (Max)",
|
||||
"armorScoreMin": "Armor Score (Min)",
|
||||
"armorScoreMax": "Armor Score (Max)",
|
||||
"levelMin": "Level (Min)",
|
||||
"levelMax": "Level (Max)",
|
||||
"recallCostMin": "Recall Cost (Min)",
|
||||
"recallCostMax": "Recall Cost (Max)",
|
||||
"evasionMin": "Evasion (Min)",
|
||||
"evasionMax": "Evasion (Max)",
|
||||
"subtype": "Subtype",
|
||||
"folders": {
|
||||
"adversaries": "Adversaries",
|
||||
"ancestries": "Ancestries",
|
||||
"equipment": "Equipment",
|
||||
"classes": "Classes",
|
||||
"subclasses": "Subclasses",
|
||||
"domainCards": "Domain Cards",
|
||||
"communities": "Communities",
|
||||
"environments": "Environments",
|
||||
"beastforms": "Beastforms",
|
||||
"features": "Features",
|
||||
"items": "Items"
|
||||
}
|
||||
},
|
||||
"Notifications": {
|
||||
"adversaryMissing": "The linked adversary doesn't exist in the world.",
|
||||
"beastformInapplicable": "A beastform can only be applied to a Character.",
|
||||
|
|
@ -2384,7 +2455,8 @@
|
|||
"beastformEquipWeapon": "You cannot use weapons while in a Beastform.",
|
||||
"loadoutMaxReached": "You've reached maximum loadout. Move atleast one domain card to the vault, or increase the limit in homebrew settings if desired.",
|
||||
"domainMaxReached": "You've reached the maximum domains for the class. Increase the limit in homebrew settings if desired.",
|
||||
"insufficientResources": "You have insufficient resources",
|
||||
"insufficientResources": "You don't have enough resources to use that action.",
|
||||
"actionNoUsesRemaining": "That action doesn't have remaining uses.",
|
||||
"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"
|
||||
|
|
@ -2414,7 +2486,8 @@
|
|||
"rulesOff": "Rules Off",
|
||||
"remainingUses": "Uses refresh on {type}",
|
||||
"rightClickExtand": "Right-Click to extand",
|
||||
"companionPartnerLevelBlock": "The companion needs an assigned partner to level up."
|
||||
"companionPartnerLevelBlock": "The companion needs an assigned partner to level up.",
|
||||
"configureAttribution": "Configure Attribution"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ export * as characterCreation from './characterCreation/_module.mjs';
|
|||
export * as dialogs from './dialogs/_module.mjs';
|
||||
export * as hud from './hud/_module.mjs';
|
||||
export * as levelup from './levelup/_module.mjs';
|
||||
export * as scene from './scene/_module.mjs';
|
||||
export * as settings from './settings/_module.mjs';
|
||||
export * as sheets from './sheets/_module.mjs';
|
||||
export * as sheetConfigs from './sheets-configs/_module.mjs';
|
||||
|
|
|
|||
|
|
@ -494,7 +494,9 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
|
|||
this.render();
|
||||
}
|
||||
|
||||
static async finish() {
|
||||
static async finish(_, button) {
|
||||
button.disabled = true;
|
||||
|
||||
const primaryAncestryFeature = this.setup.primaryAncestry.system.primaryFeature;
|
||||
const secondaryAncestryFeature = this.setup.secondaryAncestry?.uuid
|
||||
? this.setup.secondaryAncestry.system.secondaryFeature
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
export { default as AttributionDialog } from './attributionDialog.mjs';
|
||||
export { default as BeastformDialog } from './beastformDialog.mjs';
|
||||
export { default as d20RollDialog } from './d20RollDialog.mjs';
|
||||
export { default as DamageDialog } from './damageDialog.mjs';
|
||||
|
|
|
|||
93
module/applications/dialogs/attributionDialog.mjs
Normal file
93
module/applications/dialogs/attributionDialog.mjs
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
import autocomplete from 'autocompleter';
|
||||
|
||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||
|
||||
export default class AttriubtionDialog extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||
constructor(item) {
|
||||
super({});
|
||||
|
||||
this.item = item;
|
||||
this.sources = Object.keys(CONFIG.DH.GENERAL.attributionSources).flatMap(groupKey => {
|
||||
const group = CONFIG.DH.GENERAL.attributionSources[groupKey];
|
||||
return group.values.map(x => ({ group: group.label, ...x }));
|
||||
});
|
||||
}
|
||||
|
||||
get title() {
|
||||
return game.i18n.localize('DAGGERHEART.APPLICATIONS.Attribution.title');
|
||||
}
|
||||
|
||||
static DEFAULT_OPTIONS = {
|
||||
tag: 'form',
|
||||
classes: ['daggerheart', 'dh-style', 'dialog', 'views', 'attribution'],
|
||||
position: { width: 'auto', height: 'auto' },
|
||||
window: { icon: 'fa-solid fa-signature' },
|
||||
form: { handler: this.updateData, submitOnChange: false, closeOnSubmit: true }
|
||||
};
|
||||
|
||||
static PARTS = {
|
||||
main: { template: 'systems/daggerheart/templates/dialogs/attribution.hbs' }
|
||||
};
|
||||
|
||||
_attachPartListeners(partId, htmlElement, options) {
|
||||
super._attachPartListeners(partId, htmlElement, options);
|
||||
const sources = this.sources;
|
||||
|
||||
htmlElement.querySelectorAll('.attribution-input').forEach(element => {
|
||||
autocomplete({
|
||||
input: element,
|
||||
fetch: function (text, update) {
|
||||
if (!text) {
|
||||
update(sources);
|
||||
} else {
|
||||
text = text.toLowerCase();
|
||||
var suggestions = sources.filter(n => n.label.toLowerCase().includes(text));
|
||||
update(suggestions);
|
||||
}
|
||||
},
|
||||
render: function (item, search) {
|
||||
const label = game.i18n.localize(item.label);
|
||||
const matchIndex = label.toLowerCase().indexOf(search);
|
||||
|
||||
const beforeText = label.slice(0, matchIndex);
|
||||
const matchText = label.slice(matchIndex, matchIndex + search.length);
|
||||
const after = label.slice(matchIndex + search.length, label.length);
|
||||
|
||||
const element = document.createElement('li');
|
||||
element.innerHTML = `${beforeText}${matchText ? `<strong>${matchText}</strong>` : ''}${after}`;
|
||||
if (item.hint) {
|
||||
element.dataset.tooltip = game.i18n.localize(item.hint);
|
||||
}
|
||||
|
||||
return element;
|
||||
},
|
||||
renderGroup: function (label) {
|
||||
const itemElement = document.createElement('div');
|
||||
itemElement.textContent = game.i18n.localize(label);
|
||||
return itemElement;
|
||||
},
|
||||
onSelect: function (item) {
|
||||
element.value = item.label;
|
||||
},
|
||||
click: e => e.fetch(),
|
||||
customize: function (_input, _inputRect, container) {
|
||||
container.style.zIndex = foundry.applications.api.ApplicationV2._maxZ;
|
||||
},
|
||||
minLength: 0
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async _prepareContext(_options) {
|
||||
const context = await super._prepareContext(_options);
|
||||
context.item = this.item;
|
||||
context.data = this.item.system.attribution;
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
static async updateData(_event, _element, formData) {
|
||||
await this.item.update({ 'system.attribution': formData.object });
|
||||
this.item.sheet.refreshFrame();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
export { default as CharacterLevelup } from './characterLevelup.mjs';
|
||||
export { default as CompanionLevelup } from './companionLevelup.mjs';
|
||||
export { default as Levelup } from './levelup.mjs';
|
||||
export { default as LevelupViewMode } from './levelupViewMode.mjs';
|
||||
|
|
|
|||
|
|
@ -650,7 +650,9 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
this.render();
|
||||
}
|
||||
|
||||
static async save() {
|
||||
static async save(_, button) {
|
||||
button.disabled = true;
|
||||
|
||||
const levelupData = Object.keys(this.levelup.levels).reduce((acc, level) => {
|
||||
if (level >= this.levelup.startLevel) {
|
||||
acc[level] = this.levelup.levels[level].toObject();
|
||||
|
|
|
|||
95
module/applications/levelup/levelupViewMode.mjs
Normal file
95
module/applications/levelup/levelupViewMode.mjs
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
import { chunkify } from '../../helpers/utils.mjs';
|
||||
|
||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||
|
||||
export default class DhlevelUpViewMode extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||
constructor(actor) {
|
||||
super({});
|
||||
|
||||
this.actor = actor;
|
||||
}
|
||||
|
||||
get title() {
|
||||
return game.i18n.format('DAGGERHEART.APPLICATIONS.Levelup.viewModeTitle', { actor: this.actor.name });
|
||||
}
|
||||
|
||||
static DEFAULT_OPTIONS = {
|
||||
classes: ['daggerheart', 'dialog', 'dh-style', 'levelup'],
|
||||
position: { width: 1000, height: 'auto' },
|
||||
window: {
|
||||
resizable: true,
|
||||
icon: 'fa-solid fa-arrow-turn-up'
|
||||
}
|
||||
};
|
||||
|
||||
static PARTS = {
|
||||
main: { template: 'systems/daggerheart/templates/levelup/tabs/viewMode.hbs' }
|
||||
};
|
||||
|
||||
async _prepareContext(_options) {
|
||||
const context = await super._prepareContext(_options);
|
||||
|
||||
const { tiers } = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LevelTiers);
|
||||
const tierKeys = Object.keys(tiers);
|
||||
const selections = Object.keys(this.actor.system.levelData.levelups).reduce(
|
||||
(acc, key) => {
|
||||
const level = this.actor.system.levelData.levelups[key];
|
||||
Object.keys(level.selections).forEach(optionKey => {
|
||||
const choice = level.selections[optionKey];
|
||||
if (!acc[choice.tier][choice.optionKey]) acc[choice.tier][choice.optionKey] = {};
|
||||
acc[choice.tier][choice.optionKey][choice.checkboxNr] = choice;
|
||||
});
|
||||
|
||||
return acc;
|
||||
},
|
||||
tierKeys.reduce((acc, key) => {
|
||||
acc[key] = {};
|
||||
return acc;
|
||||
}, {})
|
||||
);
|
||||
|
||||
context.tiers = tierKeys.map((tierKey, tierIndex) => {
|
||||
const tier = tiers[tierKey];
|
||||
|
||||
return {
|
||||
name: tier.name,
|
||||
active: true,
|
||||
groups: Object.keys(tier.options).map(optionKey => {
|
||||
const option = tier.options[optionKey];
|
||||
|
||||
const checkboxes = [...Array(option.checkboxSelections).keys()].flatMap(index => {
|
||||
const checkboxNr = index + 1;
|
||||
const checkboxData = selections[tierKey]?.[optionKey]?.[checkboxNr];
|
||||
const checkbox = { ...option, checkboxNr, tier: tierKey, disabled: true };
|
||||
|
||||
if (checkboxData) {
|
||||
checkbox.level = checkboxData.level;
|
||||
checkbox.selected = true;
|
||||
}
|
||||
|
||||
return checkbox;
|
||||
});
|
||||
|
||||
let label = game.i18n.localize(option.label);
|
||||
return {
|
||||
label: label,
|
||||
checkboxGroups: chunkify(checkboxes, option.minCost, chunkedBoxes => {
|
||||
const anySelected = chunkedBoxes.some(x => x.selected);
|
||||
const anyDisabled = chunkedBoxes.some(x => x.disabled);
|
||||
return {
|
||||
multi: option.minCost > 1,
|
||||
checkboxes: chunkedBoxes.map(x => ({
|
||||
...x,
|
||||
selected: anySelected,
|
||||
disabled: anyDisabled
|
||||
}))
|
||||
};
|
||||
})
|
||||
};
|
||||
})
|
||||
};
|
||||
});
|
||||
|
||||
return context;
|
||||
}
|
||||
}
|
||||
1
module/applications/scene/_module.mjs
Normal file
1
module/applications/scene/_module.mjs
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { default as DhSceneConfigSettings } from './sceneConfigSettings.mjs';
|
||||
25
module/applications/scene/sceneConfigSettings.mjs
Normal file
25
module/applications/scene/sceneConfigSettings.mjs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
export default class DhSceneConfigSettings extends foundry.applications.sheets.SceneConfig {
|
||||
constructor(options, ...args) {
|
||||
super(options, ...args);
|
||||
}
|
||||
|
||||
static buildParts() {
|
||||
const { footer, ...parts } = super.PARTS;
|
||||
const tmpParts = {
|
||||
...parts,
|
||||
dh: { template: "systems/daggerheart/templates/scene/dh-config.hbs" },
|
||||
footer
|
||||
}
|
||||
return tmpParts;
|
||||
}
|
||||
|
||||
static PARTS = DhSceneConfigSettings.buildParts();
|
||||
|
||||
static buildTabs() {
|
||||
super.TABS.sheet.tabs.push({ id: "dh", icon: "fa-solid" });
|
||||
return super.TABS;
|
||||
}
|
||||
|
||||
static TABS = DhSceneConfigSettings.buildTabs();
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
import { DhHomebrew } from '../../data/settings/_module.mjs';
|
||||
import { slugify } from '../../helpers/utils.mjs';
|
||||
|
||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||
|
||||
export default class DhHomebrewSettings extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||
|
|
@ -10,11 +11,14 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).toObject()
|
||||
);
|
||||
|
||||
this.selected = {
|
||||
domain: null
|
||||
};
|
||||
this.selected = this.#getDefaultAdversaryType();
|
||||
}
|
||||
|
||||
#getDefaultAdversaryType = () => ({
|
||||
domain: null,
|
||||
adversaryType: null
|
||||
});
|
||||
|
||||
get title() {
|
||||
return game.i18n.localize('DAGGERHEART.SETTINGS.Menu.title');
|
||||
}
|
||||
|
|
@ -35,6 +39,9 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
addDomain: this.addDomain,
|
||||
toggleSelectedDomain: this.toggleSelectedDomain,
|
||||
deleteDomain: this.deleteDomain,
|
||||
addAdversaryType: this.addAdversaryType,
|
||||
deleteAdversaryType: this.deleteAdversaryType,
|
||||
selectAdversaryType: this.selectAdversaryType,
|
||||
save: this.save,
|
||||
reset: this.reset
|
||||
},
|
||||
|
|
@ -45,6 +52,7 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' },
|
||||
settings: { template: 'systems/daggerheart/templates/settings/homebrew-settings/settings.hbs' },
|
||||
domains: { template: 'systems/daggerheart/templates/settings/homebrew-settings/domains.hbs' },
|
||||
types: { template: 'systems/daggerheart/templates/settings/homebrew-settings/types.hbs' },
|
||||
downtime: { template: 'systems/daggerheart/templates/settings/homebrew-settings/downtime.hbs' },
|
||||
footer: { template: 'systems/daggerheart/templates/settings/homebrew-settings/footer.hbs' }
|
||||
};
|
||||
|
|
@ -52,12 +60,19 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
/** @inheritdoc */
|
||||
static TABS = {
|
||||
main: {
|
||||
tabs: [{ id: 'settings' }, { id: 'domains' }, { id: 'downtime' }],
|
||||
tabs: [{ id: 'settings' }, { id: 'domains' }, { id: 'types' }, { id: 'downtime' }],
|
||||
initial: 'settings',
|
||||
labelPrefix: 'DAGGERHEART.GENERAL.Tabs'
|
||||
}
|
||||
};
|
||||
|
||||
changeTab(tab, group, options) {
|
||||
super.changeTab(tab, group, options);
|
||||
this.selected = this.#getDefaultAdversaryType();
|
||||
|
||||
this.render();
|
||||
}
|
||||
|
||||
async _prepareContext(_options) {
|
||||
const context = await super._prepareContext(_options);
|
||||
context.settingFields = this.settings;
|
||||
|
|
@ -79,6 +94,11 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
context.configDomains = CONFIG.DH.DOMAIN.domains;
|
||||
context.homebrewDomains = this.settings.domains;
|
||||
break;
|
||||
case 'types':
|
||||
context.selectedAdversaryType = this.selected.adversaryType
|
||||
? { id: this.selected.adversaryType, ...this.settings.adversaryTypes[this.selected.adversaryType] }
|
||||
: null;
|
||||
break;
|
||||
}
|
||||
|
||||
return context;
|
||||
|
|
@ -301,6 +321,32 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
this.render();
|
||||
}
|
||||
|
||||
static async addAdversaryType(_, target) {
|
||||
const newId = foundry.utils.randomID();
|
||||
await this.settings.updateSource({
|
||||
[`adversaryTypes.${newId}`]: {
|
||||
id: newId,
|
||||
label: game.i18n.localize('DAGGERHEART.SETTINGS.Homebrew.adversaryType.newType')
|
||||
}
|
||||
});
|
||||
|
||||
this.selected.adversaryType = newId;
|
||||
this.render();
|
||||
}
|
||||
|
||||
static async deleteAdversaryType(_, target) {
|
||||
const { key } = target.dataset;
|
||||
await this.settings.updateSource({ [`adversaryTypes.-=${key}`]: null });
|
||||
|
||||
this.selected.adversaryType = this.selected.adversaryType === key ? null : this.selected.adversaryType;
|
||||
this.render();
|
||||
}
|
||||
|
||||
static async selectAdversaryType(_, target) {
|
||||
this.selected.adversaryType = this.selected.adversaryType === target.dataset.type ? null : target.dataset.type;
|
||||
this.render();
|
||||
}
|
||||
|
||||
static async save() {
|
||||
await game.settings.set(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew, this.settings.toObject());
|
||||
this.close();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
import { getDocFromElement } from '../../../helpers/utils.mjs';
|
||||
import DHBaseActorSheet from '../api/base-actor.mjs';
|
||||
|
||||
/**@typedef {import('@client/applications/_types.mjs').ApplicationClickAction} ApplicationClickAction */
|
||||
|
||||
export default class AdversarySheet extends DHBaseActorSheet {
|
||||
/** @inheritDoc */
|
||||
static DEFAULT_OPTIONS = {
|
||||
classes: ['adversary'],
|
||||
position: { width: 660, height: 766 },
|
||||
|
|
@ -11,16 +13,34 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
|||
reactionRoll: AdversarySheet.#reactionRoll
|
||||
},
|
||||
window: {
|
||||
resizable: true
|
||||
resizable: true,
|
||||
controls: [
|
||||
{
|
||||
icon: 'fa-solid fa-signature',
|
||||
label: 'DAGGERHEART.UI.Tooltip.configureAttribution',
|
||||
action: 'editAttribution'
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
static PARTS = {
|
||||
sidebar: { template: 'systems/daggerheart/templates/sheets/actors/adversary/sidebar.hbs' },
|
||||
sidebar: {
|
||||
template: 'systems/daggerheart/templates/sheets/actors/adversary/sidebar.hbs',
|
||||
scrollable: ['.shortcut-items-section']
|
||||
},
|
||||
header: { template: 'systems/daggerheart/templates/sheets/actors/adversary/header.hbs' },
|
||||
features: { template: 'systems/daggerheart/templates/sheets/actors/adversary/features.hbs' },
|
||||
notes: { template: 'systems/daggerheart/templates/sheets/actors/adversary/notes.hbs' },
|
||||
effects: { template: 'systems/daggerheart/templates/sheets/actors/adversary/effects.hbs' }
|
||||
features: {
|
||||
template: 'systems/daggerheart/templates/sheets/actors/adversary/features.hbs',
|
||||
scrollable: ['.feature-section']
|
||||
},
|
||||
notes: {
|
||||
template: 'systems/daggerheart/templates/sheets/actors/adversary/notes.hbs'
|
||||
},
|
||||
effects: {
|
||||
template: 'systems/daggerheart/templates/sheets/actors/adversary/effects.hbs',
|
||||
scrollable: ['.effects-sections']
|
||||
}
|
||||
};
|
||||
|
||||
/** @inheritdoc */
|
||||
|
|
@ -36,6 +56,7 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
|||
async _prepareContext(options) {
|
||||
const context = await super._prepareContext(options);
|
||||
context.systemFields.attack.fields = this.document.system.attack.schema.fields;
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
|
|
@ -45,6 +66,9 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
|||
switch (partId) {
|
||||
case 'header':
|
||||
await this._prepareHeaderContext(context, options);
|
||||
|
||||
const adversaryTypes = CONFIG.DH.ACTOR.allAdversaryTypes();
|
||||
context.adversaryType = game.i18n.localize(adversaryTypes[this.document.system.type].label);
|
||||
break;
|
||||
case 'notes':
|
||||
await this._prepareNotesContext(context, options);
|
||||
|
|
@ -53,6 +77,16 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
|||
return context;
|
||||
}
|
||||
|
||||
/**@inheritdoc */
|
||||
_attachPartListeners(partId, htmlElement, options) {
|
||||
super._attachPartListeners(partId, htmlElement, options);
|
||||
|
||||
htmlElement.querySelectorAll('.inventory-item-resource').forEach(element => {
|
||||
element.addEventListener('change', this.updateItemResource.bind(this));
|
||||
element.addEventListener('click', e => e.stopPropagation());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare render context for the Biography part.
|
||||
* @param {ApplicationRenderContext} context
|
||||
|
|
@ -121,4 +155,18 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
|||
|
||||
this.actor.diceRoll(config);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Application Listener Actions */
|
||||
/* -------------------------------------------- */
|
||||
|
||||
async updateItemResource(event) {
|
||||
const item = await getDocFromElement(event.currentTarget);
|
||||
if (!item) return;
|
||||
|
||||
const max = event.currentTarget.max ? Number(event.currentTarget.max) : null;
|
||||
const value = max ? Math.min(Number(event.currentTarget.value), max) : event.currentTarget.value;
|
||||
await item.update({ 'system.resource.value': value });
|
||||
this.render();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import DHBaseActorSheet from '../api/base-actor.mjs';
|
||||
import DhpDeathMove from '../../dialogs/deathMove.mjs';
|
||||
import { abilities } from '../../../config/actorConfig.mjs';
|
||||
import DhCharacterlevelUp from '../../levelup/characterLevelup.mjs';
|
||||
import { CharacterLevelup, LevelupViewMode } from '../../levelup/_module.mjs';
|
||||
import DhCharacterCreation from '../../characterCreation/characterCreation.mjs';
|
||||
import FilterMenu from '../../ux/filter-menu.mjs';
|
||||
import { getDocFromElement, getDocFromElementSync } from '../../../helpers/utils.mjs';
|
||||
|
|
@ -23,6 +23,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
openPack: CharacterSheet.#openPack,
|
||||
makeDeathMove: CharacterSheet.#makeDeathMove,
|
||||
levelManagement: CharacterSheet.#levelManagement,
|
||||
viewLevelups: CharacterSheet.#viewLevelups,
|
||||
toggleEquipItem: CharacterSheet.#toggleEquipItem,
|
||||
toggleResourceDice: CharacterSheet.#toggleResourceDice,
|
||||
handleResourceDice: CharacterSheet.#handleResourceDice,
|
||||
|
|
@ -30,7 +31,14 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
tempBrowser: CharacterSheet.#tempBrowser
|
||||
},
|
||||
window: {
|
||||
resizable: true
|
||||
resizable: true,
|
||||
controls: [
|
||||
{
|
||||
icon: 'fa-solid fa-angles-up',
|
||||
label: 'DAGGERHEART.ACTORS.Character.viewLevelups',
|
||||
action: 'viewLevelups'
|
||||
}
|
||||
]
|
||||
},
|
||||
dragDrop: [
|
||||
{
|
||||
|
|
@ -70,6 +78,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
static PARTS = {
|
||||
sidebar: {
|
||||
id: 'sidebar',
|
||||
scrollable: ['.shortcut-items-section'],
|
||||
template: 'systems/daggerheart/templates/sheets/actors/character/sidebar.hbs'
|
||||
},
|
||||
header: {
|
||||
|
|
@ -78,22 +87,27 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
},
|
||||
features: {
|
||||
id: 'features',
|
||||
scrollable: ['.features-sections'],
|
||||
template: 'systems/daggerheart/templates/sheets/actors/character/features.hbs'
|
||||
},
|
||||
loadout: {
|
||||
id: 'loadout',
|
||||
scrollable: ['.items-section'],
|
||||
template: 'systems/daggerheart/templates/sheets/actors/character/loadout.hbs'
|
||||
},
|
||||
inventory: {
|
||||
id: 'inventory',
|
||||
scrollable: ['.items-section'],
|
||||
template: 'systems/daggerheart/templates/sheets/actors/character/inventory.hbs'
|
||||
},
|
||||
biography: {
|
||||
id: 'biography',
|
||||
scrollable: ['.items-section'],
|
||||
template: 'systems/daggerheart/templates/sheets/actors/character/biography.hbs'
|
||||
},
|
||||
effects: {
|
||||
id: 'effects',
|
||||
scrollable: ['.effects-sections'],
|
||||
template: 'systems/daggerheart/templates/sheets/actors/character/effects.hbs'
|
||||
}
|
||||
};
|
||||
|
|
@ -114,6 +128,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
|
||||
htmlElement.querySelectorAll('.inventory-item-resource').forEach(element => {
|
||||
element.addEventListener('change', this.updateItemResource.bind(this));
|
||||
element.addEventListener('click', e => e.stopPropagation());
|
||||
});
|
||||
htmlElement.querySelectorAll('.inventory-item-quantity').forEach(element => {
|
||||
element.addEventListener('change', this.updateItemQuantity.bind(this));
|
||||
|
|
@ -585,7 +600,14 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
if (!value || !subclass)
|
||||
return ui.notifications.error(game.i18n.localize('DAGGERHEART.UI.Notifications.missingClassOrSubclass'));
|
||||
|
||||
new DhCharacterlevelUp(this.document).render({ force: true });
|
||||
new CharacterLevelup(this.document).render({ force: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the charater level management window in viewMode.
|
||||
*/
|
||||
static #viewLevelups() {
|
||||
new LevelupViewMode(this.document).render({ force: true });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@ export default class DhCompanionSheet extends DHBaseActorSheet {
|
|||
static PARTS = {
|
||||
header: { template: 'systems/daggerheart/templates/sheets/actors/companion/header.hbs' },
|
||||
details: { template: 'systems/daggerheart/templates/sheets/actors/companion/details.hbs' },
|
||||
effects: { template: 'systems/daggerheart/templates/sheets/actors/companion/effects.hbs' }
|
||||
effects: {
|
||||
template: 'systems/daggerheart/templates/sheets/actors/companion/effects.hbs',
|
||||
scrollable: ['.effects-sections']
|
||||
}
|
||||
};
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
|
|
|||
|
|
@ -8,10 +8,17 @@ export default class DhpEnvironment extends DHBaseActorSheet {
|
|||
classes: ['environment'],
|
||||
position: {
|
||||
width: 500,
|
||||
height: 725
|
||||
height: 740
|
||||
},
|
||||
window: {
|
||||
resizable: true
|
||||
resizable: true,
|
||||
controls: [
|
||||
{
|
||||
icon: 'fa-solid fa-signature',
|
||||
label: 'DAGGERHEART.UI.Tooltip.configureAttribution',
|
||||
action: 'editAttribution'
|
||||
}
|
||||
]
|
||||
},
|
||||
actions: {},
|
||||
dragDrop: [{ dragSelector: '.action-section .inventory-item', dropSelector: null }]
|
||||
|
|
@ -20,9 +27,13 @@ export default class DhpEnvironment extends DHBaseActorSheet {
|
|||
/**@override */
|
||||
static PARTS = {
|
||||
header: { template: 'systems/daggerheart/templates/sheets/actors/environment/header.hbs' },
|
||||
features: { template: 'systems/daggerheart/templates/sheets/actors/environment/features.hbs' },
|
||||
features: {
|
||||
template: 'systems/daggerheart/templates/sheets/actors/environment/features.hbs',
|
||||
scrollable: ['feature-section']
|
||||
},
|
||||
potentialAdversaries: {
|
||||
template: 'systems/daggerheart/templates/sheets/actors/environment/potentialAdversaries.hbs'
|
||||
template: 'systems/daggerheart/templates/sheets/actors/environment/potentialAdversaries.hbs',
|
||||
scrollable: ['items-sections']
|
||||
},
|
||||
notes: { template: 'systems/daggerheart/templates/sheets/actors/environment/notes.hbs' }
|
||||
};
|
||||
|
|
@ -42,6 +53,7 @@ export default class DhpEnvironment extends DHBaseActorSheet {
|
|||
switch (partId) {
|
||||
case 'header':
|
||||
await this._prepareHeaderContext(context, options);
|
||||
|
||||
break;
|
||||
case 'notes':
|
||||
await this._prepareNotesContext(context, options);
|
||||
|
|
|
|||
|
|
@ -44,9 +44,8 @@ export default class DHBaseActorSettings extends DHApplicationMixin(DocumentShee
|
|||
const context = await super._prepareContext(options);
|
||||
context.isNPC = this.actor.isNPC;
|
||||
|
||||
if (context.systemFields.attack) {
|
||||
if (context.systemFields.attack)
|
||||
context.systemFields.attack.fields = this.actor.system.attack.schema.fields;
|
||||
}
|
||||
|
||||
return context;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,6 +85,8 @@ export default function DHApplicationMixin(Base) {
|
|||
this._dragDrop = this._createDragDropHandlers();
|
||||
}
|
||||
|
||||
#nonHeaderAttribution = ['environment', 'ancestry', 'community', 'domainCard'];
|
||||
|
||||
/**
|
||||
* The default options for the sheet.
|
||||
* @type {DHSheetV2Configuration}
|
||||
|
|
@ -101,7 +103,8 @@ export default function DHApplicationMixin(Base) {
|
|||
toggleEffect: DHSheetV2.#toggleEffect,
|
||||
toggleExtended: DHSheetV2.#toggleExtended,
|
||||
addNewItem: DHSheetV2.#addNewItem,
|
||||
browseItem: DHSheetV2.#browseItem
|
||||
browseItem: DHSheetV2.#browseItem,
|
||||
editAttribution: DHSheetV2.#editAttribution
|
||||
},
|
||||
contextMenus: [
|
||||
{
|
||||
|
|
@ -121,10 +124,47 @@ export default function DHApplicationMixin(Base) {
|
|||
}
|
||||
}
|
||||
],
|
||||
dragDrop: [],
|
||||
dragDrop: [{ dragSelector: '.inventory-item[data-type="effect"]', dropSelector: null }],
|
||||
tagifyConfigs: []
|
||||
};
|
||||
|
||||
/**@inheritdoc */
|
||||
async _renderFrame(options) {
|
||||
const frame = await super._renderFrame(options);
|
||||
|
||||
const hideAttribution = game.settings.get(
|
||||
CONFIG.DH.id,
|
||||
CONFIG.DH.SETTINGS.gameSettings.appearance
|
||||
).hideAttribution;
|
||||
const headerAttribution = !this.#nonHeaderAttribution.includes(this.document.type);
|
||||
if (!hideAttribution && this.document.system.metadata.hasAttribution && headerAttribution) {
|
||||
const { source, page } = this.document.system.attribution;
|
||||
const attribution = [source, page ? `pg ${page}.` : null].filter(x => x).join('. ');
|
||||
const element = `<label class="attribution-header-label">${attribution}</label>`;
|
||||
this.window.controls.insertAdjacentHTML('beforebegin', element);
|
||||
}
|
||||
|
||||
return frame;
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh the custom parts of the application frame
|
||||
*/
|
||||
refreshFrame() {
|
||||
const hideAttribution = game.settings.get(
|
||||
CONFIG.DH.id,
|
||||
CONFIG.DH.SETTINGS.gameSettings.appearance
|
||||
).hideAttribution;
|
||||
const headerAttribution = !this.#nonHeaderAttribution.includes(this.document.type);
|
||||
if (!hideAttribution && this.document.system.metadata.hasAttribution && headerAttribution) {
|
||||
const { source, page } = this.document.system.attribution;
|
||||
const attribution = [source, page ? `pg ${page}.` : null].filter(x => x).join('. ');
|
||||
|
||||
const label = this.window.header.querySelector('.attribution-header-label');
|
||||
label.innerHTML = attribution;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Related documents that should cause a rerender of this application when updated.
|
||||
*/
|
||||
|
|
@ -249,14 +289,37 @@ export default function DHApplicationMixin(Base) {
|
|||
* @param {DragEvent} event
|
||||
* @protected
|
||||
*/
|
||||
_onDragStart(event) {}
|
||||
async _onDragStart(event) {
|
||||
const inventoryItem = event.currentTarget.closest('.inventory-item');
|
||||
if (inventoryItem) {
|
||||
const { type, itemUuid } = inventoryItem.dataset;
|
||||
if (type === 'effect') {
|
||||
const effect = await foundry.utils.fromUuid(itemUuid);
|
||||
const effectData = {
|
||||
type: 'ActiveEffect',
|
||||
data: { ...effect.toObject(), _id: null },
|
||||
fromInternal: this.document.uuid
|
||||
};
|
||||
event.dataTransfer.setData('text/plain', JSON.stringify(effectData));
|
||||
event.dataTransfer.setDragImage(inventoryItem.querySelector('img'), 60, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle drop event.
|
||||
* @param {DragEvent} event
|
||||
* @protected
|
||||
*/
|
||||
_onDrop(event) {}
|
||||
_onDrop(event) {
|
||||
event.stopPropagation();
|
||||
const data = foundry.applications.ux.TextEditor.implementation.getDragEventData(event);
|
||||
if (data.fromInternal === this.document.uuid) return;
|
||||
|
||||
if (data.type === 'ActiveEffect') {
|
||||
this.document.createEmbeddedDocuments('ActiveEffect', [data.data]);
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Context Menu */
|
||||
|
|
@ -548,6 +611,14 @@ export default function DHApplicationMixin(Base) {
|
|||
return new ItemBrowser({ presets }).render({ force: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the attribution dialog
|
||||
* @type {ApplicationClickAction}
|
||||
*/
|
||||
static async #editAttribution() {
|
||||
new game.system.api.applications.dialogs.AttributionDialog(this.document).render({ force: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an embedded document.
|
||||
* @type {ApplicationClickAction}
|
||||
|
|
@ -568,7 +639,6 @@ export default function DHApplicationMixin(Base) {
|
|||
if (featureOnCharacter) {
|
||||
systemData = {
|
||||
originItemType: this.document.type,
|
||||
originId: this.document.id,
|
||||
identifier: this.document.system.isMulticlass ? 'multiclass' : null
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,9 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
|
|||
async _prepareContext(_options) {
|
||||
const context = await super._prepareContext(_options);
|
||||
context.isNPC = this.document.isNPC;
|
||||
context.showAttribution = !game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance)
|
||||
.hideAttribution;
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
|
|
@ -195,6 +198,8 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
|
|||
};
|
||||
event.dataTransfer.setData('text/plain', JSON.stringify(attackData));
|
||||
event.dataTransfer.setDragImage(attackItem.querySelector('img'), 60, 0);
|
||||
} else if (this.document.type !== 'environment') {
|
||||
super._onDragStart(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,16 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
|
|||
static DEFAULT_OPTIONS = {
|
||||
classes: ['item'],
|
||||
position: { width: 600 },
|
||||
window: { resizable: true },
|
||||
window: {
|
||||
resizable: true,
|
||||
controls: [
|
||||
{
|
||||
icon: 'fa-solid fa-signature',
|
||||
label: 'DAGGERHEART.UI.Tooltip.configureAttribution',
|
||||
action: 'editAttribution'
|
||||
}
|
||||
]
|
||||
},
|
||||
form: {
|
||||
submitOnChange: true
|
||||
},
|
||||
|
|
@ -55,6 +64,15 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
|
|||
/* Prepare Context */
|
||||
/* -------------------------------------------- */
|
||||
|
||||
/**@inheritdoc */
|
||||
async _prepareContext(options) {
|
||||
const context = super._prepareContext(options);
|
||||
context.showAttribution = !game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance)
|
||||
.hideAttribution;
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
/**@inheritdoc */
|
||||
async _preparePartContext(partId, context, options) {
|
||||
await super._preparePartContext(partId, context, options);
|
||||
|
|
@ -149,12 +167,12 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
|
|||
const { type } = target.dataset;
|
||||
const cls = foundry.documents.Item.implementation;
|
||||
|
||||
const multiclass = this.document.system.isMulticlass ? 'multiclass' : null;
|
||||
let systemData = {};
|
||||
if (this.document.parent?.type === 'character') {
|
||||
systemData = {
|
||||
originItemType: this.document.type,
|
||||
originId: this.document.id,
|
||||
identifier: this.document.system.isMulticlass ? 'multiclass' : null
|
||||
identifier: multiclass ?? type
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -252,6 +270,8 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
|
|||
};
|
||||
event.dataTransfer.setData('text/plain', JSON.stringify(actionData));
|
||||
event.dataTransfer.setDragImage(actionItem.querySelector('img'), 60, 0);
|
||||
} else {
|
||||
super._onDragStart(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -261,6 +281,8 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
|
|||
* @param {DragEvent} event - The drag event
|
||||
*/
|
||||
async _onDrop(event) {
|
||||
super._onDrop(event);
|
||||
|
||||
const data = foundry.applications.ux.TextEditor.implementation.getDragEventData(event);
|
||||
if (data.fromInternal) return;
|
||||
|
||||
|
|
@ -271,14 +293,15 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
|
|||
|
||||
if (this.document.parent?.type === 'character') {
|
||||
const itemData = item.toObject();
|
||||
const multiclass = this.document.system.isMulticlass ? 'multiclass' : null;
|
||||
item = await cls.create(
|
||||
{
|
||||
...itemData,
|
||||
_stats: { compendiumSource: this.document.uuid },
|
||||
system: {
|
||||
...itemData.system,
|
||||
originItemType: this.document.type,
|
||||
originId: this.document.id,
|
||||
identifier: this.document.system.isMulticlass ? 'multiclass' : null
|
||||
identifier: multiclass ?? target.dataset.type
|
||||
}
|
||||
},
|
||||
{ parent: this.document.parent }
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export default function ItemAttachmentSheet(Base) {
|
|||
}
|
||||
|
||||
async _onDrop(event) {
|
||||
const data = TextEditor.getDragEventData(event);
|
||||
const data = foundry.applications.ux.TextEditor.implementation.getDragEventData(event);
|
||||
|
||||
const attachmentsSection = event.target.closest('.attachments-section');
|
||||
if (!attachmentsSection) return super._onDrop(event);
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ export default class AncestrySheet extends DHHeritageSheet {
|
|||
* @param {DragEvent} event - The drag event
|
||||
*/
|
||||
async _onDrop(event) {
|
||||
const data = TextEditor.getDragEventData(event);
|
||||
if (data.type === 'ActiveEffect') return super._onDrop(event);
|
||||
|
||||
const target = event.target.closest('fieldset.drop-section');
|
||||
const typeField =
|
||||
this.document.system[target.dataset.type === 'primary' ? 'primaryFeature' : 'secondaryFeature'];
|
||||
|
|
|
|||
|
|
@ -115,16 +115,17 @@ export default class ClassSheet extends DHBaseItemSheet {
|
|||
async _onDrop(event) {
|
||||
event.stopPropagation();
|
||||
const data = TextEditor.getDragEventData(event);
|
||||
const item = await fromUuid(data.uuid);
|
||||
const item = data.data ?? (await fromUuid(data.uuid));
|
||||
const itemType = data.data ? data.type : item.type;
|
||||
const target = event.target.closest('fieldset.drop-section');
|
||||
if (item.type === 'subclass') {
|
||||
if (itemType === 'subclass') {
|
||||
await this.document.update({
|
||||
'system.subclasses': [...this.document.system.subclasses.map(x => x.uuid), item.uuid]
|
||||
});
|
||||
} else if (item.type === 'feature') {
|
||||
} else if (['feature', 'ActiveEffect'].includes(itemType)) {
|
||||
super._onDrop(event);
|
||||
} else if (this.document.parent?.type !== 'character') {
|
||||
if (item.type === 'weapon') {
|
||||
if (itemType === 'weapon') {
|
||||
if (target.classList.contains('primary-weapon-section')) {
|
||||
if (!item.system.secondary)
|
||||
await this.document.update({
|
||||
|
|
@ -136,21 +137,21 @@ export default class ClassSheet extends DHBaseItemSheet {
|
|||
'system.characterGuide.suggestedSecondaryWeapon': item.uuid
|
||||
});
|
||||
}
|
||||
} else if (item.type === 'armor') {
|
||||
} else if (itemType === 'armor') {
|
||||
if (target.classList.contains('armor-section')) {
|
||||
await this.document.update({
|
||||
'system.characterGuide.suggestedArmor': item.uuid
|
||||
});
|
||||
}
|
||||
} else if (target.classList.contains('choice-a-section')) {
|
||||
if (item.type === 'loot' || item.type === 'consumable') {
|
||||
if (itemType === 'loot' || itemType === 'consumable') {
|
||||
const filteredChoiceA = this.document.system.inventory.choiceA;
|
||||
if (filteredChoiceA.length < 2)
|
||||
await this.document.update({
|
||||
'system.inventory.choiceA': [...filteredChoiceA.map(x => x.uuid), item.uuid]
|
||||
});
|
||||
}
|
||||
} else if (item.type === 'loot') {
|
||||
} else if (itemType === 'loot') {
|
||||
if (target.classList.contains('take-section')) {
|
||||
const filteredTake = this.document.system.inventory.take.filter(x => x);
|
||||
if (filteredTake.length < 3)
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
|||
async onRollDamage(event, message) {
|
||||
event.stopPropagation();
|
||||
const actor = await this.getActor(message.system.source.actor);
|
||||
if (game.user.character?.id !== actor.id && !game.user.isGM) return true;
|
||||
if(!actor.isOwner) return true;
|
||||
if (message.system.source.item && message.system.source.action) {
|
||||
const action = this.getAction(actor, message.system.source.item, message.system.source.action);
|
||||
if (!action || !action?.rollDamage) return;
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
Object.values(config).forEach(c => {
|
||||
const folder = {
|
||||
id: c.id,
|
||||
label: c.label,
|
||||
label: game.i18n.localize(c.label),
|
||||
selected: (!parent || parent.selected) && this.selectedMenu.path[depth] === c.id
|
||||
};
|
||||
folder.folders = c.folders
|
||||
|
|
@ -173,11 +173,16 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
folderPath = `${compendium}.folders.${folderId}`,
|
||||
folderData = foundry.utils.getProperty(config, folderPath);
|
||||
|
||||
const columns = ItemBrowser.getFolderConfig(folderData).map(col => ({
|
||||
...col,
|
||||
label: game.i18n.localize(col.label)
|
||||
}));
|
||||
|
||||
this.selectedMenu = {
|
||||
path: folderPath.split('.'),
|
||||
data: {
|
||||
...folderData,
|
||||
columns: ItemBrowser.getFolderConfig(folderData)
|
||||
columns: columns
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -237,6 +242,12 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
else if (typeof f.choices === 'function') {
|
||||
f.choices = f.choices();
|
||||
}
|
||||
|
||||
// Clear field label so template uses our custom label parameter
|
||||
if (f.field && f.label) {
|
||||
f.field.label = undefined;
|
||||
}
|
||||
|
||||
f.name ??= f.key;
|
||||
f.value = this.presets?.filter?.[f.name]?.value ?? null;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -10,29 +10,41 @@ export default class DhMeasuredTemplate extends foundry.canvas.placeables.Measur
|
|||
const splitRulerText = this.ruler.text.split(' ');
|
||||
if (splitRulerText.length > 0) {
|
||||
const rulerValue = Number(splitRulerText[0]);
|
||||
const vagueLabel = this.constructor.getDistanceLabel(rulerValue, rangeMeasurementSettings);
|
||||
this.ruler.text = vagueLabel;
|
||||
const result = DhMeasuredTemplate.getRangeLabels(rulerValue, rangeMeasurementSettings);
|
||||
this.ruler.text = result.distance + (result.units ? (' ' + result.units) : '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static getDistanceLabel(distance, settings) {
|
||||
if (distance <= settings.melee) {
|
||||
return game.i18n.localize('DAGGERHEART.CONFIG.Range.melee.name');
|
||||
static getRangeLabels(distanceValue, settings) {
|
||||
let result = { distance: distanceValue, units: '' }
|
||||
const rangeMeasurementOverride = canvas.scene.flags.daggerheart?.rangeMeasurementOverride;
|
||||
|
||||
if (rangeMeasurementOverride === true) {
|
||||
result.distance = distanceValue;
|
||||
result.units = canvas.scene?.grid?.units;
|
||||
return result
|
||||
}
|
||||
if (distance <= settings.veryClose) {
|
||||
return game.i18n.localize('DAGGERHEART.CONFIG.Range.veryClose.name');
|
||||
if (distanceValue <= settings.melee) {
|
||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.melee.name');
|
||||
return result;
|
||||
}
|
||||
if (distance <= settings.close) {
|
||||
return game.i18n.localize('DAGGERHEART.CONFIG.Range.close.name');
|
||||
if (distanceValue <= settings.veryClose) {
|
||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.veryClose.name');
|
||||
return result;
|
||||
}
|
||||
if (distance <= settings.far) {
|
||||
return game.i18n.localize('DAGGERHEART.CONFIG.Range.far.name');
|
||||
if (distanceValue <= settings.close) {
|
||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.close.name');
|
||||
return result;
|
||||
}
|
||||
if (distance > settings.far) {
|
||||
return game.i18n.localize('DAGGERHEART.CONFIG.Range.veryFar.name');
|
||||
if (distanceValue <= settings.far) {
|
||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.far.name');
|
||||
return result;
|
||||
}
|
||||
if (distanceValue > settings.far) {
|
||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.veryFar.name');
|
||||
}
|
||||
|
||||
return '';
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ export default class DhpRuler extends foundry.canvas.interaction.Ruler {
|
|||
const range = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.variantRules).rangeMeasurement;
|
||||
|
||||
if (range.enabled) {
|
||||
const distance = DhMeasuredTemplate.getDistanceLabel(waypoint.measurement.distance.toNearest(0.01), range);
|
||||
context.cost = { total: distance, units: null };
|
||||
context.distance = { total: distance, units: null };
|
||||
const result = DhMeasuredTemplate.getRangeLabels(waypoint.measurement.distance.toNearest(0.01), range);
|
||||
context.cost = { total: result.distance, units: result.units };
|
||||
context.distance = { total: result.distance, units: result.units };
|
||||
}
|
||||
|
||||
return context;
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ export default class DhpTokenRuler extends foundry.canvas.placeables.tokens.Toke
|
|||
const range = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.variantRules).rangeMeasurement;
|
||||
|
||||
if (range.enabled) {
|
||||
const distance = DhMeasuredTemplate.getDistanceLabel(waypoint.measurement.distance.toNearest(0.01), range);
|
||||
context.cost = { total: distance, units: null };
|
||||
context.distance = { total: distance, units: null };
|
||||
const result = DhMeasuredTemplate.getRangeLabels(waypoint.measurement.distance.toNearest(0.01), range);
|
||||
context.cost = { total: result.distance, units: result.units };
|
||||
context.distance = { total: result.distance, units: result.units };
|
||||
}
|
||||
|
||||
return context;
|
||||
|
|
|
|||
|
|
@ -157,6 +157,11 @@ export const adversaryTypes = {
|
|||
}
|
||||
};
|
||||
|
||||
export const allAdversaryTypes = () => ({
|
||||
...adversaryTypes,
|
||||
...game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).adversaryTypes
|
||||
});
|
||||
|
||||
export const environmentTypes = {
|
||||
exploration: {
|
||||
label: 'DAGGERHEART.CONFIG.EnvironmentType.exploration.label',
|
||||
|
|
|
|||
|
|
@ -624,6 +624,13 @@ export const rollTypes = {
|
|||
}
|
||||
};
|
||||
|
||||
export const attributionSources = {
|
||||
daggerheart: {
|
||||
label: 'Daggerheart',
|
||||
values: [{ label: 'Daggerheart SRD' }]
|
||||
}
|
||||
};
|
||||
|
||||
export const fearDisplay = {
|
||||
token: { value: 'token', label: 'DAGGERHEART.SETTINGS.Appearance.fearDisplay.token' },
|
||||
bar: { value: 'bar', label: 'DAGGERHEART.SETTINGS.Appearance.fearDisplay.bar' },
|
||||
|
|
|
|||
|
|
@ -3,63 +3,63 @@ export const typeConfig = {
|
|||
columns: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier"
|
||||
label: "DAGGERHEART.GENERAL.Tiers.singular"
|
||||
},
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type"
|
||||
label: "DAGGERHEART.GENERAL.type"
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier",
|
||||
label: "DAGGERHEART.GENERAL.Tiers.singular",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.tier'
|
||||
},
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type",
|
||||
label: "DAGGERHEART.GENERAL.type",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.type'
|
||||
},
|
||||
{
|
||||
key: "system.difficulty",
|
||||
name: "difficulty.min",
|
||||
label: "Difficulty (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.difficultyMin",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.difficulty',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.difficulty",
|
||||
name: "difficulty.max",
|
||||
label: "Difficulty (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.difficultyMax",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.difficulty',
|
||||
operator: "lte"
|
||||
},
|
||||
{
|
||||
key: "system.resources.hitPoints.max",
|
||||
name: "hp.min",
|
||||
label: "Hit Points (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.hitPointsMin",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.hitPoints.fields.max',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.resources.hitPoints.max",
|
||||
name: "hp.max",
|
||||
label: "Hit Points (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.hitPointsMax",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.hitPoints.fields.max',
|
||||
operator: "lte"
|
||||
},
|
||||
{
|
||||
key: "system.resources.stress.max",
|
||||
name: "stress.min",
|
||||
label: "Stress (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.stressMin",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.stress.fields.max',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.resources.stress.max",
|
||||
name: "stress.max",
|
||||
label: "Stress (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.stressMax",
|
||||
field: 'system.api.models.actors.DhAdversary.schema.fields.resources.fields.stress.fields.max',
|
||||
operator: "lte"
|
||||
},
|
||||
|
|
@ -69,70 +69,70 @@ export const typeConfig = {
|
|||
columns: [
|
||||
{
|
||||
key: "type",
|
||||
label: "Type"
|
||||
label: "DAGGERHEART.GENERAL.type"
|
||||
},
|
||||
{
|
||||
key: "system.secondary",
|
||||
label: "Subtype",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.subtype",
|
||||
format: (isSecondary) => isSecondary ? "secondary" : (isSecondary === false ? "primary" : '-')
|
||||
},
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier"
|
||||
label: "DAGGERHEART.GENERAL.Tiers.singular"
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "type",
|
||||
label: "Type",
|
||||
label: "DAGGERHEART.GENERAL.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",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.subtype",
|
||||
choices: [
|
||||
{ value: false, label: "Primary Weapon"},
|
||||
{ value: true, label: "Secondary Weapon"}
|
||||
{ value: false, label: "DAGGERHEART.ITEMS.Weapon.primaryWeapon" },
|
||||
{ value: true, label: "DAGGERHEART.ITEMS.Weapon.secondaryWeapon" }
|
||||
]
|
||||
},
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier",
|
||||
choices: [{ value: "1", label: "1"}, { value: "2", label: "2"}, { value: "3", label: "3"}, { value: "4", label: "4"}]
|
||||
label: "DAGGERHEART.GENERAL.Tiers.singular",
|
||||
choices: [{ value: "1", label: "1" }, { value: "2", label: "2" }, { value: "3", label: "3" }, { value: "4", label: "4" }]
|
||||
},
|
||||
{
|
||||
key: "system.burden",
|
||||
label: "Burden",
|
||||
label: "DAGGERHEART.GENERAL.burden",
|
||||
field: 'system.api.models.items.DHWeapon.schema.fields.burden'
|
||||
},
|
||||
{
|
||||
key: "system.attack.roll.trait",
|
||||
label: "Trait",
|
||||
label: "DAGGERHEART.GENERAL.Trait.single",
|
||||
field: 'system.api.models.actions.actionsTypes.attack.schema.fields.roll.fields.trait'
|
||||
},
|
||||
{
|
||||
key: "system.attack.range",
|
||||
label: "Range",
|
||||
label: "DAGGERHEART.GENERAL.range",
|
||||
field: 'system.api.models.actions.actionsTypes.attack.schema.fields.range'
|
||||
},
|
||||
{
|
||||
key: "system.baseScore",
|
||||
name: "armor.min",
|
||||
label: "Armor Score (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.armorScoreMin",
|
||||
field: 'system.api.models.items.DHArmor.schema.fields.baseScore',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.baseScore",
|
||||
name: "armor.max",
|
||||
label: "Armor Score (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.armorScoreMax",
|
||||
field: 'system.api.models.items.DHArmor.schema.fields.baseScore',
|
||||
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})),
|
||||
label: "DAGGERHEART.GENERAL.features",
|
||||
choices: () => [...Object.entries(CONFIG.DH.ITEM.weaponFeatures), ...Object.entries(CONFIG.DH.ITEM.armorFeatures)].map(([k, v]) => ({ value: k, label: v.label })),
|
||||
operator: "contains3"
|
||||
}
|
||||
]
|
||||
|
|
@ -149,54 +149,54 @@ export const typeConfig = {
|
|||
columns: [
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type"
|
||||
label: "DAGGERHEART.GENERAL.type"
|
||||
},
|
||||
{
|
||||
key: "system.domain",
|
||||
label: "Domain"
|
||||
label: "DAGGERHEART.GENERAL.Domain.single"
|
||||
},
|
||||
{
|
||||
key: "system.level",
|
||||
label: "Level"
|
||||
label: "DAGGERHEART.GENERAL.level"
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.type",
|
||||
label: "Type",
|
||||
label: "DAGGERHEART.GENERAL.type",
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.type'
|
||||
},
|
||||
{
|
||||
key: "system.domain",
|
||||
label: "Domain",
|
||||
label: "DAGGERHEART.GENERAL.Domain.single",
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.domain',
|
||||
operator: "contains2"
|
||||
},
|
||||
{
|
||||
key: "system.level",
|
||||
name: "level.min",
|
||||
label: "Level (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.levelMin",
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.level',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.level",
|
||||
name: "level.max",
|
||||
label: "Level (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.levelMax",
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.level',
|
||||
operator: "lte"
|
||||
},
|
||||
{
|
||||
key: "system.recallCost",
|
||||
name: "recall.min",
|
||||
label: "Recall Cost (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.recallCostMin",
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.recallCost',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.recallCost",
|
||||
name: "recall.max",
|
||||
label: "Recall Cost (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.recallCostMax",
|
||||
field: 'system.api.models.items.DHDomainCard.schema.fields.recallCost',
|
||||
operator: "lte"
|
||||
}
|
||||
|
|
@ -206,50 +206,50 @@ export const typeConfig = {
|
|||
columns: [
|
||||
{
|
||||
key: "system.evasion",
|
||||
label: "Evasion"
|
||||
label: "DAGGERHEART.GENERAL.evasion"
|
||||
},
|
||||
{
|
||||
key: "system.hitPoints",
|
||||
label: "Hit Points"
|
||||
label: "DAGGERHEART.GENERAL.HitPoints.plural"
|
||||
},
|
||||
{
|
||||
key: "system.domains",
|
||||
label: "Domains"
|
||||
label: "DAGGERHEART.GENERAL.Domain.plural"
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.evasion",
|
||||
name: "evasion.min",
|
||||
label: "Evasion (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.evasionMin",
|
||||
field: 'system.api.models.items.DHClass.schema.fields.evasion',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.evasion",
|
||||
name: "evasion.max",
|
||||
label: "Evasion (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.evasionMax",
|
||||
field: 'system.api.models.items.DHClass.schema.fields.evasion',
|
||||
operator: "lte"
|
||||
},
|
||||
{
|
||||
key: "system.hitPoints",
|
||||
name: "hp.min",
|
||||
label: "Hit Points (Min)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.hitPointsMin",
|
||||
field: 'system.api.models.items.DHClass.schema.fields.hitPoints',
|
||||
operator: "gte"
|
||||
},
|
||||
{
|
||||
key: "system.hitPoints",
|
||||
name: "hp.max",
|
||||
label: "Hit Points (Max)",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.hitPointsMax",
|
||||
field: 'system.api.models.items.DHClass.schema.fields.hitPoints',
|
||||
operator: "lte"
|
||||
},
|
||||
{
|
||||
key: "system.domains",
|
||||
label: "Domains",
|
||||
choices: () => Object.values(CONFIG.DH.DOMAIN.domains).map(d => ({ value: d.id, label: d.label})),
|
||||
label: "DAGGERHEART.GENERAL.Domain.plural",
|
||||
choices: () => Object.values(CONFIG.DH.DOMAIN.domains).map(d => ({ value: d.id, label: d.label })),
|
||||
operator: "contains2"
|
||||
}
|
||||
]
|
||||
|
|
@ -258,14 +258,14 @@ export const typeConfig = {
|
|||
columns: [
|
||||
{
|
||||
key: "id",
|
||||
label: "Class",
|
||||
label: "TYPES.Item.class",
|
||||
format: (id) => {
|
||||
return "";
|
||||
}
|
||||
},
|
||||
{
|
||||
key: "system.spellcastingTrait",
|
||||
label: "Spellcasting Trait"
|
||||
label: "DAGGERHEART.ITEMS.Subclass.spellcastingTrait"
|
||||
}
|
||||
],
|
||||
filters: []
|
||||
|
|
@ -274,22 +274,22 @@ export const typeConfig = {
|
|||
columns: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier"
|
||||
label: "DAGGERHEART.GENERAL.Tiers.singular"
|
||||
},
|
||||
{
|
||||
key: "system.mainTrait",
|
||||
label: "Main Trait"
|
||||
label: "DAGGERHEART.GENERAL.Trait.single"
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: "system.tier",
|
||||
label: "Tier",
|
||||
label: "DAGGERHEART.GENERAL.Tiers.singular",
|
||||
field: 'system.api.models.items.DHBeastform.schema.fields.tier'
|
||||
},
|
||||
{
|
||||
key: "system.mainTrait",
|
||||
label: "Main Trait",
|
||||
label: "DAGGERHEART.GENERAL.Trait.single",
|
||||
field: 'system.api.models.items.DHBeastform.schema.fields.mainTrait'
|
||||
}
|
||||
]
|
||||
|
|
@ -304,20 +304,20 @@ export const compendiumConfig = {
|
|||
"adversaries": {
|
||||
id: "adversaries",
|
||||
keys: ["adversaries"],
|
||||
label: "Adversaries",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.adversaries",
|
||||
type: ["adversary"],
|
||||
listType: "adversaries"
|
||||
},
|
||||
"ancestries": {
|
||||
id: "ancestries",
|
||||
keys: ["ancestries"],
|
||||
label: "Ancestries",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.ancestries",
|
||||
type: ["ancestry"],
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["ancestries"],
|
||||
label: "Features",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.features",
|
||||
type: ["feature"]
|
||||
}
|
||||
}
|
||||
|
|
@ -325,26 +325,26 @@ export const compendiumConfig = {
|
|||
"equipments": {
|
||||
id: "equipments",
|
||||
keys: ["armors", "weapons", "consumables", "loot"],
|
||||
label: "Equipment",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.equipment",
|
||||
type: ["armor", "weapon", "consumable", "loot"],
|
||||
listType: "items"
|
||||
},
|
||||
"classes": {
|
||||
id: "classes",
|
||||
keys: ["classes"],
|
||||
label: "Classes",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.classes",
|
||||
type: ["class"],
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["classes"],
|
||||
label: "Features",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.features",
|
||||
type: ["feature"]
|
||||
},
|
||||
"items": {
|
||||
id: "items",
|
||||
keys: ["classes"],
|
||||
label: "Items",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.items",
|
||||
type: ["armor", "weapon", "consumable", "loot"],
|
||||
listType: "items"
|
||||
}
|
||||
|
|
@ -354,27 +354,27 @@ export const compendiumConfig = {
|
|||
"subclasses": {
|
||||
id: "subclasses",
|
||||
keys: ["subclasses"],
|
||||
label: "Subclasses",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.subclasses",
|
||||
type: ["subclass"],
|
||||
listType: "subclasses"
|
||||
},
|
||||
"domains": {
|
||||
id: "domains",
|
||||
keys: ["domains"],
|
||||
label: "Domain Cards",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.domainCards",
|
||||
type: ["domainCard"],
|
||||
listType: "cards"
|
||||
},
|
||||
"communities": {
|
||||
id: "communities",
|
||||
keys: ["communities"],
|
||||
label: "Communities",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.communities",
|
||||
type: ["community"],
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["communities"],
|
||||
label: "Features",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.features",
|
||||
type: ["feature"]
|
||||
}
|
||||
}
|
||||
|
|
@ -382,20 +382,20 @@ export const compendiumConfig = {
|
|||
"environments": {
|
||||
id: "environments",
|
||||
keys: ["environments"],
|
||||
label: "Environments",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.environments",
|
||||
type: ["environment"]
|
||||
},
|
||||
"beastforms": {
|
||||
id: "beastforms",
|
||||
keys: ["beastforms"],
|
||||
label: "Beastforms",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.beastforms",
|
||||
type: ["beastform"],
|
||||
listType: "beastforms",
|
||||
folders: {
|
||||
"features": {
|
||||
id: "features",
|
||||
keys: ["beastforms"],
|
||||
label: "Features",
|
||||
label: "DAGGERHEART.UI.ItemBrowser.folders.features",
|
||||
type: ["feature"]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,5 +26,6 @@ export const gameSettings = {
|
|||
Fear: 'ResourcesFear'
|
||||
},
|
||||
LevelTiers: 'LevelTiers',
|
||||
Countdowns: 'Countdowns'
|
||||
Countdowns: 'Countdowns',
|
||||
LastMigrationVersion: 'LastMigrationVersion'
|
||||
};
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
|||
const hasRoll = this.getUseHasRoll(byPass);
|
||||
return {
|
||||
event,
|
||||
title: `${this.item.name}: ${this.name}`,
|
||||
title: `${this.item.name}: ${game.i18n.localize(this.name)}`,
|
||||
source: {
|
||||
item: this.item._id,
|
||||
action: this._id,
|
||||
|
|
@ -209,14 +209,15 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
|||
}
|
||||
|
||||
async consume(config, successCost = false) {
|
||||
const usefulResources = {
|
||||
...foundry.utils.deepClone(this.actor.system.resources),
|
||||
fear: {
|
||||
value: game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Resources.Fear),
|
||||
max: game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).maxFear,
|
||||
reversed: false
|
||||
}
|
||||
};
|
||||
const actor = this.actor.system.partner ?? this.actor,
|
||||
usefulResources = {
|
||||
...foundry.utils.deepClone(actor.system.resources),
|
||||
fear: {
|
||||
value: game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Resources.Fear),
|
||||
max: game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).maxFear,
|
||||
reversed: false
|
||||
}
|
||||
};
|
||||
|
||||
for (var cost of config.costs) {
|
||||
if (cost.keyIsID) {
|
||||
|
|
@ -247,7 +248,7 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
|||
}
|
||||
}, []);
|
||||
|
||||
await (this.actor.system.partner ?? this.actor).modifyResource(resources);
|
||||
await actor.modifyResource(resources);
|
||||
if (
|
||||
config.uses?.enabled &&
|
||||
((!successCost && (!config.uses?.consumeOnSuccess || config.roll?.success)) ||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ export default class DhpAdversary extends BaseDataActor {
|
|||
return foundry.utils.mergeObject(super.metadata, {
|
||||
label: 'TYPES.Actor.adversary',
|
||||
type: 'adversary',
|
||||
settingSheet: DHAdversarySettings
|
||||
settingSheet: DHAdversarySettings,
|
||||
hasAttribution: true
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ export default class DhpAdversary extends BaseDataActor {
|
|||
}),
|
||||
type: new fields.StringField({
|
||||
required: true,
|
||||
choices: CONFIG.DH.ACTOR.adversaryTypes,
|
||||
choices: CONFIG.DH.ACTOR.allAdversaryTypes,
|
||||
initial: CONFIG.DH.ACTOR.adversaryTypes.standard.id
|
||||
}),
|
||||
motivesAndTactics: new fields.StringField(),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import DHBaseActorSettings from '../../applications/sheets/api/actor-setting.mjs';
|
||||
import { createScrollText, getScrollTextData } from '../../helpers/utils.mjs';
|
||||
import { getScrollTextData } from '../../helpers/utils.mjs';
|
||||
|
||||
const resistanceField = (resistanceLabel, immunityLabel, reductionLabel) =>
|
||||
new foundry.data.fields.SchemaField({
|
||||
|
|
@ -39,7 +39,8 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
type: 'base',
|
||||
isNPC: true,
|
||||
settingSheet: null,
|
||||
hasResistances: true
|
||||
hasResistances: true,
|
||||
hasAttribution: false
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -53,6 +54,13 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
const fields = foundry.data.fields;
|
||||
const schema = {};
|
||||
|
||||
if (this.metadata.hasAttribution) {
|
||||
schema.attribution = new fields.SchemaField({
|
||||
source: new fields.StringField(),
|
||||
page: new fields.NumberField(),
|
||||
artist: new fields.StringField()
|
||||
});
|
||||
}
|
||||
if (this.metadata.isNPC) schema.description = new fields.HTMLField({ required: true, nullable: true });
|
||||
if (this.metadata.hasResistances)
|
||||
schema.resistance = new fields.SchemaField({
|
||||
|
|
@ -78,6 +86,13 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
*/
|
||||
static DEFAULT_ICON = null;
|
||||
|
||||
get attributionLabel() {
|
||||
if (!this.attribution) return;
|
||||
|
||||
const { source, page } = this.attribution;
|
||||
return [source, page ? `pg ${page}.` : null].filter(x => x).join('. ');
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
/**
|
||||
|
|
@ -133,6 +148,6 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
_onUpdate(changes, options, userId) {
|
||||
super._onUpdate(changes, options, userId);
|
||||
|
||||
createScrollText(this.parent, options.scrollingTextData);
|
||||
if (options.scrollingTextData) this.parent.queueScrollText(options.scrollingTextData);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,17 +93,9 @@ export default class DhCharacter extends BaseDataActor {
|
|||
faith: new fields.StringField({})
|
||||
})
|
||||
}),
|
||||
class: new fields.SchemaField({
|
||||
value: new ForeignDocumentUUIDField({ type: 'Item', nullable: true }),
|
||||
subclass: new ForeignDocumentUUIDField({ type: 'Item', nullable: true })
|
||||
}),
|
||||
multiclass: new fields.SchemaField({
|
||||
value: new ForeignDocumentUUIDField({ type: 'Item', nullable: true }),
|
||||
subclass: new ForeignDocumentUUIDField({ type: 'Item', nullable: true })
|
||||
}),
|
||||
attack: new ActionField({
|
||||
initial: {
|
||||
name: 'Unarmed Attack',
|
||||
name: 'DAGGERHEART.GENERAL.unarmedAttack',
|
||||
img: 'icons/skills/melee/unarmed-punch-fist-yellow-red.webp',
|
||||
_id: foundry.utils.randomID(),
|
||||
systemPath: 'attack',
|
||||
|
|
@ -314,6 +306,26 @@ export default class DhCharacter extends BaseDataActor {
|
|||
return this.parent.items.find(x => x.type === 'community') ?? null;
|
||||
}
|
||||
|
||||
get class() {
|
||||
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 {
|
||||
value,
|
||||
subclass
|
||||
};
|
||||
}
|
||||
|
||||
get multiclass() {
|
||||
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 {
|
||||
value,
|
||||
subclass
|
||||
};
|
||||
}
|
||||
|
||||
get features() {
|
||||
return this.parent.items.filter(x => x.type === 'feature') ?? [];
|
||||
}
|
||||
|
|
@ -323,7 +335,8 @@ export default class DhCharacter extends BaseDataActor {
|
|||
}
|
||||
|
||||
get needsCharacterSetup() {
|
||||
return !(this.class.value || this.class.subclass || this.ancestry || this.community);
|
||||
const { value: classValue, subclass } = this.class;
|
||||
return !(classValue || subclass || this.ancestry || this.community);
|
||||
}
|
||||
|
||||
get spellcastModifierTrait() {
|
||||
|
|
@ -347,7 +360,8 @@ export default class DhCharacter extends BaseDataActor {
|
|||
|
||||
get domains() {
|
||||
const classDomains = this.class.value ? this.class.value.system.domains : [];
|
||||
const multiclassDomains = this.multiclass.value ? this.multiclass.value.system.domains : [];
|
||||
const multiclass = this.multiclass.value;
|
||||
const multiclassDomains = multiclass ? multiclass.system.domains : [];
|
||||
return [...classDomains, ...multiclassDomains];
|
||||
}
|
||||
|
||||
|
|
@ -430,16 +444,12 @@ export default class DhCharacter extends BaseDataActor {
|
|||
} else if (item.system.originItemType === CONFIG.DH.ITEM.featureTypes.subclass.id) {
|
||||
if (this.class.subclass) {
|
||||
const subclassState = this.class.subclass.system.featureState;
|
||||
const subclass =
|
||||
item.system.identifier === 'multiclass' ? this.multiclass.subclass : this.class.subclass;
|
||||
const featureType = subclass
|
||||
? (subclass.system.features.find(x => x.item?.uuid === item.uuid)?.type ?? null)
|
||||
: null;
|
||||
|
||||
if (
|
||||
featureType === CONFIG.DH.ITEM.featureSubTypes.foundation ||
|
||||
(featureType === CONFIG.DH.ITEM.featureSubTypes.specialization && subclassState >= 2) ||
|
||||
(featureType === CONFIG.DH.ITEM.featureSubTypes.mastery && subclassState >= 3)
|
||||
item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.foundation ||
|
||||
(item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.specialization &&
|
||||
subclassState >= 2) ||
|
||||
(item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.mastery && subclassState >= 3)
|
||||
) {
|
||||
subclassFeatures.push(item);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ export default class DhEnvironment extends BaseDataActor {
|
|||
label: 'TYPES.Actor.environment',
|
||||
type: 'environment',
|
||||
settingSheet: DHEnvironmentSettings,
|
||||
hasResistances: false
|
||||
hasResistances: false,
|
||||
hasAttribution: true
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export default class CostField extends fields.ArrayField {
|
|||
config.costs = CostField.calcCosts.call(this, costs);
|
||||
const hasCost = CostField.hasCost.call(this, config.costs);
|
||||
if (config.isFastForward && !hasCost)
|
||||
return ui.notifications.warn("You don't have the resources to use that action.");
|
||||
return ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.insufficientResources'));
|
||||
return hasCost;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export default class UsesField extends fields.SchemaField {
|
|||
if (uses && !uses.value) uses.value = 0;
|
||||
config.uses = uses;
|
||||
const hasUses = UsesField.hasUses.call(this, config.uses);
|
||||
if (config.isFastForward && !hasUses) return ui.notifications.warn("That action doesn't have remaining uses.");
|
||||
if (config.isFastForward && !hasUses) return ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.actionNoUsesRemaining'));
|
||||
return hasUses;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ export class ActionsField extends MappingField {
|
|||
*/
|
||||
export class ActionField extends foundry.data.fields.ObjectField {
|
||||
getModel(value) {
|
||||
if (value && !value.type) value.type = 'attack';
|
||||
return game.system.api.models.actions.actionsTypes[value.type] ?? null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,13 @@ export default class ForeignDocumentUUIDField extends foundry.data.fields.Docume
|
|||
toObject(value) {
|
||||
return value?.uuid ?? value;
|
||||
}
|
||||
|
||||
/** @override */
|
||||
_cast(value) {
|
||||
if (typeof value === 'string') return value;
|
||||
if (value instanceof foundry.abstract.Document) return value.uuid;
|
||||
throw new Error(
|
||||
`The value provided to a ForeignDocumentUUIDField must be a ${foundry.abstract.Document.name} instance or a UUID string.`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
hasResource: false,
|
||||
isQuantifiable: false,
|
||||
isInventoryItem: false,
|
||||
hasActions: false
|
||||
hasActions: false,
|
||||
hasAttribution: true
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +38,13 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
|
||||
/** @inheritDoc */
|
||||
static defineSchema() {
|
||||
const schema = {};
|
||||
const schema = {
|
||||
attribution: new fields.SchemaField({
|
||||
source: new fields.StringField(),
|
||||
page: new fields.NumberField(),
|
||||
artist: new fields.StringField()
|
||||
})
|
||||
};
|
||||
|
||||
if (this.metadata.hasDescription) schema.description = new fields.HTMLField({ required: true, nullable: true });
|
||||
|
||||
|
|
@ -110,6 +117,13 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
return [];
|
||||
}
|
||||
|
||||
get attributionLabel() {
|
||||
if (!this.attribution) return;
|
||||
|
||||
const { source, page } = this.attribution;
|
||||
return [source, page ? `pg ${page}.` : null].filter(x => x).join('. ');
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtain a data object used to evaluate any dice rolls associated with this Item Type
|
||||
* @param {object} [options] - Options which modify the getRollData method.
|
||||
|
|
@ -144,50 +158,30 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
}
|
||||
|
||||
if (this.actor && this.actor.type === 'character' && this.features) {
|
||||
const featureUpdates = {};
|
||||
const features = [];
|
||||
for (let f of this.features) {
|
||||
const fBase = f.item ?? f;
|
||||
const feature = fBase.system ? fBase : await foundry.utils.fromUuid(fBase.uuid);
|
||||
const createData = foundry.utils.mergeObject(
|
||||
feature.toObject(),
|
||||
{
|
||||
system: {
|
||||
originItemType: this.parent.type,
|
||||
originId: data._id,
|
||||
identifier: this.isMulticlass ? 'multiclass' : null
|
||||
}
|
||||
},
|
||||
{ inplace: false }
|
||||
const multiclass = this.isMulticlass ? 'multiclass' : null;
|
||||
features.push(
|
||||
foundry.utils.mergeObject(
|
||||
feature.toObject(),
|
||||
{
|
||||
_stats: { compendiumSource: fBase.uuid },
|
||||
system: {
|
||||
originItemType: this.parent.type,
|
||||
identifier: multiclass ?? (f.item ? f.type : null)
|
||||
}
|
||||
},
|
||||
{ inplace: false }
|
||||
)
|
||||
);
|
||||
const [doc] = await this.actor.createEmbeddedDocuments('Item', [createData]);
|
||||
|
||||
if (!featureUpdates.features)
|
||||
featureUpdates.features = this.features.map(x => (x.item ? { ...x, item: x.item.uuid } : x.uuid));
|
||||
|
||||
if (f.item) {
|
||||
const existingFeature = featureUpdates.features.find(x => x.item === f.item.uuid);
|
||||
existingFeature.item = doc.uuid;
|
||||
} else {
|
||||
const replaceIndex = featureUpdates.features.findIndex(x => x === f.uuid);
|
||||
featureUpdates.features.splice(replaceIndex, 1, doc.uuid);
|
||||
}
|
||||
}
|
||||
|
||||
await this.updateSource(featureUpdates);
|
||||
await this.actor.createEmbeddedDocuments('Item', features);
|
||||
}
|
||||
}
|
||||
|
||||
async _preDelete() {
|
||||
if (!this.actor || this.actor.type !== 'character') return;
|
||||
|
||||
const items = this.actor.items.filter(item => item.system.originId === this.parent.id);
|
||||
if (items.length > 0)
|
||||
await this.actor.deleteEmbeddedDocuments(
|
||||
'Item',
|
||||
items.map(x => x.id)
|
||||
);
|
||||
}
|
||||
|
||||
async _preUpdate(changed, options, userId) {
|
||||
const allowed = await super._preUpdate(changed, options, userId);
|
||||
if (allowed === false) return false;
|
||||
|
|
@ -207,6 +201,8 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
super._onUpdate(changed, options, userId);
|
||||
|
||||
updateLinkedItemApps(options, this.parent.sheet);
|
||||
createScrollText(this.parent?.parent, options.scrollingTextData);
|
||||
|
||||
if (this.parent?.parent && options.scrollingTextData)
|
||||
this.parent.parent.queueScrollText(options.scrollingTextData);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,26 +102,11 @@ export default class DHClass extends BaseDataItem {
|
|||
if (allowed === false) return;
|
||||
}
|
||||
|
||||
_onCreate(data, options, userId) {
|
||||
super._onCreate(data, options, userId);
|
||||
|
||||
if (userId !== game.user.id) return;
|
||||
|
||||
if (options.parent?.type === 'character') {
|
||||
const path = `system.${data.system.isMulticlass ? 'multiclass.value' : 'class.value'}`;
|
||||
options.parent.update({ [path]: `${options.parent.uuid}.Item.${data._id}` });
|
||||
}
|
||||
}
|
||||
|
||||
_onDelete(options, userId) {
|
||||
super._onDelete(options, userId);
|
||||
|
||||
if (options.parent?.type === 'character') {
|
||||
const path = `system.${this.isMulticlass ? 'multiclass' : 'class'}`;
|
||||
options.parent.update({
|
||||
[`${path}.value`]: null
|
||||
});
|
||||
|
||||
foundry.utils.getProperty(options.parent, `${path}.subclass`)?.delete();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import BaseDataItem from './base.mjs';
|
||||
import { ActionField, ActionsField } from '../fields/actionField.mjs';
|
||||
|
||||
export default class DHFeature extends BaseDataItem {
|
||||
/** @inheritDoc */
|
||||
|
|
@ -30,26 +29,7 @@ export default class DHFeature extends BaseDataItem {
|
|||
nullable: true,
|
||||
initial: null
|
||||
}),
|
||||
originId: new fields.StringField({ nullable: true, initial: null }),
|
||||
identifier: new fields.StringField()
|
||||
};
|
||||
}
|
||||
|
||||
get spellcastingModifier() {
|
||||
let traitValue = 0;
|
||||
if (this.actor && this.originId && ['class', 'subclass'].includes(this.originItemType)) {
|
||||
if (this.originItemType === 'subclass') {
|
||||
traitValue =
|
||||
this.actor.system.traits[this.actor.items.get(this.originId).system.spellcastingTrait]?.value ?? 0;
|
||||
} else {
|
||||
const subclass =
|
||||
this.actor.system.multiclass.value?.id === this.originId
|
||||
? this.actor.system.multiclass.subclass
|
||||
: this.actor.system.class.subclass;
|
||||
traitValue = this.actor.system.traits[subclass.system.spellcastingTrait]?.value ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
return traitValue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,24 +88,4 @@ export default class DHSubclass extends BaseDataItem {
|
|||
const allowed = await super._preCreate(data, options, user);
|
||||
if (allowed === false) return;
|
||||
}
|
||||
|
||||
_onCreate(data, options, userId) {
|
||||
super._onCreate(data, options, userId);
|
||||
|
||||
if (userId !== game.user.id) return;
|
||||
|
||||
if (options.parent?.type === 'character') {
|
||||
const path = `system.${data.system.isMulticlass ? 'multiclass.subclass' : 'class.subclass'}`;
|
||||
options.parent.update({ [path]: `${options.parent.uuid}.Item.${data._id}` });
|
||||
}
|
||||
}
|
||||
|
||||
_onDelete(options, userId) {
|
||||
super._onDelete(options, userId);
|
||||
|
||||
if (options.parent?.type === 'character') {
|
||||
const path = `system.${this.isMulticlass ? 'multiclass.subclass' : 'class.subclass'}`;
|
||||
options.parent.update({ [path]: null });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,6 +71,29 @@ export default class DhAppearance extends foundry.abstract.DataModel {
|
|||
extendItemDescriptions: new fields.BooleanField({
|
||||
initial: false,
|
||||
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.extendItemDescriptions.label'
|
||||
}),
|
||||
expandRollMessage: new fields.SchemaField({
|
||||
desc: new fields.BooleanField({
|
||||
initial: false,
|
||||
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.expandRollMessageDesc.label'
|
||||
}),
|
||||
roll: new fields.BooleanField({
|
||||
initial: false,
|
||||
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.expandRollMessageRoll.label'
|
||||
}),
|
||||
damage: new fields.BooleanField({
|
||||
initial: false,
|
||||
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.expandRollMessageDamage.label'
|
||||
}),
|
||||
target: new fields.BooleanField({
|
||||
initial: false,
|
||||
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.expandRollMessageTarget.label'
|
||||
})
|
||||
}),
|
||||
hideAttribution: new fields.BooleanField({
|
||||
required: true,
|
||||
initial: false,
|
||||
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.hideAttribution.label'
|
||||
})
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,6 +108,13 @@ export default class DhHomebrew extends foundry.abstract.DataModel {
|
|||
}),
|
||||
description: new fields.HTMLField()
|
||||
})
|
||||
),
|
||||
adversaryTypes: new fields.TypedObjectField(
|
||||
new fields.SchemaField({
|
||||
id: new fields.StringField({ required: true }),
|
||||
label: new fields.StringField({ required: true, label: 'DAGGERHEART.GENERAL.label' }),
|
||||
description: new fields.StringField()
|
||||
})
|
||||
)
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
export { default as BaseRoll } from './baseRoll.mjs';
|
||||
export { default as D20Roll } from './d20Roll.mjs';
|
||||
export { default as DamageRoll } from './damageRoll.mjs';
|
||||
export { default as DHRoll } from './dhRoll.mjs';
|
||||
|
|
|
|||
7
module/dice/baseRoll.mjs
Normal file
7
module/dice/baseRoll.mjs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export default class BaseRoll extends Roll {
|
||||
/** @inheritdoc */
|
||||
static CHAT_TEMPLATE = 'systems/daggerheart/templates/ui/chat/foundryRoll.hbs';
|
||||
|
||||
/** @inheritdoc */
|
||||
static TOOLTIP_TEMPLATE = 'systems/daggerheart/templates/ui/chat/foundryRollTooltip.hbs';
|
||||
}
|
||||
|
|
@ -37,7 +37,13 @@ export default class DamageRoll extends DHRoll {
|
|||
Object.values(config.damage).flatMap(r => r.parts.map(p => p.roll))
|
||||
),
|
||||
diceRoll = Roll.fromTerms([pool]);
|
||||
await game.dice3d.showForRoll(diceRoll, game.user, true, chatMessage.whisper, chatMessage.blind);
|
||||
await game.dice3d.showForRoll(
|
||||
diceRoll,
|
||||
game.user,
|
||||
true,
|
||||
chatMessage.whisper?.length > 0 ? chatMessage.whisper : null,
|
||||
chatMessage.blind
|
||||
);
|
||||
}
|
||||
await super.buildPost(roll, config, message);
|
||||
if (config.source?.message) {
|
||||
|
|
@ -137,7 +143,7 @@ export default class DamageRoll extends DHRoll {
|
|||
}
|
||||
|
||||
if (config.isCritical && part.applyTo === CONFIG.DH.GENERAL.healingTypes.hitPoints.id) {
|
||||
const total = part.roll.dice.reduce((acc, term) => acc + term._faces*term._number, 0);
|
||||
const total = part.roll.dice.reduce((acc, term) => acc + term._faces * term._number, 0);
|
||||
if (total > 0) {
|
||||
part.roll.terms.push(...this.formatModifier(total));
|
||||
}
|
||||
|
|
@ -161,11 +167,11 @@ export default class DamageRoll extends DHRoll {
|
|||
if (config.data.parent.appliedEffects) {
|
||||
// Bardic Rally
|
||||
const rallyChoices = config.data?.parent?.appliedEffects.reduce((a, c) => {
|
||||
const change = c.changes.find(ch => ch.key === 'system.bonuses.rally');
|
||||
if (change) a.push({ value: c.id, label: change.value });
|
||||
return a;
|
||||
}, [])
|
||||
if(rallyChoices.length) {
|
||||
const change = c.changes.find(ch => ch.key === 'system.bonuses.rally');
|
||||
if (change) a.push({ value: c.id, label: change.value });
|
||||
return a;
|
||||
}, []);
|
||||
if (rallyChoices.length) {
|
||||
mods.rally = {
|
||||
label: 'DAGGERHEART.CLASS.Feature.rallyDice',
|
||||
values: rallyChoices,
|
||||
|
|
@ -318,15 +324,19 @@ export default class DamageRoll extends DHRoll {
|
|||
});
|
||||
|
||||
const updateMessage = game.messages.get(message._id);
|
||||
const damageParts = updateMessage.system.damage[damageType].parts.map((damagePart, index) => {
|
||||
if (index !== Number(part)) return damagePart;
|
||||
return {
|
||||
...rollPart,
|
||||
total: parsedRoll.total,
|
||||
dice: rerolledDice
|
||||
};
|
||||
});
|
||||
await updateMessage.update({
|
||||
[`system.damage.${damageType}`]: {
|
||||
...updateMessage,
|
||||
total: parsedRoll.total,
|
||||
[`parts.${part}`]: {
|
||||
...rollPart,
|
||||
total: parsedRoll.total,
|
||||
dice: rerolledDice
|
||||
}
|
||||
parts: damageParts
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export default class DHRoll extends Roll {
|
|||
|
||||
static async toMessage(roll, config) {
|
||||
const cls = getDocumentClass('ChatMessage'),
|
||||
msg = {
|
||||
msgData = {
|
||||
type: this.messageType,
|
||||
user: game.user.id,
|
||||
title: roll.title,
|
||||
|
|
@ -94,8 +94,16 @@ export default class DHRoll extends Roll {
|
|||
rolls: [roll]
|
||||
};
|
||||
config.selectedRollMode ??= game.settings.get('core', 'rollMode');
|
||||
if (roll._evaluated) return await cls.create(msg, { rollMode: config.selectedRollMode });
|
||||
return msg;
|
||||
|
||||
if (roll._evaluated) {
|
||||
const message = await cls.create(msgData, { rollMode: config.selectedRollMode });
|
||||
|
||||
if (game.modules.get('dice-so-nice')?.active) {
|
||||
await game.dice3d.waitFor3DAnimationByMessageID(message.id);
|
||||
}
|
||||
|
||||
return message;
|
||||
} else return msgData;
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
import { emitAsGM, GMUpdateEvent } from '../systemRegistration/socket.mjs';
|
||||
import { LevelOptionType } from '../data/levelTier.mjs';
|
||||
import DHFeature from '../data/item/feature.mjs';
|
||||
import { damageKeyToNumber } from '../helpers/utils.mjs';
|
||||
import { createScrollText, damageKeyToNumber, versionCompare } from '../helpers/utils.mjs';
|
||||
import DhCompanionLevelUp from '../applications/levelup/companionLevelup.mjs';
|
||||
|
||||
export default class DhpActor extends Actor {
|
||||
#scrollTextQueue = [];
|
||||
#scrollTextInterval;
|
||||
|
||||
/**
|
||||
* Return the first Actor active owner.
|
||||
*/
|
||||
|
|
@ -25,6 +28,14 @@ export default class DhpActor extends Actor {
|
|||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
/** @inheritDoc */
|
||||
static migrateData(source) {
|
||||
if (source.system?.attack && !source.system.attack.type) source.system.attack.type = 'attack';
|
||||
return super.migrateData(source);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
/**@inheritdoc */
|
||||
static getDefaultArtwork(actorData) {
|
||||
const { type } = actorData;
|
||||
|
|
@ -564,10 +575,16 @@ export default class DhpActor extends Actor {
|
|||
if (armorSlotResult) {
|
||||
const { modifiedDamage, armorSpent, stressSpent } = armorSlotResult;
|
||||
updates.find(u => u.key === 'hitPoints').value = modifiedDamage;
|
||||
updates.push(
|
||||
...(armorSpent ? [{ value: armorSpent, key: 'armor' }] : []),
|
||||
...(stressSpent ? [{ value: stressSpent, key: 'stress' }] : [])
|
||||
);
|
||||
if (armorSpent) {
|
||||
const armorUpdate = updates.find(u => u.key === 'armor');
|
||||
if (armorUpdate) armorUpdate.value += armorSpent;
|
||||
else updates.push({ value: armorSpent, key: 'armor' });
|
||||
}
|
||||
if (stressSpent) {
|
||||
const stressUpdate = updates.find(u => u.key === 'stress');
|
||||
if (stressUpdate) stressUpdate.value += stressSpent;
|
||||
else updates.push({ value: stressSpent, key: 'stress' });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -632,7 +649,7 @@ export default class DhpActor extends Actor {
|
|||
}
|
||||
|
||||
async modifyResource(resources) {
|
||||
if (!resources.length) return;
|
||||
if (!resources?.length) return;
|
||||
|
||||
if (resources.find(r => r.key === 'stress')) this.convertStressDamageToHP(resources);
|
||||
let updates = {
|
||||
|
|
@ -736,4 +753,45 @@ export default class DhpActor extends Actor {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
queueScrollText(scrollingTextData) {
|
||||
this.#scrollTextQueue.push(...scrollingTextData.map(data => () => createScrollText(this, data)));
|
||||
if (!this.#scrollTextInterval) {
|
||||
const scrollFunc = this.#scrollTextQueue.pop();
|
||||
scrollFunc?.();
|
||||
|
||||
const intervalFunc = () => {
|
||||
const scrollFunc = this.#scrollTextQueue.pop();
|
||||
scrollFunc?.();
|
||||
if (this.#scrollTextQueue.length === 0) {
|
||||
clearInterval(this.#scrollTextInterval);
|
||||
this.#scrollTextInterval = null;
|
||||
}
|
||||
};
|
||||
|
||||
this.#scrollTextInterval = setInterval(intervalFunc.bind(this), 600);
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
async importFromJSON(json) {
|
||||
if (!this.type === 'character') return await super.importFromJSON(json);
|
||||
|
||||
if (!CONST.WORLD_DOCUMENT_TYPES.includes(this.documentName)) {
|
||||
throw new Error('Only world Documents may be imported');
|
||||
}
|
||||
|
||||
const parsedJSON = JSON.parse(json);
|
||||
if (versionCompare(parsedJSON._stats.systemVersion, '1.1.0')) {
|
||||
const confirmed = await foundry.applications.api.DialogV2.confirm({
|
||||
window: {
|
||||
title: game.i18n.localize('DAGGERHEART.ACTORS.Character.InvalidOldCharacterImportTitle')
|
||||
},
|
||||
content: game.i18n.localize('DAGGERHEART.ACTORS.Character.InvalidOldCharacterImportText')
|
||||
});
|
||||
if (!confirmed) return;
|
||||
}
|
||||
|
||||
return await super.importFromJSON(json);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
|||
/* We can change to fully implementing the renderHTML function if needed, instead of augmenting it. */
|
||||
const html = await super.renderHTML({ actor: actorData, author: this.author });
|
||||
|
||||
if (this.flags.core?.RollTable) {
|
||||
html.querySelector('.roll-buttons.apply-buttons').remove();
|
||||
}
|
||||
|
||||
this.enrichChatMessage(html);
|
||||
this.addChatListeners(html);
|
||||
|
||||
|
|
@ -43,6 +47,18 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
|||
return super._preDelete(options, user);
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
_onUpdate(changes, options, userId) {
|
||||
super._onUpdate(changes, options, userId);
|
||||
|
||||
const lastMessage = Array.from(game.messages).sort((a, b) => b.timestamp - a.timestamp)[0];
|
||||
if (lastMessage.id === this.id && ui.chat.isAtBottom) {
|
||||
setTimeout(() => {
|
||||
ui.chat.scrollBottom();
|
||||
}, 5);
|
||||
}
|
||||
}
|
||||
|
||||
enrichChatMessage(html) {
|
||||
const elements = html.querySelectorAll('[data-perm-id]');
|
||||
elements.forEach(e => {
|
||||
|
|
@ -54,26 +70,44 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
|||
e.setAttribute('data-use-perm', document.testUserPermission(game.user, 'OWNER'));
|
||||
});
|
||||
|
||||
if (this.isContentVisible && this.type === 'dualityRoll') {
|
||||
html.classList.add('duality');
|
||||
switch (this.system.roll?.result?.duality) {
|
||||
case 1:
|
||||
html.classList.add('hope');
|
||||
break;
|
||||
case -1:
|
||||
html.classList.add('fear');
|
||||
break;
|
||||
default:
|
||||
html.classList.add('critical');
|
||||
break;
|
||||
if (this.isContentVisible) {
|
||||
if (this.type === 'dualityRoll') {
|
||||
html.classList.add('duality');
|
||||
switch (this.system.roll?.result?.duality) {
|
||||
case 1:
|
||||
html.classList.add('hope');
|
||||
break;
|
||||
case -1:
|
||||
html.classList.add('fear');
|
||||
break;
|
||||
default:
|
||||
html.classList.add('critical');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const autoExpandRoll = game.settings.get(
|
||||
CONFIG.DH.id,
|
||||
CONFIG.DH.SETTINGS.gameSettings.appearance
|
||||
).expandRollMessage,
|
||||
rollSections = html.querySelectorAll('.roll-part'),
|
||||
itemDesc = html.querySelector('.domain-card-move');
|
||||
rollSections.forEach(s => {
|
||||
if (s.classList.contains('roll-section')) {
|
||||
const toExpand = s.querySelector('[data-action="expandRoll"]');
|
||||
toExpand.classList.toggle('expanded', autoExpandRoll.roll);
|
||||
} else if (s.classList.contains('damage-section'))
|
||||
s.classList.toggle('expanded', autoExpandRoll.damage);
|
||||
else if (s.classList.contains('target-section')) s.classList.toggle('expanded', autoExpandRoll.target);
|
||||
});
|
||||
if (itemDesc && autoExpandRoll.desc) itemDesc.setAttribute('open', '');
|
||||
}
|
||||
|
||||
if(!game.user.isGM) {
|
||||
const applyButtons = html.querySelector(".apply-buttons");
|
||||
if (!game.user.isGM) {
|
||||
const applyButtons = html.querySelector('.apply-buttons');
|
||||
applyButtons?.remove();
|
||||
if(!this.isAuthor && !this.speakerActor?.isOwner) {
|
||||
const buttons = html.querySelectorAll(".ability-card-footer > .ability-use-button");
|
||||
if (!this.isAuthor && !this.speakerActor?.isOwner) {
|
||||
const buttons = html.querySelectorAll('.ability-card-footer > .ability-use-button');
|
||||
buttons.forEach(b => b.remove());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,14 @@ export default class DHItem extends foundry.documents.Item {
|
|||
return doc;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
/** @inheritDoc */
|
||||
static migrateData(source) {
|
||||
if(source.system?.attack && !source.system.attack.type) source.system.attack.type = "attack";
|
||||
return super.migrateData(source);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @param {object} options - Options which modify the getRollData method.
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@ export default class RegisterHandlebarsHelpers {
|
|||
hasProperty: foundry.utils.hasProperty,
|
||||
getProperty: foundry.utils.getProperty,
|
||||
setVar: this.setVar,
|
||||
empty: this.empty
|
||||
empty: this.empty,
|
||||
pluralize: this.pluralize
|
||||
});
|
||||
}
|
||||
static add(a, b) {
|
||||
|
|
@ -64,7 +65,7 @@ export default class RegisterHandlebarsHelpers {
|
|||
return isNumerical ? (!result ? 0 : Number(result)) : result;
|
||||
}
|
||||
|
||||
static setVar(name, value, context) {
|
||||
static setVar(name, value) {
|
||||
this[name] = value;
|
||||
}
|
||||
|
||||
|
|
@ -72,4 +73,20 @@ export default class RegisterHandlebarsHelpers {
|
|||
if (!(typeof object === 'object')) return true;
|
||||
return Object.keys(object).length === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pluralize helper that returns the appropriate localized string based on count
|
||||
* @param {number} count - The number to check for plurality
|
||||
* @param {string} baseKey - The base localization key (e.g., "DAGGERHEART.GENERAL.Target")
|
||||
* @returns {string} The localized singular or plural string
|
||||
*
|
||||
* Usage: {{pluralize currentTargets.length "DAGGERHEART.GENERAL.Target"}}
|
||||
* Returns: "Target" if count is exactly 1, "Targets" if count is 0, 2+, or invalid
|
||||
*/
|
||||
static pluralize(count, baseKey) {
|
||||
const numericCount = Number(count);
|
||||
const isSingular = !isNaN(numericCount) && numericCount === 1;
|
||||
const key = isSingular ? `${baseKey}.single` : `${baseKey}.plural`;
|
||||
return game.i18n.localize(key);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ Roll.replaceFormulaData = function (formula, data = {}, { missing, warn = false
|
|||
return nativeReplaceFormulaData(formula, data, { missing, warn });
|
||||
};
|
||||
|
||||
foundry.dice.terms.Die.MODIFIERS.sc = 'selfCorrecting';
|
||||
foundry.utils.setProperty(foundry, 'dice.terms.Die.MODIFIERS.sc', 'selfCorrecting');
|
||||
|
||||
/**
|
||||
* Return the configured value as result if 1 is rolled
|
||||
|
|
@ -371,17 +371,15 @@ export function getScrollTextData(resources, resource, key) {
|
|||
return { text, stroke, fill, direction };
|
||||
}
|
||||
|
||||
export function createScrollText(actor, optionsData) {
|
||||
if (actor && optionsData?.length) {
|
||||
export function createScrollText(actor, data) {
|
||||
if (actor) {
|
||||
actor.getActiveTokens().forEach(token => {
|
||||
optionsData.forEach(data => {
|
||||
const { text, ...options } = data;
|
||||
canvas.interface.createScrollingText(token.getCenterPoint(), data.text, {
|
||||
duration: 2000,
|
||||
distance: token.h,
|
||||
jitter: 0,
|
||||
...options
|
||||
});
|
||||
const { text, ...options } = data;
|
||||
canvas.interface.createScrollingText(token.getCenterPoint(), data.text, {
|
||||
duration: 2000,
|
||||
distance: token.h,
|
||||
jitter: 0,
|
||||
...options
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -420,3 +418,14 @@ 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,3 +1,4 @@
|
|||
export { preloadHandlebarsTemplates as handlebarsRegistration } from './handlebars.mjs';
|
||||
export * as settingsRegistration from './settings.mjs';
|
||||
export * as socketRegistration from './socket.mjs';
|
||||
export { runMigrations } from './migrations.mjs';
|
||||
|
|
|
|||
|
|
@ -35,5 +35,8 @@ export const preloadHandlebarsTemplates = async function () {
|
|||
'systems/daggerheart/templates/ui/chat/parts/damage-part.hbs',
|
||||
'systems/daggerheart/templates/ui/chat/parts/target-part.hbs',
|
||||
'systems/daggerheart/templates/ui/chat/parts/button-part.hbs',
|
||||
|
||||
'systems/daggerheart/templates/scene/dh-config.hbs',
|
||||
|
||||
]);
|
||||
};
|
||||
|
|
|
|||
41
module/systemRegistration/migrations.mjs
Normal file
41
module/systemRegistration/migrations.mjs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
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')) {
|
||||
const compendiumActors = [];
|
||||
for (let pack of game.packs) {
|
||||
const documents = await pack.getDocuments();
|
||||
compendiumActors.push(...documents.filter(x => x.type === 'character'));
|
||||
}
|
||||
|
||||
[...compendiumActors, ...game.actors].forEach(actor => {
|
||||
const items = actor.items.reduce((acc, item) => {
|
||||
if (item.type === 'feature') {
|
||||
const { originItemType, isMulticlass, identifier } = item.system;
|
||||
const base = originItemType
|
||||
? actor.items.find(
|
||||
x => x.type === originItemType && Boolean(isMulticlass) === Boolean(x.system.isMulticlass)
|
||||
)
|
||||
: null;
|
||||
if (base) {
|
||||
const feature = base.system.features.find(x => x.item && x.item.uuid === item.uuid);
|
||||
if (feature && identifier !== 'multiclass') {
|
||||
acc.push({ _id: item.id, system: { identifier: feature.type } });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
|
||||
actor.updateEmbeddedDocuments('Item', items);
|
||||
});
|
||||
|
||||
lastMigrationVersion = '1.1.0';
|
||||
}
|
||||
|
||||
await game.settings.set(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LastMigrationVersion, lastMigrationVersion);
|
||||
}
|
||||
|
|
@ -91,6 +91,12 @@ const registerMenus = () => {
|
|||
};
|
||||
|
||||
const registerNonConfigSettings = () => {
|
||||
game.settings.register(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LastMigrationVersion, {
|
||||
scope: 'world',
|
||||
config: false,
|
||||
type: String
|
||||
});
|
||||
|
||||
game.settings.register(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LevelTiers, {
|
||||
scope: 'world',
|
||||
config: false,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"rollup": "^4.40.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "concurrently \"rollup -c --watch\" \"node ../../../../FoundryDev/main.js --dataPath=../../../ --noupnp\" \"gulp\"",
|
||||
"start": "node ./tools/run-start.mjs",
|
||||
"start-test": "node ./resources/app/main.js --dataPath=./ && rollup -c --watch && gulp",
|
||||
"build": "npm run rollup && npm run gulp",
|
||||
"rollup": "rollup -c",
|
||||
|
|
@ -16,7 +16,8 @@
|
|||
"pushLDBtoYML": "node ./tools/pushLDBtoYML.mjs",
|
||||
"pullYMLtoLDB": "node ./tools/pullYMLtoLDB.mjs",
|
||||
"pullYMLtoLDBBuild": "node ./tools/pullYMLtoLDBBuild.mjs",
|
||||
"createSymlink": "node ./tools/create-symlink.mjs"
|
||||
"createSymlink": "node ./tools/create-symlink.mjs",
|
||||
"setup:dev": "node ./tools/dev-setup.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@foundryvtt/foundryvtt-cli": "^1.0.2",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
---
|
||||
name: Pull Request
|
||||
about: Create a new pull request
|
||||
title: "[PR] <Insert Title here>"
|
||||
labels: pr
|
||||
assignees: ''
|
||||
---
|
||||
Is this a community PR? Please go to preview tab and click [here](?expand=1&template=community_pull_request_template.md). If not, delete this line.
|
||||
|
||||
## Description
|
||||
|
||||
Please include a summary of the change and which issue is fixed (if applicable). Also include relevant context or motivation for the change.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Acid Burrower",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
"type": "attack",
|
||||
"description": "",
|
||||
"img": "icons/creatures/claws/claw-curved-jagged-yellow.webp",
|
||||
"chatDisplay": true,
|
||||
"chatDisplay": false,
|
||||
"actionType": "action",
|
||||
"cost": [],
|
||||
"uses": {
|
||||
|
|
@ -143,6 +143,11 @@
|
|||
"difficulty": null,
|
||||
"damageMod": "none"
|
||||
}
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 75,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -150,12 +155,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1754010222829,
|
||||
"modifiedTime": 1754010222919,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384241210,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"ownership": {
|
||||
"default": 0,
|
||||
|
|
@ -170,7 +175,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Adult Flickerfly",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -104,7 +104,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 91,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -112,12 +118,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784219,
|
||||
"modifiedTime": 1754236374441,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385356620,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "G7jiltRjgvVhZewm",
|
||||
"sort": 3400000,
|
||||
|
|
@ -133,7 +139,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Apprentice Assassin",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -103,7 +103,13 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/weapons/daggers/dagger-bone-black.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 84,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -111,12 +117,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784220,
|
||||
"modifiedTime": 1754236375474,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384980487,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "vNIbYQ4YSzNf0WPE",
|
||||
"sort": 3500000,
|
||||
|
|
@ -132,7 +138,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Arch-Necromancer",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "7XHlANCPz18yvl5L",
|
||||
"system": {
|
||||
|
|
@ -115,7 +115,13 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/magic/unholy/beam-ringed-impact-purple.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 97,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -123,12 +129,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784221,
|
||||
"modifiedTime": 1754236374832,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385620034,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "WPEOIGfclNJxWb87",
|
||||
"sort": 1200000,
|
||||
|
|
@ -144,7 +150,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Archer Guard",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -109,7 +109,13 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/weapons/bows/longbow-recurve-leather-brown.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 77,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -117,12 +123,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784222,
|
||||
"modifiedTime": 1754046151270,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384306205,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "JRhrrEg5UroURiAD",
|
||||
"sort": 2900000,
|
||||
|
|
@ -138,7 +144,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Archer Squadron",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -104,7 +104,13 @@
|
|||
"bonus": 0,
|
||||
"type": "attack"
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 84,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -112,12 +118,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784223,
|
||||
"modifiedTime": 1754236373813,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384973132,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "0ts6CGd93lLqGZI5",
|
||||
"sort": 200000,
|
||||
|
|
@ -133,7 +139,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Assassin Poisoner",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -110,7 +110,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 84,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -118,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784224,
|
||||
"modifiedTime": 1754236375140,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384989183,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "h5RuhzGL17dW5FBT",
|
||||
"sort": 2700000,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Battle Box",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -109,8 +109,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"range": "",
|
||||
"type": "attack"
|
||||
"range": "melee",
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 85,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -118,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784224,
|
||||
"modifiedTime": 1754236375071,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385012352,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "dgH3fW9FTYLaIDvS",
|
||||
"sort": 2600000,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
@ -1146,7 +1152,7 @@
|
|||
},
|
||||
"name": "Mark Stress",
|
||||
"img": "icons/creatures/magical/construct-golem-stone-blue.webp",
|
||||
"range": ""
|
||||
"range": "self"
|
||||
}
|
||||
},
|
||||
"originItemType": null,
|
||||
|
|
@ -1166,12 +1172,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.4",
|
||||
"createdTime": 1754074647690,
|
||||
"modifiedTime": 1754142206511,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755264742627,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_key": "!actors.items!dgH3fW9FTYLaIDvS.ITzpRJr2jWK0Ksmp"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Bear",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -40,11 +40,13 @@
|
|||
"experiences": {
|
||||
"5ASmWCwf7HMplPDT": {
|
||||
"name": "Ambusher",
|
||||
"value": 3
|
||||
"value": 3,
|
||||
"description": ""
|
||||
},
|
||||
"rjs6ek5OZP8inYqu": {
|
||||
"name": "Keen Senses",
|
||||
"value": 2
|
||||
"value": 2,
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"bonuses": {
|
||||
|
|
@ -112,7 +114,14 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/creatures/claws/claw-straight-brown.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 75,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -120,12 +129,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784226,
|
||||
"modifiedTime": 1754046151030,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384265295,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "71qKDLKO3CsrNkdy",
|
||||
"sort": 1200000,
|
||||
|
|
@ -141,7 +150,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Bladed Guard",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -40,7 +40,8 @@
|
|||
"experiences": {
|
||||
"ptgh1mGd4XGIjaAO": {
|
||||
"name": "Local Knowledge",
|
||||
"value": 3
|
||||
"value": 3,
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"bonuses": {
|
||||
|
|
@ -108,7 +109,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 77,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -116,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784226,
|
||||
"modifiedTime": 1754046151128,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384320981,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "B4LZcGuBAHzyVdzy",
|
||||
"sort": 2000000,
|
||||
|
|
@ -137,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Brawny Zombie",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -113,7 +113,13 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/skills/melee/unarmed-punch-fist-yellow-red.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 83,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -121,12 +127,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784231,
|
||||
"modifiedTime": 1754046150943,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384340788,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "2UeZ0tEe7AzgSJNd",
|
||||
"sort": 400000,
|
||||
|
|
@ -142,7 +148,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Cave Ogre",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -109,7 +109,13 @@
|
|||
},
|
||||
"name": "Club",
|
||||
"img": "icons/weapons/clubs/club-banded-barbed-black.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 75,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -117,12 +123,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784233,
|
||||
"modifiedTime": 1754046151057,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384280132,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "8Zkqk1jU09nKL2fy",
|
||||
"sort": 1500000,
|
||||
|
|
@ -138,7 +144,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Chaos Skull",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -104,7 +104,13 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/magic/light/beam-rays-magenta.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 85,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -112,12 +118,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784233,
|
||||
"modifiedTime": 1754236375196,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385025439,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "jDmHqGvzg5wjgmxE",
|
||||
"sort": 2800000,
|
||||
|
|
@ -133,7 +139,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Conscript",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -97,7 +97,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 85,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -105,12 +111,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784234,
|
||||
"modifiedTime": 1754236374185,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385032835,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "99TqczuQipBmaB8i",
|
||||
"sort": 1200000,
|
||||
|
|
@ -126,7 +132,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Construct",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -103,7 +103,14 @@
|
|||
},
|
||||
"name": "Fist Slam",
|
||||
"img": "icons/skills/melee/unarmed-punch-fist-yellow-red.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 75,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -111,12 +118,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784236,
|
||||
"modifiedTime": 1754046151560,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384289735,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "uOP5oT9QzXPlnf3p",
|
||||
"sort": 4900000,
|
||||
|
|
@ -132,7 +139,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
@ -436,12 +443,12 @@
|
|||
},
|
||||
"effects": [],
|
||||
"target": {
|
||||
"type": "any",
|
||||
"type": "self",
|
||||
"amount": null
|
||||
},
|
||||
"name": "Mark Stress",
|
||||
"img": "icons/creatures/magical/construct-golem-stone-blue.webp",
|
||||
"range": ""
|
||||
"range": "self"
|
||||
}
|
||||
},
|
||||
"originItemType": null,
|
||||
|
|
@ -512,12 +519,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.4",
|
||||
"createdTime": 1754013871234,
|
||||
"modifiedTime": 1754143897693,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755260161782,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_key": "!actors.items!uOP5oT9QzXPlnf3p.EF6YIDjQ0liFubGA"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Courtesan",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -114,7 +114,14 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/weapons/daggers/dagger-straight-cracked.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 85,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -122,12 +129,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784237,
|
||||
"modifiedTime": 1754236374964,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385040425,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "ZxWaWPdzFIUPNC62",
|
||||
"sort": 2400000,
|
||||
|
|
@ -143,7 +150,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Courtier",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -40,7 +40,8 @@
|
|||
"experiences": {
|
||||
"omqadwvxPY4xsd7K": {
|
||||
"name": "Socialite",
|
||||
"value": 3
|
||||
"value": 3,
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"bonuses": {
|
||||
|
|
@ -108,7 +109,14 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/weapons/daggers/dagger-twin-green.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 76,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -116,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784237,
|
||||
"modifiedTime": 1754046151158,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384362436,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "CBBuEXAlLKFMJdjg",
|
||||
"sort": 2200000,
|
||||
|
|
@ -137,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Cult Adept",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -115,7 +115,13 @@
|
|||
},
|
||||
"range": "far",
|
||||
"img": "icons/weapons/staves/staff-ornate-purple.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 85,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -123,12 +129,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784239,
|
||||
"modifiedTime": 1754236373793,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385049086,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "0NxCSugvKQ4W8OYZ",
|
||||
"sort": 100000,
|
||||
|
|
@ -144,7 +150,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
@ -620,12 +626,7 @@
|
|||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p> Twice per scene, when a PC rolls a failure with Fear, clear a Stress.</p>",
|
||||
"resource": {
|
||||
"type": "simple",
|
||||
"value": 0,
|
||||
"max": "2",
|
||||
"icon": ""
|
||||
},
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"3tibqB97ooJesxf0": {
|
||||
"type": "healing",
|
||||
|
|
@ -637,8 +638,8 @@
|
|||
"cost": [],
|
||||
"uses": {
|
||||
"value": null,
|
||||
"max": "",
|
||||
"recovery": null
|
||||
"max": "2",
|
||||
"recovery": "scene"
|
||||
},
|
||||
"damage": {
|
||||
"parts": [
|
||||
|
|
@ -692,7 +693,7 @@
|
|||
},
|
||||
"name": "Clear Stress",
|
||||
"img": "icons/magic/unholy/silhouette-robe-evil-glow.webp",
|
||||
"range": ""
|
||||
"range": "self"
|
||||
}
|
||||
},
|
||||
"originItemType": null,
|
||||
|
|
@ -712,12 +713,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.4",
|
||||
"createdTime": 1754076395683,
|
||||
"modifiedTime": 1754142376642,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755264866325,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_key": "!actors.items!0NxCSugvKQ4W8OYZ.x6FbcrfOscb3er6P"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Cult Fang",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -103,8 +103,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"range": "",
|
||||
"type": "attack"
|
||||
"range": "melee",
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 86,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -112,12 +118,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784239,
|
||||
"modifiedTime": 1754236375454,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385067530,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "tyBOpLfigAhI9bU3",
|
||||
"sort": 3400000,
|
||||
|
|
@ -133,7 +139,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Cult Initiate",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -96,7 +96,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 86,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -104,12 +111,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784240,
|
||||
"modifiedTime": 1754236375538,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385079522,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "zx99sOGTXicP4SSD",
|
||||
"sort": 3600000,
|
||||
|
|
@ -125,7 +132,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Deeproot Defender",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -109,7 +109,13 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/magic/nature/root-vines-grow-brown.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 76,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -117,12 +123,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784246,
|
||||
"modifiedTime": 1754046151094,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384371297,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "9x2xY9zwc3xzbXo5",
|
||||
"sort": 1800000,
|
||||
|
|
@ -138,7 +144,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Demon of Avarice",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -109,7 +109,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 91,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -117,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784247,
|
||||
"modifiedTime": 1754236375381,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385363507,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "pnyjIGxxvurcWmTv",
|
||||
"sort": 3400000,
|
||||
|
|
@ -138,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Demon of Despair",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -109,7 +109,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "far",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 92,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -117,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784248,
|
||||
"modifiedTime": 1754236375236,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385375748,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "kE4dfhqmIQpNd44e",
|
||||
"sort": 3400000,
|
||||
|
|
@ -138,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Demon of Hubris",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -110,7 +110,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 92,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -118,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784249,
|
||||
"modifiedTime": 1754236373869,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385382792,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "2VN3BftageoTTIzu",
|
||||
"sort": 3400000,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Demon of Jealousy",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -110,7 +110,13 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/magic/symbols/rune-sigil-rough-white-teal.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 92,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -118,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784249,
|
||||
"modifiedTime": 1754236374726,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385392005,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "SxSOkM4bcVOFyjbo",
|
||||
"sort": 3400000,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Demon of Wrath",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -110,7 +110,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 92,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -118,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784252,
|
||||
"modifiedTime": 1754236373976,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385398938,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "5lphJAgzoqZI3VoG",
|
||||
"sort": 3400000,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Demonic Hound Pack",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -109,8 +109,14 @@
|
|||
"bonus": 0,
|
||||
"type": "attack"
|
||||
},
|
||||
"range": "",
|
||||
"type": "attack"
|
||||
"range": "melee",
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 86,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -118,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784253,
|
||||
"modifiedTime": 1754236374571,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385087255,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "NoRZ1PqB8N5wcIw0",
|
||||
"sort": 1800000,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Dire Bat",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -108,7 +108,14 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/creatures/claws/claw-hooked-curved.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 93,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -116,12 +123,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784253,
|
||||
"modifiedTime": 1754236375442,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385409189,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "tBWHW00epmMnkawe",
|
||||
"sort": 3400000,
|
||||
|
|
@ -137,7 +144,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
@ -280,12 +287,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"createdTime": 1754126247394,
|
||||
"modifiedTime": 1754126268904,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755266380104,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_key": "!actors.items.effects!tBWHW00epmMnkawe.gx22MpD8fWoi8klZ.qZfNiqw1iAIxeuYg"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Dire Wolf",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "sxvlEwi25uAoB2C5",
|
||||
"system": {
|
||||
|
|
@ -40,7 +40,8 @@
|
|||
"experiences": {
|
||||
"JB2mFGRwgG2NIob8": {
|
||||
"name": "Keen Senses",
|
||||
"value": 3
|
||||
"value": 3,
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"bonuses": {
|
||||
|
|
@ -108,7 +109,14 @@
|
|||
]
|
||||
},
|
||||
"img": "icons/creatures/claws/claw-straight-brown.webp",
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"range": "melee",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 76,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -116,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784257,
|
||||
"modifiedTime": 1754046151583,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755384380804,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "wNzeuQLfLUMvgHlQ",
|
||||
"sort": 5100000,
|
||||
|
|
@ -137,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Dryad",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "wTI7nZkPhKxl7Wwq",
|
||||
"system": {
|
||||
|
|
@ -110,7 +110,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"type": "attack"
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 93,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -118,12 +124,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784258,
|
||||
"modifiedTime": 1754236375484,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385415645,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "wR7cFKrHvRzbzhBT",
|
||||
"sort": 3400000,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
@ -537,7 +543,7 @@
|
|||
},
|
||||
"name": "Spend Fear",
|
||||
"img": "icons/magic/unholy/orb-hands-pink.webp",
|
||||
"range": ""
|
||||
"range": "self"
|
||||
}
|
||||
},
|
||||
"originItemType": null,
|
||||
|
|
@ -557,12 +563,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.4",
|
||||
"createdTime": 1754127256705,
|
||||
"modifiedTime": 1754127325813,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755266428753,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_key": "!actors.items!wR7cFKrHvRzbzhBT.z4JbqiHuxrWy6Cpu"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Electric Eels",
|
||||
"img": "icons/svg/mystery-man.svg",
|
||||
"img": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"type": "adversary",
|
||||
"folder": "OgzrmfH1ZbpljX7k",
|
||||
"system": {
|
||||
|
|
@ -103,8 +103,14 @@
|
|||
"bonus": 0,
|
||||
"type": "attack"
|
||||
},
|
||||
"range": "",
|
||||
"type": "attack"
|
||||
"range": "melee",
|
||||
"type": "attack",
|
||||
"chatDisplay": false
|
||||
},
|
||||
"attribution": {
|
||||
"source": "Daggerheart SRD",
|
||||
"page": 86,
|
||||
"artist": ""
|
||||
}
|
||||
},
|
||||
"flags": {},
|
||||
|
|
@ -112,12 +118,12 @@
|
|||
"compendiumSource": null,
|
||||
"duplicateSource": null,
|
||||
"exportSource": null,
|
||||
"coreVersion": "13.346",
|
||||
"coreVersion": "13.347",
|
||||
"systemId": "daggerheart",
|
||||
"systemVersion": "0.0.1",
|
||||
"systemVersion": "1.0.5",
|
||||
"createdTime": 1753922784258,
|
||||
"modifiedTime": 1754236374738,
|
||||
"lastModifiedBy": "MQSznptE5yLT7kj8"
|
||||
"modifiedTime": 1755385098856,
|
||||
"lastModifiedBy": "VZIeX2YDvX338Zvr"
|
||||
},
|
||||
"_id": "TLzY1nDw0Bu9Ud40",
|
||||
"sort": 1900000,
|
||||
|
|
@ -133,7 +139,7 @@
|
|||
"width": 1,
|
||||
"height": 1,
|
||||
"texture": {
|
||||
"src": "icons/svg/mystery-man.svg",
|
||||
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
|
||||
"anchorX": 0.5,
|
||||
"anchorY": 0.5,
|
||||
"offsetX": 0,
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue