";
+ inherits: false;
+ initial-value: 0;
+ }
+
+ @keyframes scrollfade {
+ 0% {
+ --fade-start: 0;
+ }
+ 10%, 100% {
+ --fade-start: 12px;
+ }
+ 0%, 90% {
+ --fade-end: 12px;
+ }
+ 100% {
+ --fade-end: 0;
+ }
+ }
+}
+
+.with-scroll-shadows() {
+ animation: scrollfade;
+ animation-timeline: --scrollfade;
+ animation-range: entry 0% exit 100%;
+ scroll-timeline: --scrollfade y;
+ mask-image: linear-gradient(
+ 0deg,
+ transparent 0%,
+ black var(--fade-end),
+ black calc(100% - var(--fade-start)),
+ transparent 100%
+ );
+}
diff --git a/system.json b/system.json
index 2acd7570..5994c576 100644
--- a/system.json
+++ b/system.json
@@ -2,7 +2,7 @@
"id": "daggerheart",
"title": "Daggerheart",
"description": "An unofficial implementation of the Daggerheart system",
- "version": "2.2.7",
+ "version": "2.3.0",
"compatibility": {
"minimum": "14.361",
"verified": "14.363",
@@ -10,7 +10,7 @@
},
"url": "https://github.com/Foundryborne/daggerheart",
"manifest": "https://raw.githubusercontent.com/Foundryborne/daggerheart/v14/system.json",
- "download": "https://github.com/Foundryborne/daggerheart/releases/download/2.2.7/system.zip",
+ "download": "https://github.com/Foundryborne/daggerheart/releases/download/2.3.0/system.zip",
"authors": [
{
"name": "WBHarry"
@@ -244,11 +244,14 @@
"adversary": {
"htmlFields": ["notes", "description"]
},
+ "npc": {
+ "htmlFields": ["notes"]
+ },
"environment": {
"htmlFields": ["notes", "description"]
},
"party": {
- "htmlFields": ["notes"]
+ "htmlFields": ["notes", "description"]
}
},
"Item": {
diff --git a/templates/dialogs/rerollDialog/damage/main.hbs b/templates/dialogs/rerollDialog/damage/main.hbs
deleted file mode 100644
index 5b994bf6..00000000
--- a/templates/dialogs/rerollDialog/damage/main.hbs
+++ /dev/null
@@ -1,35 +0,0 @@
-
- {{#each damage}}
-
{{localize (concat 'DAGGERHEART.CONFIG.HealingType.' @key '.name')}}
- {{#each this}}
-
- {{#each this}}
-
-
-
-
- {{this.selectedResults}}/{{this.maxSelected}} Selected
-
-
-
- {{#each this.results}}
-
- {{/each}}
-
-
- {{/each}}
-
- {{/each}}
- {{/each}}
-
\ No newline at end of file
diff --git a/templates/dialogs/rerollDialog/footer.hbs b/templates/dialogs/rerollDialog/footer.hbs
deleted file mode 100644
index 5d4ae2b2..00000000
--- a/templates/dialogs/rerollDialog/footer.hbs
+++ /dev/null
@@ -1,4 +0,0 @@
-
- {{localize "DAGGERHEART.GENERAL.reroll"}}
- {{localize "DAGGERHEART.APPLICATIONS.RerollDialog.acceptCurrentRolls"}}
-
\ No newline at end of file
diff --git a/templates/dialogs/rerollDialog/main.hbs b/templates/dialogs/rerollDialog/main.hbs
deleted file mode 100644
index 6f10ce33..00000000
--- a/templates/dialogs/rerollDialog/main.hbs
+++ /dev/null
@@ -1,35 +0,0 @@
-
- {{#each damage}}
-
{{localize (concat 'DAGGERHEART.CONFIG.HealingType.' @key '.name')}}
- {{#each this}}
-
- {{#each this}}
-
-
-
-
- {{this.selectedResults}}/{{this.results.length}} Selected
-
-
-
- {{#each this.results}}
-
- {{/each}}
-
-
- {{/each}}
-
- {{/each}}
- {{/each}}
-
\ No newline at end of file
diff --git a/templates/dialogs/tagTeamDialog/parts/tagTeamDamageParts.hbs b/templates/dialogs/tagTeamDialog/parts/tagTeamDamageParts.hbs
index 49fc8f4f..2a366269 100644
--- a/templates/dialogs/tagTeamDialog/parts/tagTeamDamageParts.hbs
+++ b/templates/dialogs/tagTeamDialog/parts/tagTeamDamageParts.hbs
@@ -16,7 +16,7 @@
{{/unless}}
{{/each}}
{{#if part.modifierTotal}}
- {{#if (gte part.modifierTotal 0)}}+{{else}}-{{/if}}
+ {{#if part.dice.length}}{{#if (gte part.modifierTotal 0)}}+{{else}}-{{/if}} {{/if}}
{{positive part.modifierTotal}}
{{/if}}
diff --git a/templates/sheets-settings/adversary-settings/details.hbs b/templates/sheets-settings/adversary-settings/details.hbs
index dc2fd386..3160fbb9 100644
--- a/templates/sheets-settings/adversary-settings/details.hbs
+++ b/templates/sheets-settings/adversary-settings/details.hbs
@@ -18,6 +18,12 @@
{{formField systemFields.motivesAndTactics value=document._source.system.motivesAndTactics label=(localize "DAGGERHEART.ACTORS.Adversary.FIELDS.motivesAndTactics.label")}}
+
+ {{localize "DAGGERHEART.GENERAL.DamageThresholds.title"}}
+ {{formGroup systemFields.damageThresholds.fields.major value=document._source.system.damageThresholds.major label=(localize "DAGGERHEART.GENERAL.DamageThresholds.majorThreshold")}}
+ {{formGroup systemFields.damageThresholds.fields.severe value=document._source.system.damageThresholds.severe label=(localize "DAGGERHEART.GENERAL.DamageThresholds.severeThreshold")}}
+
+
{{localize "DAGGERHEART.GENERAL.Resource.plural"}}
@@ -26,10 +32,4 @@
{{/each}}
-
-
- {{localize "DAGGERHEART.GENERAL.DamageThresholds.title"}}
- {{formGroup systemFields.damageThresholds.fields.major value=document._source.system.damageThresholds.major label=(localize "DAGGERHEART.GENERAL.DamageThresholds.majorThreshold")}}
- {{formGroup systemFields.damageThresholds.fields.severe value=document._source.system.damageThresholds.severe label=(localize "DAGGERHEART.GENERAL.DamageThresholds.severeThreshold")}}
-
diff --git a/templates/sheets-settings/npc-settings/details.hbs b/templates/sheets-settings/npc-settings/details.hbs
new file mode 100644
index 00000000..0e18b488
--- /dev/null
+++ b/templates/sheets-settings/npc-settings/details.hbs
@@ -0,0 +1,13 @@
+
+
+ {{localize "DAGGERHEART.GENERAL.description"}}
+ {{formInput systemFields.description value=document._source.system.description}}
+
+
+ {{formGroup systemFields.motives value=document._source.system.motives}}
+ {{formGroup systemFields.difficulty value=document._source.system.difficulty localize=true}}
+
diff --git a/templates/sheets-settings/npc-settings/features.hbs b/templates/sheets-settings/npc-settings/features.hbs
new file mode 100644
index 00000000..2f2f5f47
--- /dev/null
+++ b/templates/sheets-settings/npc-settings/features.hbs
@@ -0,0 +1,29 @@
+
+
+ {{localize "DOCUMENT.New" type=(localize "TYPES.Item.feature")}}
+
+
+ {{localize tabs.features.label}}
+
+ {{#each @root.features as |feature|}}
+
+
+
+ {{feature.name}}
+
+
+
+ {{/each}}
+
+
+ {{localize "DAGGERHEART.GENERAL.dropFeaturesHere"}}
+
+
+
\ No newline at end of file
diff --git a/templates/sheets-settings/npc-settings/header.hbs b/templates/sheets-settings/npc-settings/header.hbs
new file mode 100644
index 00000000..c9cb60fe
--- /dev/null
+++ b/templates/sheets-settings/npc-settings/header.hbs
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/templates/sheets/actors/adversary/header.hbs b/templates/sheets/actors/adversary/header.hbs
index fba96980..5adc235a 100644
--- a/templates/sheets/actors/adversary/header.hbs
+++ b/templates/sheets/actors/adversary/header.hbs
@@ -44,10 +44,9 @@
-
- {{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
+ {{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
-
+ {{/ 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
\ No newline at end of file
diff --git a/templates/sheets/actors/companion/header.hbs b/templates/sheets/actors/companion/header.hbs
index d10c0640..9c324709 100644
--- a/templates/sheets/actors/companion/header.hbs
+++ b/templates/sheets/actors/companion/header.hbs
@@ -50,9 +50,10 @@
- {{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
-
-
-
+ {{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
+
+
+
+ {{/ 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
\ No newline at end of file
diff --git a/templates/sheets/actors/environment/header.hbs b/templates/sheets/actors/environment/header.hbs
index 2c6bbb5a..1b4073c7 100644
--- a/templates/sheets/actors/environment/header.hbs
+++ b/templates/sheets/actors/environment/header.hbs
@@ -44,9 +44,10 @@
- {{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
-
-
-
+ {{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
+
+
+
+ {{/ 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
\ No newline at end of file
diff --git a/templates/sheets/actors/npc/features.hbs b/templates/sheets/actors/npc/features.hbs
new file mode 100644
index 00000000..3b495e74
--- /dev/null
+++ b/templates/sheets/actors/npc/features.hbs
@@ -0,0 +1,14 @@
+
+
+ {{> 'daggerheart.inventory-items'
+ title=tabs.features.label
+ type='feature'
+ collection=@root.features
+ hideContextMenu=true
+ hideModifyControls=true
+ canCreate=@root.editable
+ showActions=@root.editable
+ }}
+
+
\ No newline at end of file
diff --git a/templates/sheets/actors/npc/header.hbs b/templates/sheets/actors/npc/header.hbs
new file mode 100644
index 00000000..8dc345dc
--- /dev/null
+++ b/templates/sheets/actors/npc/header.hbs
@@ -0,0 +1,40 @@
+
\ No newline at end of file
diff --git a/templates/sheets/actors/npc/navigation.hbs b/templates/sheets/actors/npc/navigation.hbs
new file mode 100644
index 00000000..ae684f0d
--- /dev/null
+++ b/templates/sheets/actors/npc/navigation.hbs
@@ -0,0 +1,7 @@
+
+ {{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
+
+
+
+ {{/'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
+
\ No newline at end of file
diff --git a/templates/sheets/actors/npc/notes.hbs b/templates/sheets/actors/npc/notes.hbs
new file mode 100644
index 00000000..bc9ac3cf
--- /dev/null
+++ b/templates/sheets/actors/npc/notes.hbs
@@ -0,0 +1,11 @@
+
+ {{formInput notes.field value=notes.value enriched=notes.enriched toggled=true}}
+
+ {{#if (and showAttribution document.system.attribution.artist)}}
+ {{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}
+ {{/if}}
+
\ No newline at end of file
diff --git a/templates/sheets/global/tabs/tab-navigation.hbs b/templates/sheets/global/tabs/tab-navigation.hbs
index f9a31d3e..8af1f140 100755
--- a/templates/sheets/global/tabs/tab-navigation.hbs
+++ b/templates/sheets/global/tabs/tab-navigation.hbs
@@ -4,7 +4,7 @@
{{#each tabs as |tab|}}
-
+
{{localize tab.label}}
{{/each}}
diff --git a/templates/ui/chat/parts/roll-part.hbs b/templates/ui/chat/parts/roll-part.hbs
index 14e3eaa6..cfee735f 100644
--- a/templates/ui/chat/parts/roll-part.hbs
+++ b/templates/ui/chat/parts/roll-part.hbs
@@ -12,13 +12,9 @@
{{/if}}
- {{#if roll.difficulty}}
-
- {{!-- {{#if canViewSecret}} --}}
- difficulty {{roll.difficulty}}
- {{!-- {{else}}
- {{localize (ifThen roll.success "DAGGERHEART.GENERAL.success" "DAGGERHEART.GENERAL.failure")}}
- {{/if}} --}}
+ {{#if roll.options.roll.difficulty}}
+
+ {{localize "DAGGERHEART.GENERAL.difficulty"}} {{roll.options.roll.difficulty}}
{{/if}}
diff --git a/templates/ui/sidebar/actor-document-partial.hbs b/templates/ui/sidebar/actor-document-partial.hbs
index 2a9f47fa..1bd3ff9a 100644
--- a/templates/ui/sidebar/actor-document-partial.hbs
+++ b/templates/ui/sidebar/actor-document-partial.hbs
@@ -6,6 +6,8 @@
{{name}}
{{#if (or (eq type "adversary") (eq type "environment"))}}
{{localize "DAGGERHEART.UI.Sidebar.actorDirectory.tier" tier=system.tier type=(@root.getTypeLabel this)}}
+ {{else if (eq type "npc")}}
+ {{localize "TYPES.Actor.npc"}}
{{else if (eq type "character")}}
{{localize "DAGGERHEART.UI.Sidebar.actorDirectory.character" level=system.levelData.level.current}}
{{else if (eq type "companion")}}