From c73f6202bd649398973bbc66b0b26410e8b9014e Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sun, 17 Aug 2025 02:19:22 +0200 Subject: [PATCH] Added attribution to environments --- .../sheets/actors/environment.mjs | 6 ++++- .../sheets/api/application-mixin.mjs | 6 +++-- ...ment_Abandoned_Grove_pGEdzdLkqYtBhxnG.json | 19 +++++++++------ ...environment_Ambushed_uGEdNYERCTJBEjc5.json | 19 +++++++++------ ...nvironment_Ambushers_uXZpebPR77YQ1oXI.json | 19 +++++++++------ ...g_Heart_of_the_Woods_oY69NN4rYxoRE4hl.json | 19 +++++++++------ ...Bustling_Marketplace_HZKA7hkej7JJY503.json | 19 +++++++++------ ...ronment_Castle_Siege_1eZ32Esq7rfZOjlu.json | 19 +++++++++------ ...ironment_Chaos_Realm_2Z1mKc65LxNk2PqR.json | 19 +++++++++------ ...ent_Cliffside_Ascent_LPpfdlNKqiZIl04w.json | 19 +++++++++------ ...ironment_Cult_Ritual_QAXXiOKBDmCTauHD.json | 19 +++++++++------ ...nt_Divine_Usurpation_4DLYez7VbMCFDAuZ.json | 19 +++++++++------ ...ment_Hallowed_Temple_dsA6j69AnaJhUyqH.json | 19 +++++++++------ ...ronment_Haunted_City_OzYbizKraK92FDiI.json | 19 +++++++++------ ...nment_Imperial_Court_jr1xAoXzVwVblzxI.json | 19 +++++++++------ ...ronment_Local_Tavern_cM4X81DOyvxNIi52.json | 19 +++++++++------ ...onment_Mountain_Pass_acMu9wJrMZZzLSTJ.json | 19 +++++++++------ ...ecromancer_s_Ossuary_h3KyRL7AshhLAmcH.json | 19 +++++++++------ ...ronment_Outpost_Town_YezryR32uo39xRxW.json | 19 +++++++++------ ...nment_Pitched_Battle_EWD3ZsLoK6VMVOf7.json | 19 +++++++++------ ...ronment_Raging_River_t4cdqTfzcqP3H1vJ.json | 19 +++++++++------ .../sheets/actors/actor-sheet-shared.less | 6 +++++ .../sheets/actors/environment/header.less | 7 ++++++ .../less/sheets/actors/environment/sheet.less | 10 ++++++++ .../less/sheets/items/item-sheet-shared.less | 6 +++++ .../sheets/actors/environment/header.hbs | 23 +++++++++++-------- 26 files changed, 280 insertions(+), 145 deletions(-) diff --git a/module/applications/sheets/actors/environment.mjs b/module/applications/sheets/actors/environment.mjs index 11991549..c2748a58 100644 --- a/module/applications/sheets/actors/environment.mjs +++ b/module/applications/sheets/actors/environment.mjs @@ -8,7 +8,7 @@ export default class DhpEnvironment extends DHBaseActorSheet { classes: ['environment'], position: { width: 500, - height: 725 + height: 740 }, window: { resizable: true, @@ -49,6 +49,10 @@ export default class DhpEnvironment extends DHBaseActorSheet { switch (partId) { case 'header': await this._prepareHeaderContext(context, options); + + const { source, page } = this.document.system.attribution; + const attribution = [source, page ? `pg ${page}.` : null].filter(x => x).join('. '); + context.attributionLabel = attribution; break; case 'notes': await this._prepareNotesContext(context, options); diff --git a/module/applications/sheets/api/application-mixin.mjs b/module/applications/sheets/api/application-mixin.mjs index 814718c1..5d90486f 100644 --- a/module/applications/sheets/api/application-mixin.mjs +++ b/module/applications/sheets/api/application-mixin.mjs @@ -130,7 +130,8 @@ export default function DHApplicationMixin(Base) { async _renderFrame(options) { const frame = await super._renderFrame(options); - if (this.document.system.metadata.hasAttribution) { + const headerAttribution = !['environment'].includes(this.document.type); + if (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 = ``; @@ -144,7 +145,8 @@ export default function DHApplicationMixin(Base) { * Refresh the custom parts of the application frame */ refreshFrame() { - if (this.document.system.metadata.hasAttribution) { + const headerAttribution = !['environment'].includes(this.document.type); + if (this.document.system.metadata.hasAttribution && headerAttribution) { const { source, page } = this.document.system.attribution; const attribution = [source, page ? `pg ${page}.` : null].filter(x => x).join('. '); diff --git a/src/packs/environments/environment_Abandoned_Grove_pGEdzdLkqYtBhxnG.json b/src/packs/environments/environment_Abandoned_Grove_pGEdzdLkqYtBhxnG.json index 1f1d5722..9e855978 100644 --- a/src/packs/environments/environment_Abandoned_Grove_pGEdzdLkqYtBhxnG.json +++ b/src/packs/environments/environment_Abandoned_Grove_pGEdzdLkqYtBhxnG.json @@ -1,6 +1,6 @@ { "name": "Abandoned Grove", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -27,19 +27,24 @@ "tier": 1, "description": "

A former druidic grove lying fallow and fully reclaimed by nature.

", "type": "exploration", - "impulses": "Draw in the curious, echo the past" + "impulses": "Draw in the curious, echo the past", + "attribution": { + "source": "Daggerheart SRD", + "page": 103, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784553, - "modifiedTime": 1754208922163, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890228, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "pGEdzdLkqYtBhxnG", "sort": 3400000, @@ -55,7 +60,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "AbominationVaults.webp", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Ambushed_uGEdNYERCTJBEjc5.json b/src/packs/environments/environment_Ambushed_uGEdNYERCTJBEjc5.json index a705fa2d..7135bd42 100644 --- a/src/packs/environments/environment_Ambushed_uGEdNYERCTJBEjc5.json +++ b/src/packs/environments/environment_Ambushed_uGEdNYERCTJBEjc5.json @@ -1,6 +1,6 @@ { "name": "Ambushed", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -10,19 +10,24 @@ "tier": 1, "description": "

An ambush is set to catch an unsuspecting party off-guard.

", "type": "event", - "impulses": "Overwhelm, scatter, surround" + "impulses": "Overwhelm, scatter, surround", + "attribution": { + "source": "Daggerheart SRD", + "page": 103, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784553, - "modifiedTime": 1754211171895, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890231, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "uGEdNYERCTJBEjc5", "sort": 3400000, @@ -38,7 +43,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Ambushers_uXZpebPR77YQ1oXI.json b/src/packs/environments/environment_Ambushers_uXZpebPR77YQ1oXI.json index 3a8e3092..6510bc5c 100644 --- a/src/packs/environments/environment_Ambushers_uXZpebPR77YQ1oXI.json +++ b/src/packs/environments/environment_Ambushers_uXZpebPR77YQ1oXI.json @@ -1,6 +1,6 @@ { "name": "Ambushers", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -10,19 +10,24 @@ "tier": 1, "description": "

An ambush is set by the PCs to catch unsuspecting adversaries off-guard.

", "type": "event", - "impulses": "Escape, group up, protect the most vulnerable" + "impulses": "Escape, group up, protect the most vulnerable", + "attribution": { + "source": "Daggerheart SRD", + "page": 103, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784554, - "modifiedTime": 1754211550898, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890234, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "uXZpebPR77YQ1oXI", "sort": 3400000, @@ -38,7 +43,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Burning_Heart_of_the_Woods_oY69NN4rYxoRE4hl.json b/src/packs/environments/environment_Burning_Heart_of_the_Woods_oY69NN4rYxoRE4hl.json index a1949373..5683f6f5 100644 --- a/src/packs/environments/environment_Burning_Heart_of_the_Woods_oY69NN4rYxoRE4hl.json +++ b/src/packs/environments/environment_Burning_Heart_of_the_Woods_oY69NN4rYxoRE4hl.json @@ -1,6 +1,6 @@ { "name": "Burning Heart of the Woods", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "MfrIkJK12PAEfbPL", "system": { @@ -32,19 +32,24 @@ "tier": 3, "description": "

Thick indigo ash fills the air around a towering moss-covered tree that burns eternally with flames a sickly shade of blue.

", "type": "exploration", - "impulses": "Beat out an uncanny rhythm for all to follow, corrupt the woods" + "impulses": "Beat out an uncanny rhythm for all to follow, corrupt the woods", + "attribution": { + "source": "Daggerheart SRD", + "page": 108, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784554, - "modifiedTime": 1754218065764, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890258, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "oY69NN4rYxoRE4hl", "sort": 3400000, @@ -60,7 +65,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Bustling_Marketplace_HZKA7hkej7JJY503.json b/src/packs/environments/environment_Bustling_Marketplace_HZKA7hkej7JJY503.json index f68ad8fd..11b458c1 100644 --- a/src/packs/environments/environment_Bustling_Marketplace_HZKA7hkej7JJY503.json +++ b/src/packs/environments/environment_Bustling_Marketplace_HZKA7hkej7JJY503.json @@ -1,6 +1,6 @@ { "name": "Bustling Marketplace", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -25,19 +25,24 @@ "tier": 1, "description": "

The economic heart of the settlement, with local artisans, traveling merchants, and patrons across social classes.

", "type": "social", - "impulses": "Buy low, and sell high, tempt and tantalize with wares from near and far" + "impulses": "Buy low, and sell high, tempt and tantalize with wares from near and far", + "attribution": { + "source": "Daggerheart SRD", + "page": 104, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784554, - "modifiedTime": 1754212085334, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890236, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "HZKA7hkej7JJY503", "sort": 3400000, @@ -53,7 +58,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Castle_Siege_1eZ32Esq7rfZOjlu.json b/src/packs/environments/environment_Castle_Siege_1eZ32Esq7rfZOjlu.json index 1739e6bd..88d9096e 100644 --- a/src/packs/environments/environment_Castle_Siege_1eZ32Esq7rfZOjlu.json +++ b/src/packs/environments/environment_Castle_Siege_1eZ32Esq7rfZOjlu.json @@ -1,6 +1,6 @@ { "name": "Castle Siege", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "MfrIkJK12PAEfbPL", "system": { @@ -29,19 +29,24 @@ "tier": 3, "description": "

An active siege with an attacking force fighting to gain entry to a fortified castle.

", "type": "event", - "impulses": "Bleed out the will to fi ght, breach the walls, build tension" + "impulses": "Bleed out the will to fi ght, breach the walls, build tension", + "attribution": { + "source": "Daggerheart SRD", + "page": 109, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784555, - "modifiedTime": 1754218654354, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890261, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "1eZ32Esq7rfZOjlu", "sort": 3400000, @@ -57,7 +62,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Chaos_Realm_2Z1mKc65LxNk2PqR.json b/src/packs/environments/environment_Chaos_Realm_2Z1mKc65LxNk2PqR.json index fe3f3349..d31300b5 100644 --- a/src/packs/environments/environment_Chaos_Realm_2Z1mKc65LxNk2PqR.json +++ b/src/packs/environments/environment_Chaos_Realm_2Z1mKc65LxNk2PqR.json @@ -1,6 +1,6 @@ { "name": "Chaos Realm", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "IKumu5HTLqONLYqb", "system": { @@ -19,19 +19,24 @@ "tier": 4, "description": "

An otherworldly space where the laws of reality are unstable and dangerous.

", "type": "traversal", - "impulses": "Annihilate certainty, consume power, defy logic" + "impulses": "Annihilate certainty, consume power, defy logic", + "attribution": { + "source": "Daggerheart SRD", + "page": 110, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784556, - "modifiedTime": 1754219630584, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890266, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "2Z1mKc65LxNk2PqR", "sort": 3400000, @@ -47,7 +52,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Cliffside_Ascent_LPpfdlNKqiZIl04w.json b/src/packs/environments/environment_Cliffside_Ascent_LPpfdlNKqiZIl04w.json index 67a6e7ea..43a0f61f 100644 --- a/src/packs/environments/environment_Cliffside_Ascent_LPpfdlNKqiZIl04w.json +++ b/src/packs/environments/environment_Cliffside_Ascent_LPpfdlNKqiZIl04w.json @@ -1,6 +1,6 @@ { "name": "Cliffside Ascent", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -20,19 +20,24 @@ "tier": 1, "description": "

A steep, rocky cliffside tall enough to make traversal dangerous.

", "type": "traversal", - "impulses": "Cast the unready down to a rocky doom, draw people in with promise of what lies at the top" + "impulses": "Cast the unready down to a rocky doom, draw people in with promise of what lies at the top", + "attribution": { + "source": "Daggerheart SRD", + "page": 104, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784557, - "modifiedTime": 1754212638870, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890238, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "LPpfdlNKqiZIl04w", "sort": 3400000, @@ -48,7 +53,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json b/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json index a1d1ed38..ded1d14f 100644 --- a/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json +++ b/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json @@ -1,6 +1,6 @@ { "name": "Cult Ritual", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "XMeecO3IRvu5ck6F", "system": { @@ -20,19 +20,24 @@ "tier": 2, "description": "

A Fallen cult assembles around a sigil of the defeated gods and a bonfire that burns a sickly shade of green.

", "type": "event", - "impulses": "Profane the land, unite the Mortal Realm with the Circles Below" + "impulses": "Profane the land, unite the Mortal Realm with the Circles Below", + "attribution": { + "source": "Daggerheart SRD", + "page": 106, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784557, - "modifiedTime": 1754215595854, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890248, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "QAXXiOKBDmCTauHD", "sort": 3400000, @@ -48,7 +53,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Divine_Usurpation_4DLYez7VbMCFDAuZ.json b/src/packs/environments/environment_Divine_Usurpation_4DLYez7VbMCFDAuZ.json index c0b9e8e8..b924328f 100644 --- a/src/packs/environments/environment_Divine_Usurpation_4DLYez7VbMCFDAuZ.json +++ b/src/packs/environments/environment_Divine_Usurpation_4DLYez7VbMCFDAuZ.json @@ -1,6 +1,6 @@ { "name": "Divine Usurpation", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "IKumu5HTLqONLYqb", "system": { @@ -21,19 +21,24 @@ "tier": 4, "description": "

A massive ritual designed to breach the gates of the Hallows Above and unseat the New Gods themselves.

", "type": "event", - "impulses": "Collect power, overawe, silence dissent" + "impulses": "Collect power, overawe, silence dissent", + "attribution": { + "source": "Daggerheart SRD", + "page": 110, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784558, - "modifiedTime": 1754220432059, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890271, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "4DLYez7VbMCFDAuZ", "sort": 3400000, @@ -49,7 +54,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Hallowed_Temple_dsA6j69AnaJhUyqH.json b/src/packs/environments/environment_Hallowed_Temple_dsA6j69AnaJhUyqH.json index 745414dc..8eed0247 100644 --- a/src/packs/environments/environment_Hallowed_Temple_dsA6j69AnaJhUyqH.json +++ b/src/packs/environments/environment_Hallowed_Temple_dsA6j69AnaJhUyqH.json @@ -1,6 +1,6 @@ { "name": "Hallowed Temple", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "XMeecO3IRvu5ck6F", "system": { @@ -19,19 +19,24 @@ "tier": 2, "description": "

A bustling but well-kept temple that provides healing and hosts regular services, overseen by a priest or seraph.

", "type": "social", - "impulses": "Connect the Mortal Realm with the Hallows Above, display the power of the divine, provide aid and succor to the faithful" + "impulses": "Connect the Mortal Realm with the Hallows Above, display the power of the divine, provide aid and succor to the faithful", + "attribution": { + "source": "Daggerheart SRD", + "page": 107, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784558, - "modifiedTime": 1754216032747, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890251, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "dsA6j69AnaJhUyqH", "sort": 3400000, @@ -47,7 +52,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Haunted_City_OzYbizKraK92FDiI.json b/src/packs/environments/environment_Haunted_City_OzYbizKraK92FDiI.json index 11c98e66..0653ae50 100644 --- a/src/packs/environments/environment_Haunted_City_OzYbizKraK92FDiI.json +++ b/src/packs/environments/environment_Haunted_City_OzYbizKraK92FDiI.json @@ -1,6 +1,6 @@ { "name": "Haunted City", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "XMeecO3IRvu5ck6F", "system": { @@ -19,19 +19,24 @@ "tier": 2, "description": "

An abandoned city populated by the restless spirits of eras past.

", "type": "exploration", - "impulses": "Misdirect and disorient, replay apocalypses both public and personal" + "impulses": "Misdirect and disorient, replay apocalypses both public and personal", + "attribution": { + "source": "Daggerheart SRD", + "page": 107, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784559, - "modifiedTime": 1754216926766, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890253, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "OzYbizKraK92FDiI", "sort": 3400000, @@ -47,7 +52,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Imperial_Court_jr1xAoXzVwVblzxI.json b/src/packs/environments/environment_Imperial_Court_jr1xAoXzVwVblzxI.json index ab2c1ef8..1a9888f1 100644 --- a/src/packs/environments/environment_Imperial_Court_jr1xAoXzVwVblzxI.json +++ b/src/packs/environments/environment_Imperial_Court_jr1xAoXzVwVblzxI.json @@ -1,6 +1,6 @@ { "name": "Imperial Court", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "IKumu5HTLqONLYqb", "system": { @@ -21,19 +21,24 @@ "tier": 4, "description": "

The majestic domain of a powerful empire, lavishly appointed with stolen treasures.

", "type": "social", - "impulses": "Justify and perpetuate imperial rule, seduce rivals with promises of power and comfort" + "impulses": "Justify and perpetuate imperial rule, seduce rivals with promises of power and comfort", + "attribution": { + "source": "Daggerheart SRD", + "page": 111, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784559, - "modifiedTime": 1754220962410, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890268, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "jr1xAoXzVwVblzxI", "sort": 3400000, @@ -49,7 +54,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Local_Tavern_cM4X81DOyvxNIi52.json b/src/packs/environments/environment_Local_Tavern_cM4X81DOyvxNIi52.json index cb440aab..1bc1c17f 100644 --- a/src/packs/environments/environment_Local_Tavern_cM4X81DOyvxNIi52.json +++ b/src/packs/environments/environment_Local_Tavern_cM4X81DOyvxNIi52.json @@ -1,6 +1,6 @@ { "name": "Local Tavern", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -33,19 +33,24 @@ "tier": 1, "description": "

A lively tavern that serves as the social hub for its town.

", "type": "social", - "impulses": "Provide opportunities for adventurers, nurture community" + "impulses": "Provide opportunities for adventurers, nurture community", + "attribution": { + "source": "Daggerheart SRD", + "page": 105, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784561, - "modifiedTime": 1754213299544, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890240, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "cM4X81DOyvxNIi52", "sort": 3400000, @@ -61,7 +66,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Mountain_Pass_acMu9wJrMZZzLSTJ.json b/src/packs/environments/environment_Mountain_Pass_acMu9wJrMZZzLSTJ.json index e2a31c41..85e442e1 100644 --- a/src/packs/environments/environment_Mountain_Pass_acMu9wJrMZZzLSTJ.json +++ b/src/packs/environments/environment_Mountain_Pass_acMu9wJrMZZzLSTJ.json @@ -1,6 +1,6 @@ { "name": "Mountain Pass", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "XMeecO3IRvu5ck6F", "system": { @@ -27,19 +27,24 @@ "tier": 2, "description": "

Stony peaks that pierce the clouds, with a twisting path winding its way up and over through many switchbacks.

", "type": "traversal", - "impulses": "Exact a chilling toll in supplies and stamina, reveal magical tampering, slow down travel" + "impulses": "Exact a chilling toll in supplies and stamina, reveal magical tampering, slow down travel", + "attribution": { + "source": "Daggerheart SRD", + "page": 108, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784562, - "modifiedTime": 1754217303533, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890256, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "acMu9wJrMZZzLSTJ", "sort": 3400000, @@ -55,7 +60,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Necromancer_s_Ossuary_h3KyRL7AshhLAmcH.json b/src/packs/environments/environment_Necromancer_s_Ossuary_h3KyRL7AshhLAmcH.json index 5afc9db6..dc76c382 100644 --- a/src/packs/environments/environment_Necromancer_s_Ossuary_h3KyRL7AshhLAmcH.json +++ b/src/packs/environments/environment_Necromancer_s_Ossuary_h3KyRL7AshhLAmcH.json @@ -1,6 +1,6 @@ { "name": "Necromancer’s Ossuary", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "IKumu5HTLqONLYqb", "system": { @@ -18,19 +18,24 @@ "tier": 4, "description": "

A dusty crypt with a library, twisting corridors, and abundant sarcophagi, spattered with the blood of ill-fated invaders.

", "type": "exploration", - "impulses": "Confound intruders, delve into secrets best left buried, manifest unlife, unleash a tide of undead" + "impulses": "Confound intruders, delve into secrets best left buried, manifest unlife, unleash a tide of undead", + "attribution": { + "source": "Daggerheart SRD", + "page": 111, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784563, - "modifiedTime": 1754221404218, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890275, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "h3KyRL7AshhLAmcH", "sort": 3400000, @@ -46,7 +51,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Outpost_Town_YezryR32uo39xRxW.json b/src/packs/environments/environment_Outpost_Town_YezryR32uo39xRxW.json index 8e58b6a8..ef961283 100644 --- a/src/packs/environments/environment_Outpost_Town_YezryR32uo39xRxW.json +++ b/src/packs/environments/environment_Outpost_Town_YezryR32uo39xRxW.json @@ -1,6 +1,6 @@ { "name": "Outpost Town", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -29,19 +29,24 @@ "tier": 1, "description": "

A small town on the outskirts of a nation or region, close to a dungeon, tombs, or other adventuring destinations.

", "type": "social", - "impulses": "Drive the desperate to certain doom, profi t off of ragged hope" + "impulses": "Drive the desperate to certain doom, profi t off of ragged hope", + "attribution": { + "source": "Daggerheart SRD", + "page": 105, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784564, - "modifiedTime": 1754213845896, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890243, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "YezryR32uo39xRxW", "sort": 3400000, @@ -57,7 +62,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Pitched_Battle_EWD3ZsLoK6VMVOf7.json b/src/packs/environments/environment_Pitched_Battle_EWD3ZsLoK6VMVOf7.json index 3db3d3b6..abd838dd 100644 --- a/src/packs/environments/environment_Pitched_Battle_EWD3ZsLoK6VMVOf7.json +++ b/src/packs/environments/environment_Pitched_Battle_EWD3ZsLoK6VMVOf7.json @@ -1,6 +1,6 @@ { "name": "Pitched Battle", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "MfrIkJK12PAEfbPL", "system": { @@ -29,19 +29,24 @@ "tier": 3, "description": "

A massive combat between two large groups of armed combatants.

", "type": "event", - "impulses": "Seize people, land, and wealth, spill blood for greed and glory" + "impulses": "Seize people, land, and wealth, spill blood for greed and glory", + "attribution": { + "source": "Daggerheart SRD", + "page": 109, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784565, - "modifiedTime": 1754219040722, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890264, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "EWD3ZsLoK6VMVOf7", "sort": 3400000, @@ -57,7 +62,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/src/packs/environments/environment_Raging_River_t4cdqTfzcqP3H1vJ.json b/src/packs/environments/environment_Raging_River_t4cdqTfzcqP3H1vJ.json index 211c619a..47ec74e2 100644 --- a/src/packs/environments/environment_Raging_River_t4cdqTfzcqP3H1vJ.json +++ b/src/packs/environments/environment_Raging_River_t4cdqTfzcqP3H1vJ.json @@ -1,6 +1,6 @@ { "name": "Raging River", - "img": "icons/svg/mystery-man.svg", + "img": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "type": "environment", "folder": "GQ0VnOLrKBIHR6Us", "system": { @@ -29,19 +29,24 @@ "tier": 1, "description": "

A swift-moving river without a bridge crossing, deep enough to sweep away most people.

", "type": "traversal", - "impulses": "Bar crossing, carry away the unready, divide the land" + "impulses": "Bar crossing, carry away the unready, divide the land", + "attribution": { + "source": "Daggerheart SRD", + "page": 106, + "artist": "" + } }, "flags": {}, "_stats": { "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.346", + "coreVersion": "13.347", "systemId": "daggerheart", - "systemVersion": "0.0.1", + "systemVersion": "1.0.5", "createdTime": 1753922784565, - "modifiedTime": 1754214189395, - "lastModifiedBy": "MQSznptE5yLT7kj8" + "modifiedTime": 1755389890245, + "lastModifiedBy": "VZIeX2YDvX338Zvr" }, "_id": "t4cdqTfzcqP3H1vJ", "sort": 3400000, @@ -57,7 +62,7 @@ "width": 1, "height": 1, "texture": { - "src": "icons/svg/mystery-man.svg", + "src": "systems/daggerheart/assets/icons/documents/actors/forest.svg", "anchorX": 0.5, "anchorY": 0.5, "offsetX": 0, diff --git a/styles/less/sheets/actors/actor-sheet-shared.less b/styles/less/sheets/actors/actor-sheet-shared.less index 9fac0e95..4a7d6404 100644 --- a/styles/less/sheets/actors/actor-sheet-shared.less +++ b/styles/less/sheets/actors/actor-sheet-shared.less @@ -6,6 +6,12 @@ object-position: top center; } + &.minimized { + .attribution-header-label { + display: none; + } + } + .attribution-header-label { font-style: italic; font-family: @font-body; diff --git a/styles/less/sheets/actors/environment/header.less b/styles/less/sheets/actors/environment/header.less index f7353b10..163c2016 100644 --- a/styles/less/sheets/actors/environment/header.less +++ b/styles/less/sheets/actors/environment/header.less @@ -55,6 +55,13 @@ font-size: 12px; } } + + .attribution-header-label { + text-align: left; + position: relative; + top: 4px; + margin-bottom: -6px; + } } .status-number { diff --git a/styles/less/sheets/actors/environment/sheet.less b/styles/less/sheets/actors/environment/sheet.less index 74cec028..f86e3d00 100644 --- a/styles/less/sheets/actors/environment/sheet.less +++ b/styles/less/sheets/actors/environment/sheet.less @@ -5,6 +5,10 @@ .appTheme({ &.environment { background-image: url('../assets/parchments/dh-parchment-dark.png'); + + .attribution-header-label { + background-image: url('../assets/parchments/dh-parchment-dark.png'); + } } }, { &.environment { @@ -18,5 +22,11 @@ overflow-y: auto; scrollbar-width: thin; scrollbar-color: light-dark(@dark-blue, @golden) transparent; + + &.active { + overflow: hidden; + display: flex; + flex-direction: column; + } } } diff --git a/styles/less/sheets/items/item-sheet-shared.less b/styles/less/sheets/items/item-sheet-shared.less index 4dbb5062..d0a8cc48 100644 --- a/styles/less/sheets/items/item-sheet-shared.less +++ b/styles/less/sheets/items/item-sheet-shared.less @@ -1,4 +1,10 @@ .application.sheet.daggerheart.dh-style.item { + &.minimized { + .attribution-header-label { + display: none; + } + } + .attribution-header-label { font-style: italic; font-family: @font-body; diff --git a/templates/sheets/actors/environment/header.hbs b/templates/sheets/actors/environment/header.hbs index fff55144..95365315 100644 --- a/templates/sheets/actors/environment/header.hbs +++ b/templates/sheets/actors/environment/header.hbs @@ -3,20 +3,25 @@

-
-
- - {{localize (concat 'DAGGERHEART.GENERAL.Tiers.' source.system.tier)}} - -
- {{#if source.system.type}} +
+
- {{localize (concat 'DAGGERHEART.CONFIG.EnvironmentType.' source.system.type '.label')}} + {{localize (concat 'DAGGERHEART.GENERAL.Tiers.' source.system.tier)}}
+ {{#if source.system.type}} +
+ + {{localize (concat 'DAGGERHEART.CONFIG.EnvironmentType.' source.system.type '.label')}} + +
+ {{/if}} +
+ {{#if document.system.attribution.source}} + {{/if}} -
+