}
- * @protected
- */
- async _prepareNotesContext(context, _options) {
- const { system } = this.document;
- const { TextEditor } = foundry.applications.ux;
-
- const paths = {
- notes: 'notes'
- };
-
- for (const [key, path] of Object.entries(paths)) {
- const value = foundry.utils.getProperty(system, path);
- context[key] = {
- field: system.schema.getField(path),
- value,
- enriched: await TextEditor.implementation.enrichHTML(value, {
- secrets: this.document.isOwner,
- relativeTo: this.document
- })
- };
- }
- }
-}
diff --git a/module/data/actor/_module.mjs b/module/data/actor/_module.mjs
index 1fe1ef3f..99577620 100644
--- a/module/data/actor/_module.mjs
+++ b/module/data/actor/_module.mjs
@@ -1,17 +1,15 @@
import DhCharacter from './character.mjs';
import DhCompanion from './companion.mjs';
import DhAdversary from './adversary.mjs';
-import DhNPC from './npc.mjs';
import DhEnvironment from './environment.mjs';
import DhParty from './party.mjs';
-export { DhCharacter, DhCompanion, DhAdversary, DhNPC, DhEnvironment, DhParty };
+export { DhCharacter, DhCompanion, DhAdversary, DhEnvironment, DhParty };
export const config = {
character: DhCharacter,
companion: DhCompanion,
adversary: DhAdversary,
- npc: DhNPC,
environment: DhEnvironment,
party: DhParty
};
diff --git a/module/data/actor/npc.mjs b/module/data/actor/npc.mjs
deleted file mode 100644
index 2ccaf926..00000000
--- a/module/data/actor/npc.mjs
+++ /dev/null
@@ -1,43 +0,0 @@
-import DHNPCSettings from '../../applications/sheets-configs/npc-settings.mjs';
-import BaseDataActor from './base.mjs';
-
-export default class DhpNPC extends BaseDataActor {
- static LOCALIZATION_PREFIXES = ['DAGGERHEART.ACTORS.NPC'];
-
- static get metadata() {
- return foundry.utils.mergeObject(super.metadata, {
- label: 'TYPES.Actor.npc',
- type: 'npc',
- settingSheet: DHNPCSettings,
- hasResistances: false,
- hasAttribution: true
- });
- }
-
- static defineSchema() {
- const fields = foundry.data.fields;
- return {
- ...super.defineSchema(),
- difficulty: new fields.NumberField({
- nullable: true,
- initial: null,
- integer: true,
- label: 'DAGGERHEART.GENERAL.difficulty'
- }),
- description: new fields.HTMLField({ label: 'DAGGERHEART.GENERAL.description' }),
- motives: new fields.StringField(),
- notes: new fields.HTMLField()
- };
- }
-
- /**@inheritdoc */
- static DEFAULT_ICON = 'systems/daggerheart/assets/icons/documents/actors/drama-masks.svg';
-
- get features() {
- return this.parent.items.filter(x => x.type === 'feature');
- }
-
- isItemValid(source) {
- return super.isItemValid(source) || source.type === 'feature';
- }
-}
diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs
index 6c462d98..e4c11a5c 100644
--- a/module/documents/actor.mjs
+++ b/module/documents/actor.mjs
@@ -109,14 +109,6 @@ export default class DhpActor extends Actor {
});
}
- if (this.type === 'npc') {
- Object.assign(update, {
- prototypeToken: {
- disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
- }
- });
- }
-
this.updateSource(update);
}
diff --git a/styles/less/global/tab-navigation.less b/styles/less/global/tab-navigation.less
index 3d143b4c..038a9749 100755
--- a/styles/less/global/tab-navigation.less
+++ b/styles/less/global/tab-navigation.less
@@ -3,7 +3,8 @@
.daggerheart.dh-style {
.tab-navigation {
- margin: 5px 0 10px 0;
+ margin: 5px 0;
+ height: 40px;
width: 100%;
.navigation-container {
@@ -20,10 +21,6 @@
a {
color: @color-text-emphatic;
-
- &.empty:not(.active) {
- opacity: 0.4;
- }
}
}
}
diff --git a/styles/less/sheets/actors/adversary/header.less b/styles/less/sheets/actors/adversary/header.less
index 1e5e4fa5..8bd3fcee 100644
--- a/styles/less/sheets/actors/adversary/header.less
+++ b/styles/less/sheets/actors/adversary/header.less
@@ -35,7 +35,7 @@
.tags {
display: flex;
gap: 10px;
- padding-bottom: 8px;
+ padding-bottom: 16px;
.tag {
display: flex;
@@ -67,5 +67,11 @@
gap: 12px;
padding: 16px 0;
}
+
+ .adversary-navigation {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ }
}
}
diff --git a/styles/less/sheets/actors/companion/header.less b/styles/less/sheets/actors/companion/header.less
index aca789a6..b4df96bf 100644
--- a/styles/less/sheets/actors/companion/header.less
+++ b/styles/less/sheets/actors/companion/header.less
@@ -148,8 +148,10 @@
}
.companion-navigation {
+ display: flex;
+ gap: 8px;
+ align-items: baseline;
width: 100%;
- padding: 0 10px;
}
}
}
diff --git a/styles/less/sheets/actors/environment/header.less b/styles/less/sheets/actors/environment/header.less
index da6954e0..85471af4 100644
--- a/styles/less/sheets/actors/environment/header.less
+++ b/styles/less/sheets/actors/environment/header.less
@@ -138,8 +138,10 @@
}
.environment-navigation {
+ display: flex;
+ gap: 20px;
+ align-items: baseline;
padding: 0 20px;
-
.tab-navigation {
margin-top: 0;
}
diff --git a/styles/less/sheets/actors/npc/features.less b/styles/less/sheets/actors/npc/features.less
deleted file mode 100644
index 107b5a06..00000000
--- a/styles/less/sheets/actors/npc/features.less
+++ /dev/null
@@ -1,18 +0,0 @@
-.application.sheet.daggerheart.actor.dh-style.npc {
- .tab.features {
- &.active {
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
-
- .feature-section {
- display: flex;
- flex-direction: column;
- gap: 10px;
- overflow-y: auto;
- mask-image: linear-gradient(0deg, transparent 0%, black 5%);
- padding-bottom: 20px;
- }
- }
-}
diff --git a/styles/less/sheets/actors/npc/header.less b/styles/less/sheets/actors/npc/header.less
deleted file mode 100644
index d49d763c..00000000
--- a/styles/less/sheets/actors/npc/header.less
+++ /dev/null
@@ -1,83 +0,0 @@
-.application.sheet.daggerheart.actor.dh-style.npc {
- .npc-header-sheet {
- width: 100%;
- display: flex;
-
- .portrait {
- cursor: pointer;
- width: 275px;
-
- img {
- height: 275px;
- }
- }
-
- .tags {
- display: flex;
- gap: 10px;
- padding-bottom: 8px;
-
- .tag {
- display: flex;
- flex-direction: row;
- gap: 4px;
- justify-content: center;
- align-items: center;
- padding: 3px 5px;
- font-size: var(--font-size-12);
- font: @font-body;
-
- background: light-dark(@dark-15, @beige-15);
- border: 1px solid light-dark(@dark, @beige);
- border-radius: 3px;
- }
-
- .label {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- font-size: var(--font-size-12);
- }
- }
-
- .info-section {
- flex: 1;
- padding: 0 15px;
- padding-top: var(--header-height);
- display: flex;
- flex-direction: column;
-
- .name-row {
- display: flex;
- gap: 5px;
- align-items: center;
- justify-content: space-between;
- padding: 8px 0;
-
- h1 {
- display: flex;
- flex: 1;
- padding: 6px 0 0 0;
- font-size: var(--font-size-32);
- text-align: start;
- border: 1px solid transparent;
- outline: 2px solid transparent;
- transition: all 0.3s ease;
- word-break: break-word;
-
- &:hover {
- outline: 2px solid light-dark(@dark, @golden);
- }
- }
- }
-
- .npc-info {
- display: flex;
- flex-direction: column;
- gap: 12px;
- padding: 16px 0;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/styles/less/sheets/actors/npc/index.less b/styles/less/sheets/actors/npc/index.less
deleted file mode 100644
index 2d7d54e3..00000000
--- a/styles/less/sheets/actors/npc/index.less
+++ /dev/null
@@ -1,3 +0,0 @@
-@import './sheet.less';
-@import './header.less';
-@import './features.less';
\ No newline at end of file
diff --git a/styles/less/sheets/actors/npc/sheet.less b/styles/less/sheets/actors/npc/sheet.less
deleted file mode 100644
index 8ba3b7a9..00000000
--- a/styles/less/sheets/actors/npc/sheet.less
+++ /dev/null
@@ -1,10 +0,0 @@
-.application.sheet.daggerheart.actor.dh-style.npc {
- .window-content {
- display: grid;
- grid-template-rows: auto auto 1fr;
- }
-
- .npc-navigation {
- padding: 0 15px;
- }
-}
\ No newline at end of file
diff --git a/styles/less/sheets/index.less b/styles/less/sheets/index.less
index 4312f755..ca1bc840 100644
--- a/styles/less/sheets/index.less
+++ b/styles/less/sheets/index.less
@@ -6,7 +6,6 @@
@import './actors/character/index.less';
@import './actors/companion/index.less';
@import './actors/environment/index.less';
-@import './actors/npc/index.less';
@import './actors/party/index.less';
@import './items/beastform.less';
diff --git a/system.json b/system.json
index 89320768..2acd7570 100644
--- a/system.json
+++ b/system.json
@@ -244,14 +244,11 @@
"adversary": {
"htmlFields": ["notes", "description"]
},
- "npc": {
- "htmlFields": ["notes"]
- },
"environment": {
"htmlFields": ["notes", "description"]
},
"party": {
- "htmlFields": ["notes", "description"]
+ "htmlFields": ["notes"]
}
},
"Item": {
diff --git a/templates/sheets-settings/npc-settings/details.hbs b/templates/sheets-settings/npc-settings/details.hbs
deleted file mode 100644
index 0e18b488..00000000
--- a/templates/sheets-settings/npc-settings/details.hbs
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- {{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
deleted file mode 100644
index 2f2f5f47..00000000
--- a/templates/sheets-settings/npc-settings/features.hbs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
- {{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
deleted file mode 100644
index c9cb60fe..00000000
--- a/templates/sheets-settings/npc-settings/header.hbs
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/templates/sheets/actors/adversary/header.hbs b/templates/sheets/actors/adversary/header.hbs
index 5adc235a..fba96980 100644
--- a/templates/sheets/actors/adversary/header.hbs
+++ b/templates/sheets/actors/adversary/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/companion/header.hbs b/templates/sheets/actors/companion/header.hbs
index 9c324709..d10c0640 100644
--- a/templates/sheets/actors/companion/header.hbs
+++ b/templates/sheets/actors/companion/header.hbs
@@ -50,10 +50,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/environment/header.hbs b/templates/sheets/actors/environment/header.hbs
index 1b4073c7..2c6bbb5a 100644
--- a/templates/sheets/actors/environment/header.hbs
+++ b/templates/sheets/actors/environment/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/npc/features.hbs b/templates/sheets/actors/npc/features.hbs
deleted file mode 100644
index 3b495e74..00000000
--- a/templates/sheets/actors/npc/features.hbs
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- {{> '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
deleted file mode 100644
index 8dc345dc..00000000
--- a/templates/sheets/actors/npc/header.hbs
+++ /dev/null
@@ -1,40 +0,0 @@
-
\ No newline at end of file
diff --git a/templates/sheets/actors/npc/navigation.hbs b/templates/sheets/actors/npc/navigation.hbs
deleted file mode 100644
index ae684f0d..00000000
--- a/templates/sheets/actors/npc/navigation.hbs
+++ /dev/null
@@ -1,7 +0,0 @@
-
- {{#> '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
deleted file mode 100644
index bc9ac3cf..00000000
--- a/templates/sheets/actors/npc/notes.hbs
+++ /dev/null
@@ -1,11 +0,0 @@
-
- {{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 8af1f140..f9a31d3e 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 cfee735f..14e3eaa6 100644
--- a/templates/ui/chat/parts/roll-part.hbs
+++ b/templates/ui/chat/parts/roll-part.hbs
@@ -12,9 +12,13 @@
{{/if}}
- {{#if roll.options.roll.difficulty}}
-
- {{localize "DAGGERHEART.GENERAL.difficulty"}} {{roll.options.roll.difficulty}}
+ {{#if roll.difficulty}}
+
+ {{!-- {{#if canViewSecret}} --}}
+ difficulty {{roll.difficulty}}
+ {{!-- {{else}}
+ {{localize (ifThen roll.success "DAGGERHEART.GENERAL.success" "DAGGERHEART.GENERAL.failure")}}
+ {{/if}} --}}
{{/if}}
diff --git a/templates/ui/sidebar/actor-document-partial.hbs b/templates/ui/sidebar/actor-document-partial.hbs
index 1bd3ff9a..2a9f47fa 100644
--- a/templates/ui/sidebar/actor-document-partial.hbs
+++ b/templates/ui/sidebar/actor-document-partial.hbs
@@ -6,8 +6,6 @@
{{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")}}