mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
Changed to using lookup for Group Attack damage
This commit is contained in:
parent
9220a4ad1e
commit
f452adec00
17 changed files with 23 additions and 16 deletions
|
|
@ -34,6 +34,13 @@ export default class DHAttackAction extends DHDamageAction {
|
|||
};
|
||||
}
|
||||
|
||||
get damageFormula() {
|
||||
const hitPointsPart = this.damage.parts.find(x => x.applyTo === CONFIG.DH.GENERAL.healingTypes.hitPoints.id);
|
||||
if (!hitPointsPart) return '0';
|
||||
|
||||
return hitPointsPart.value.getFormula();
|
||||
}
|
||||
|
||||
async use(event, options) {
|
||||
const result = await super.use(event, options);
|
||||
if (!result.message) return;
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 4 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"vgguNWz8vG8aoLXR": {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 6 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"cbAvPSIhwBMBTI3D": {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all Cult @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 5 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all Cult @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"EH1preaTWBD4rOvx": {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 5 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"vXHZVb0Y7Hqu3uso": {
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 12 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"QHNRSEQmqOcaoXq4": {
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@
|
|||
"_id": "fsaBlCjTdq1jM23G",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 1 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"q8chow47nQLR9qeF": {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 5 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"DjbPQowW1OdBD9Zn": {
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 10 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"eo7J0v1B5zPHul1M": {
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@
|
|||
"_id": "1k5TmQIAunM7Bv32",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name] within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 2 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name] within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"aoQDb2m32NDxE6ZP": {
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@
|
|||
"_id": "K08WlZwGqzEo4idT",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 4 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"xTMNAHcoErKuR6TZ": {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 11 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"tvQetauskZoHDR5y": {
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@
|
|||
"_id": "R9vrwFNl5BD1YXJo",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 2 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"DJBNtd3hWjwsjPwq": {
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@
|
|||
"_id": "CQZQiEiRH70Br5Ge",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 3 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"ghgFZskDiizJDjcn": {
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@
|
|||
"_id": "wl9KKEpVWDBu62hU",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 1 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"Sz55uB8xkoNytLwJ": {
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@
|
|||
"_id": "WiobzuyvJ46zfsOv",
|
||||
"img": "icons/creatures/abilities/tail-strike-bone-orange.webp",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 2 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"ZC5pKIb9N82vgMWu": {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@
|
|||
"name": "Group Attack",
|
||||
"type": "feature",
|
||||
"system": {
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal 8 physical damage each. Combine this damage.</p>",
|
||||
"description": "<p><strong>Spend a Fear</strong> to choose a target and spotlight all @Lookup[@name]s within Close range of them. Those Minions move into Melee range of the target and make one shared attack roll. On a success, they deal @Lookup[@system.attack.damageFormula] physical damage each. Combine this damage.</p>",
|
||||
"resource": null,
|
||||
"actions": {
|
||||
"euP8VA4wvfsCpwN1": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue