[Feature] Action Areas (#1815)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run

* Functioning setup

* .

* Fixes

* Completed

* Apply suggestions from code review

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

* using function.call instead of function.bind

* Run lint fix on action areas PR (#1820)

* .

* .

* Restructured getTemplateShape to be a lot more readable

* .

* .

* Changed from 'area' to 'areas'

* .

* Moved the areas button to the left

* Fix regression with actions list

* Updated all SRD adversaries

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
This commit is contained in:
WBHarry 2026-04-21 22:27:52 +02:00 committed by GitHub
parent 646e0debbd
commit 3eda3c4c05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
89 changed files with 1871 additions and 686 deletions

View file

@ -143,12 +143,9 @@
"src": "systems/daggerheart/assets/icons/documents/actors/dragon-head.svg",
"anchorX": 0.5,
"anchorY": 0.5,
"offsetX": 0,
"offsetY": 0,
"fit": "contain",
"scaleX": 1,
"scaleY": 1,
"rotation": 0,
"tint": "#ffffff",
"alphaThreshold": 0.75
},
@ -199,7 +196,7 @@
"saturation": 0,
"contrast": 0
},
"detectionModes": [],
"detectionModes": {},
"occludable": {
"radius": 0
},
@ -225,7 +222,8 @@
"flags": {},
"randomImg": false,
"appendNumber": false,
"prependAdjective": false
"prependAdjective": false,
"depth": 1
},
"items": [
{
@ -234,7 +232,7 @@
"_id": "SsgN2qSYpQLR43Cz",
"img": "icons/skills/movement/arrows-up-trio-red.webp",
"system": {
"description": "<p><strong>Spend 2 Fear</strong> to spotlight the @Lookup[@name] and up to <strong>2d4</strong> allies within Far range.</p><p>@Template[type:emanation|range:f]</p>",
"description": "<p><strong>Spend 2 Fear</strong> to spotlight the @Lookup[@name] and up to <strong>2d4</strong> allies within Far range.</p>",
"resource": null,
"actions": {
"lI0lnRb3xrUjqIYX": {
@ -259,7 +257,8 @@
},
"damage": {
"parts": {},
"includeBase": false
"includeBase": false,
"groupAttack": ""
},
"target": {
"type": "any",
@ -288,7 +287,16 @@
},
"name": "Rally",
"img": "icons/skills/movement/arrows-up-trio-red.webp",
"range": ""
"range": "",
"areas": [
{
"name": "Rally Guards",
"type": "placed",
"shape": "emanation",
"size": "far",
"effects": []
}
]
}
},
"originItemType": null,
@ -315,7 +323,7 @@
"_id": "YeJ7eJVCKsRxG8mk",
"img": "icons/skills/ranged/target-bullseye-arrow-blue.webp",
"system": {
"description": "<p><em>Countdown (5)</em>. When the @Lookup[@name] is in the spotlight for the first time, activate the countdown. It ticks down when a PC makes an attack roll. When it triggers, all Archer Guards within Far range make a standard attack with advantage against the nearest target within their range. If any attacks succeed on the same target, combine their damage.</p><p>@Template[type:emanation|range:f]</p>",
"description": "<p><em>Countdown (5)</em>. When the @Lookup[@name] is in the spotlight for the first time, activate the countdown. It ticks down when a PC makes an attack roll. When it triggers, all Archer Guards within Far range make a standard attack with advantage against the nearest target within their range. If any attacks succeed on the same target, combine their damage.</p>",
"resource": null,
"actions": {
"xyhaCmPGiVMsTViH": {
@ -353,7 +361,16 @@
],
"name": "Start Countdown",
"img": "icons/skills/ranged/target-bullseye-arrow-blue.webp",
"range": ""
"range": "",
"areas": [
{
"name": "On My Signal",
"type": "placed",
"shape": "emanation",
"size": "far",
"effects": []
}
]
}
},
"originItemType": null,