Changed from aura to attached. Added functionality to Elemental Aura

This commit is contained in:
WBHarry 2026-07-02 00:44:22 +02:00
parent e76df049d1
commit b860e7f1c0
4 changed files with 170 additions and 100 deletions

View file

@ -872,8 +872,8 @@
"solo": "for each Solo adversary." "solo": "for each Solo adversary."
}, },
"AreaTypes": { "AreaTypes": {
"aura": { "label": "Aura" }, "attached": { "label": "Attached To Token" },
"placed": { "label": "Placed Area" } "placed": { "label": "Placed In Scene" }
}, },
"ArmorInteraction": { "ArmorInteraction": {
"none": { "label": "Ignores Armor" }, "none": { "label": "Ignores Armor" },

View file

@ -121,8 +121,8 @@ export const areaTypes = {
id: 'placed', id: 'placed',
label: 'DAGGERHEART.CONFIG.AreaTypes.placed.label' label: 'DAGGERHEART.CONFIG.AreaTypes.placed.label'
}, },
aura: { attached: {
id: 'aura', id: 'attached',
label: 'DAGGERHEART.CONFIG.AreaTypes.aura.label' label: 'DAGGERHEART.CONFIG.AreaTypes.attached.label'
} }
}; };

View file

@ -311,7 +311,7 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
const placeRegion = data => { const placeRegion = data => {
canvas.regions.placeRegion(data, { canvas.regions.placeRegion(data, {
create: true, create: true,
attachToToken: selectedArea.type === CONFIG.DH.ACTIONS.areaTypes.aura.id attachToToken: selectedArea.type === CONFIG.DH.ACTIONS.areaTypes.attached.id
}); });
}; };

View file

@ -52,7 +52,7 @@
"includeBase": false "includeBase": false
}, },
"target": { "target": {
"type": "hostile", "type": "",
"amount": 1 "amount": 1
}, },
"effects": [ "effects": [
@ -63,13 +63,23 @@
], ],
"name": "Fire", "name": "Fire",
"img": "icons/magic/fire/barrier-wall-explosion-orange.webp", "img": "icons/magic/fire/barrier-wall-explosion-orange.webp",
"range": "close" "range": "",
"areas": [
{
"name": "Elemental Aura: Fire",
"type": "attached",
"shape": "emanation",
"size": "close",
"hasHole": false,
"effects": []
}
]
}, },
"xDBLH5TWidvrYF7z": { "xDBLH5TWidvrYF7z": {
"type": "effect", "type": "effect",
"_id": "xDBLH5TWidvrYF7z", "_id": "xDBLH5TWidvrYF7z",
"systemPath": "actions", "systemPath": "actions",
"description": "<p>When an adversary marks 1 or more Hit Points, they must also mark a Stress.</p>", "description": "<p>Your allies gain a +1 bonus to Strength.</p>",
"chatDisplay": true, "chatDisplay": true,
"actionType": "action", "actionType": "action",
"cost": [], "cost": [],
@ -78,19 +88,26 @@
"max": "", "max": "",
"recovery": null "recovery": null
}, },
"effects": [ "effects": [],
{
"_id": "WRuijfHxmUscAa69",
"onSave": false
}
],
"target": { "target": {
"type": "friendly", "type": "",
"amount": null "amount": null
}, },
"name": "Earth", "name": "Earth",
"img": "icons/magic/control/buff-strength-muscle-damage-red.webp", "img": "icons/magic/control/buff-strength-muscle-damage-red.webp",
"range": "close" "range": "",
"areas": [
{
"name": "Elemental Aura: Earth",
"type": "attached",
"shape": "emanation",
"size": "close",
"hasHole": true,
"effects": [
"yvpWNCNobg0LLjey"
]
}
]
}, },
"S4t5HlgxWlHwaBDw": { "S4t5HlgxWlHwaBDw": {
"type": "effect", "type": "effect",
@ -112,12 +129,22 @@
} }
], ],
"target": { "target": {
"type": "hostile", "type": "self",
"amount": null "amount": null
}, },
"name": "Water", "name": "Water",
"img": "icons/magic/water/vortex-water-whirlpool.webp", "img": "icons/magic/water/vortex-water-whirlpool.webp",
"range": "close" "range": "self",
"areas": [
{
"name": "Elemental Aura: Water",
"type": "attached",
"shape": "emanation",
"size": "close",
"hasHole": false,
"effects": []
}
]
}, },
"hAsKFFewtTqd1gg9": { "hAsKFFewtTqd1gg9": {
"type": "attack", "type": "attack",
@ -138,7 +165,7 @@
"includeBase": false "includeBase": false
}, },
"target": { "target": {
"type": "any", "type": "self",
"amount": null "amount": null
}, },
"effects": [ "effects": [
@ -169,7 +196,19 @@
}, },
"name": "Air", "name": "Air",
"img": "icons/magic/air/air-burst-spiral-blue-gray.webp", "img": "icons/magic/air/air-burst-spiral-blue-gray.webp",
"range": "" "range": "self",
"areas": [
{
"name": "Elemental Aura: Air",
"type": "attached",
"shape": "emanation",
"size": "close",
"hasHole": false,
"effects": [
"vnKV5hsO4DVjURAl"
]
}
]
} }
}, },
"originItemType": null, "originItemType": null,
@ -181,49 +220,6 @@
} }
}, },
"effects": [ "effects": [
{
"name": "Elemental Aura (Earth)",
"img": "icons/magic/control/buff-strength-muscle-damage-orange.webp",
"origin": "Compendium.daggerheart.subclasses.Item.2JH9NaOh69yN80Gw",
"transfer": false,
"_id": "WRuijfHxmUscAa69",
"type": "base",
"system": {
"rangeDependence": {
"enabled": false,
"type": "withinRange",
"target": "hostile",
"range": "melee"
}
},
"changes": [
{
"key": "system.traits.strength.value",
"mode": 2,
"value": "1",
"priority": null
}
],
"disabled": false,
"duration": {
"startTime": null,
"combat": null,
"seconds": null,
"rounds": null,
"turns": null,
"startRound": null,
"startTurn": null
},
"description": "",
"tint": "#ffffff",
"statuses": [],
"sort": 0,
"flags": {},
"_stats": {
"compendiumSource": null
},
"_key": "!items.effects!2JH9NaOh69yN80Gw.WRuijfHxmUscAa69"
},
{ {
"name": "Elemental Aura (Water)", "name": "Elemental Aura (Water)",
"img": "icons/magic/water/vortex-water-whirlpool.webp", "img": "icons/magic/water/vortex-water-whirlpool.webp",
@ -237,18 +233,15 @@
"type": "withinRange", "type": "withinRange",
"target": "hostile", "target": "hostile",
"range": "melee" "range": "melee"
} },
"changes": []
}, },
"changes": [],
"disabled": false, "disabled": false,
"duration": { "duration": {
"startTime": null, "value": null,
"combat": null, "units": "seconds",
"seconds": null, "expiry": null,
"rounds": null, "expired": false
"turns": null,
"startRound": null,
"startTurn": null
}, },
"description": "", "description": "",
"tint": "#ffffff", "tint": "#ffffff",
@ -258,6 +251,9 @@
"_stats": { "_stats": {
"compendiumSource": null "compendiumSource": null
}, },
"start": null,
"showIcon": 1,
"folder": null,
"_key": "!items.effects!2JH9NaOh69yN80Gw.H7W52ps5d3UGmaFr" "_key": "!items.effects!2JH9NaOh69yN80Gw.H7W52ps5d3UGmaFr"
}, },
{ {
@ -273,18 +269,15 @@
"type": "withinRange", "type": "withinRange",
"target": "hostile", "target": "hostile",
"range": "melee" "range": "melee"
} },
"changes": []
}, },
"changes": [],
"disabled": false, "disabled": false,
"duration": { "duration": {
"startTime": null, "value": null,
"combat": null, "units": "seconds",
"seconds": null, "expiry": null,
"rounds": null, "expired": false
"turns": null,
"startRound": null,
"startTurn": null
}, },
"description": "", "description": "",
"tint": "#ffffff", "tint": "#ffffff",
@ -294,43 +287,120 @@
"_stats": { "_stats": {
"compendiumSource": null "compendiumSource": null
}, },
"start": null,
"showIcon": 1,
"folder": null,
"_key": "!items.effects!2JH9NaOh69yN80Gw.WX5AMEpmUAutB9Hm" "_key": "!items.effects!2JH9NaOh69yN80Gw.WX5AMEpmUAutB9Hm"
}, },
{ {
"name": "Elemental Aura (Air)", "name": "Elemental Aura: Earth",
"img": "icons/magic/air/air-burst-spiral-blue-gray.webp", "disabled": false,
"origin": "Compendium.daggerheart.subclasses.Item.2JH9NaOh69yN80Gw", "img": "icons/magic/control/buff-strength-muscle-damage-red.webp",
"description": "<p><span style=\"color:rgb(239, 230, 216);font-family:Montserrat, sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0px;text-transform:none;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;white-space:normal;background-color:rgba(24, 22, 46, 0.753);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;display:inline !important;float:none\">You gain a +1 bonus to Strength.</span></p>",
"transfer": false, "transfer": false,
"_id": "mJBA2QTyM9SM5NVS", "statuses": [],
"type": "base",
"system": { "system": {
"rangeDependence": { "rangeDependence": {
"enabled": false, "enabled": false,
"type": "withinRange", "type": "withinRange",
"target": "hostile", "target": "hostile",
"range": "melee" "range": "melee"
} },
"changes": [
{
"key": "system.traits.strength.value",
"type": "add",
"value": 1,
"priority": null,
"phase": "initial"
}
],
"duration": {
"description": "",
"type": ""
},
"stacking": null,
"targetDispositions": [
1
]
}, },
"changes": [], "_id": "yvpWNCNobg0LLjey",
"disabled": false, "type": "base",
"duration": { "start": {
"startTime": null, "time": 0,
"combat": null, "combat": null,
"seconds": null, "combatant": null,
"rounds": null, "initiative": null,
"turns": null, "round": null,
"startRound": null, "turn": null
"startTurn": null
}, },
"description": "", "duration": {
"value": null,
"units": "seconds",
"expiry": null,
"expired": false
},
"origin": null,
"tint": "#ffffff", "tint": "#ffffff",
"statuses": [], "showIcon": 1,
"folder": null,
"sort": 0, "sort": 0,
"flags": {}, "flags": {},
"_stats": { "_stats": {
"compendiumSource": null "compendiumSource": null
}, },
"_key": "!items.effects!2JH9NaOh69yN80Gw.mJBA2QTyM9SM5NVS" "_key": "!items.effects!2JH9NaOh69yN80Gw.yvpWNCNobg0LLjey"
},
{
"name": "Elemental Aura: Air",
"disabled": false,
"img": "icons/magic/air/air-burst-spiral-blue-gray.webp",
"description": "<p><span style=\"color:rgb(239, 230, 216);font-family:Montserrat, sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0px;text-transform:none;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;white-space:normal;background-color:rgba(24, 22, 46, 0.753);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;display:inline !important;float:none\">When you or an ally takes damage from an attack beyond Melee range, reduce the damage by 1d8.</span></p>",
"transfer": false,
"statuses": [],
"system": {
"rangeDependence": {
"enabled": false,
"type": "withinRange",
"target": "hostile",
"range": "melee"
},
"changes": [],
"duration": {
"description": "",
"type": ""
},
"stacking": null,
"targetDispositions": [
1
]
},
"_id": "vnKV5hsO4DVjURAl",
"type": "base",
"start": {
"time": 0,
"combat": null,
"combatant": null,
"initiative": null,
"round": null,
"turn": null
},
"duration": {
"value": null,
"units": "seconds",
"expiry": null,
"expired": false
},
"origin": null,
"tint": "#ffffff",
"showIcon": 1,
"folder": null,
"sort": 0,
"flags": {},
"_stats": {
"compendiumSource": null
},
"_key": "!items.effects!2JH9NaOh69yN80Gw.vnKV5hsO4DVjURAl"
} }
], ],
"sort": 100000, "sort": 100000,