Skip to content

Commit

Permalink
Automate Curse Maelstrom Archetype features (#15106)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrogrullada committed Jun 19, 2024
1 parent ba3949e commit 7f841be
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packs/actions/expel-maelstrom.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"category": "offensive",
"description": {
"value": "<p><strong>Requirements</strong> You are in a curse maelstrom state</p>\n<hr />\n<p><strong>Effect</strong> You expel the maelstrom from your body, sending the energy to reside in one unlucky creature within 60 feet. Your curse maelstrom state ends. The result depends on the creature's Will save.</p>\n<hr />\n<p><strong>Critical Success</strong> The creature is unaffected, and the curse's energy dissipates harmlessly.</p>\n<p><strong>Success</strong> The creature comes to house the maelstrom's wrath within it. It takes a -1 status penalty to all saving throws and skill checks for 1 minute.</p>\n<p><strong>Failure</strong> The maelstrom strikes deep into the creature's soul. It takes a -2 status penalty to all saving throws and skill checks for 10 minutes.</p>\n<p><strong>Critical Failure</strong> The maelstrom pitches the creature into a single fit of utter misfortune before burrowing into its soul. As failure, but the creature also must roll twice and take the lower result on its next saving throw or skill check; this is a misfortune effect.</p>"
"value": "<p><strong>Requirements</strong> You are in a curse maelstrom state</p><hr /><p><strong>Effect</strong> You expel the maelstrom from your body, sending the energy to reside in one unlucky creature within 60 feet. Your curse maelstrom state ends. The result depends on the creature's @Check[will] save.</p><hr /><p><strong>Critical Success</strong> The creature is unaffected, and the curse's energy dissipates harmlessly.</p>\n<p><strong>Success</strong> The creature comes to house the maelstrom's wrath within it. It takes a -1 status penalty to all saving throws and skill checks for 1 minute.</p>\n<p>@UUID[Compendium.pf2e.feat-effects.Item.Effect: Expel Maelstrom (Success)]</p>\n<p><strong>Failure</strong> The maelstrom strikes deep into the creature's soul. It takes a -2 status penalty to all saving throws and skill checks for 10 minutes.</p>\n<p><strong>Critical Failure</strong> The maelstrom pitches the creature into a single fit of utter misfortune before burrowing into its soul. As failure, but the creature also must roll twice and take the lower result on its next saving throw or skill check; this is a misfortune effect.</p>\n<p>@UUID[Compendium.pf2e.feat-effects.Item.Effect: Expel Maelstrom (Failure or Critical Failure)]</p>"
},
"publication": {
"license": "OGL",
Expand Down
88 changes: 88 additions & 0 deletions packs/feat-effects/effect-curse-maelstrom-state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"_id": "85w9OI1gMd6uJRKh",
"img": "icons/magic/control/debuff-energy-hold-pink.webp",
"name": "Effect: Curse Maelstrom State",
"system": {
"badge": {
"type": "counter",
"value": 1
},
"description": {
"value": "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.Curse Maelstrom Dedication]</p>\n<p>All creatures other than you within a 10-foot emanation take a -1 status penalty to all saving throws and skill checks. You gain the Expel Maelstrom action.</p>"
},
"duration": {
"expiry": null,
"sustained": false,
"unit": "encounter",
"value": -1
},
"level": {
"value": 1
},
"publication": {
"license": "OGL",
"remaster": false,
"title": "Pathfinder Dark Archive"
},
"rules": [
{
"itemId": "{item|id}",
"key": "ItemAlteration",
"mode": "downgrade",
"predicate": [
{
"not": "feat:unnerving-expansion"
}
],
"property": "badge-max",
"value": 1
},
{
"effects": [
{
"includesSelf": false,
"uuid": "Compendium.pf2e.feat-effects.Item.Effect: Curse Maelstrom State"
}
],
"key": "Aura",
"predicate": [
"self:signature:{item|origin.signature}"
],
"radius": "5*@item.badge.value"
},
{
"hideIfDisabled": true,
"key": "FlatModifier",
"predicate": [
{
"not": "self:signature:{item|origin.signature}"
}
],
"selector": [
"saving-throw",
"skill-check"
],
"type": "status",
"value": -1
},
{
"key": "GrantItem",
"predicate": [
"self:signature:{item|origin.signature}"
],
"uuid": "Compendium.pf2e.actionspf2e.Item.Expel Maelstrom"
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"value": []
}
},
"type": "effect"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"_id": "lc8ez8O4eN73hNpR",
"img": "icons/magic/control/energy-stream-link-spiral-white.webp",
"name": "Effect: Expel Maelstrom (Failure or Critical Failure)",
"system": {
"description": {
"value": "<p>Granted by @UUID[Compendium.pf2e.actionspf2e.Item.Expel Maelstrom]</p>\n<p>The creature takes a -2 status penalty to all saving throws and skill checks for 10 minutes.</p>"
},
"duration": {
"expiry": "turn-start",
"sustained": false,
"unit": "minutes",
"value": 10
},
"level": {
"value": 1
},
"publication": {
"license": "OGL",
"remaster": false,
"title": "Pathfinder Dark Archive"
},
"rules": [
{
"choices": [
{
"label": "PF2E.Check.Result.Degree.Check.criticalFailure",
"value": "critical-failure"
},
{
"label": "PF2E.Check.Result.Degree.Check.failure",
"value": "failure"
}
],
"key": "ChoiceSet",
"prompt": "PF2E.SpecificRule.Prompt.DegreeOfSuccess",
"rollOption": "expel-maelstrom"
},
{
"key": "FlatModifier",
"selector": [
"saving-throw",
"skill-check"
],
"type": "status",
"value": -2
},
{
"key": "GrantItem",
"predicate": [
"expel-maelstrom:critical-failure"
],
"uuid": "Compendium.pf2e.feat-effects.Item.Effect: Expel Maelstrom (Misfortune)"
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"value": []
}
},
"type": "effect"
}
49 changes: 49 additions & 0 deletions packs/feat-effects/effect-expel-maelstrom-misfortune.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"_id": "N27voDwKbzs7EZVt",
"img": "icons/magic/control/energy-stream-link-spiral-white.webp",
"name": "Effect: Expel Maelstrom (Misfortune)",
"system": {
"description": {
"value": "<p>Granted by @UUID[Compendium.pf2e.actionspf2e.Item.Expel Maelstrom]</p>\n<p>The creature must roll twice and take the lower result on its next saving throw or skill check.</p>"
},
"duration": {
"expiry": null,
"sustained": false,
"unit": "unlimited",
"value": -1
},
"level": {
"value": 1
},
"publication": {
"license": "OGL",
"remaster": false,
"title": "Pathfinder Dark Archive"
},
"rules": [
{
"keep": "lower",
"key": "RollTwice",
"removeAfterRoll": true,
"selector": "saving-throw"
},
{
"keep": "lower",
"key": "RollTwice",
"removeAfterRoll": true,
"selector": "saving-throw"
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"value": []
}
},
"type": "effect"
}
46 changes: 46 additions & 0 deletions packs/feat-effects/effect-expel-maelstrom-success.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"_id": "fIRJftsmd83iSoR4",
"img": "icons/magic/control/energy-stream-link-spiral-white.webp",
"name": "Effect: Expel Maelstrom (Success)",
"system": {
"description": {
"value": "<p>Granted by @UUID[Compendium.pf2e.actionspf2e.Item.Expel Maelstrom]</p>\n<p>The creature takes a -1 status penalty to all saving throws and skill checks for 1 minute.</p>"
},
"duration": {
"expiry": "turn-start",
"sustained": false,
"unit": "minutes",
"value": 1
},
"level": {
"value": 1
},
"publication": {
"license": "OGL",
"remaster": false,
"title": "Pathfinder Dark Archive"
},
"rules": [
{
"key": "FlatModifier",
"selector": [
"saving-throw",
"skill-check"
],
"type": "status",
"value": -1
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"value": []
}
},
"type": "effect"
}
9 changes: 2 additions & 7 deletions packs/feats/curse-maelstrom-dedication.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"category": "class",
"description": {
"value": "<p>A horrible curse has left a lingering stain on your soul, and its effects continue to plague you even if the curse's other effects have ended. You can choose to suppress it, but if you instead let it manifest, you can channel its power in your favor. During an encounter, when you succeed at a check, the GM can offer to have you roll again, taking the second result. This is a misfortune effect. If you do so, you enter a curse maelstrom state. If the misfortune effect is somehow canceled or negated (by a fortune effect, for example), you don't enter a curse maelstrom state.</p>\n<p>In addition, the curse is jealous of its place within your soul and gladly lashes out whenever others dare to usurp that position, granting you its power without the usual price. If a foe places a misfortune effect on your roll and the effect applies to your roll, you enter a curse maelstrom state, and if you fail a saving throw against a foe's curse effect and are affected by the curse, you also enter a curse maelstrom state. No matter the source, you can only enter a curse maelstrom state during an encounter, and if you don't end the state on your own, it ends at the end of the encounter. Once it ends, you can't enter a curse maelstrom state again for 1 minute.</p>\n<p>While in a curse maelstrom state, you can't benefit from fortune effects, and they also don't cancel misfortune effects on you; they simply have no effect. While in this state, all creatures other than you within a @Template[type:emanation|distance:10] take a -1 status penalty to all saving throws and skill checks due to the storm of bad luck swirling out of your body. You gain the Expel Maelstrom action, which you can use to focus the brunt of your curses onto an unlucky target.</p>\n<p>@UUID[Compendium.pf2e.journals.JournalEntry.vx5FGEG34AxI2dow.JournalEntryPage.KRUWPDzuwG0LC26d]{Curse Maelstrom}</p>"
"value": "<p>A horrible curse has left a lingering stain on your soul, and its effects continue to plague you even if the curse's other effects have ended. You can choose to suppress it, but if you instead let it manifest, you can channel its power in your favor. During an encounter, when you succeed at a check, the GM can offer to have you roll again, taking the second result. This is a misfortune effect. If you do so, you enter a curse maelstrom state. If the misfortune effect is somehow canceled or negated (by a fortune effect, for example), you don't enter a curse maelstrom state.</p>\n<p>@UUID[Compendium.pf2e.feat-effects.Item.Effect: Curse Maelstrom State]</p>\n<p>In addition, the curse is jealous of its place within your soul and gladly lashes out whenever others dare to usurp that position, granting you its power without the usual price. If a foe places a misfortune effect on your roll and the effect applies to your roll, you enter a curse maelstrom state, and if you fail a saving throw against a foe's curse effect and are affected by the curse, you also enter a curse maelstrom state. No matter the source, you can only enter a curse maelstrom state during an encounter, and if you don't end the state on your own, it ends at the end of the encounter. Once it ends, you can't enter a curse maelstrom state again for 1 minute.</p>\n<p>While in a curse maelstrom state, you can't benefit from fortune effects, and they also don't cancel misfortune effects on you; they simply have no effect. While in this state, all creatures other than you within a @Template[type:emanation|distance:10] take a -1 status penalty to all saving throws and skill checks due to the storm of bad luck swirling out of your body. You gain the @UUID[Compendium.pf2e.actionspf2e.Item.Expel Maelstrom] action, which you can use to focus the brunt of your curses onto an unlucky target.</p>\n<p>@UUID[Compendium.pf2e.journals.JournalEntry.vx5FGEG34AxI2dow.JournalEntryPage.KRUWPDzuwG0LC26d]{Curse Maelstrom}</p>"
},
"level": {
"value": 2
Expand All @@ -28,12 +28,7 @@
"remaster": false,
"title": "Pathfinder Dark Archive"
},
"rules": [
{
"key": "GrantItem",
"uuid": "Compendium.pf2e.actionspf2e.Item.Expel Maelstrom"
}
],
"rules": [],
"traits": {
"rarity": "rare",
"value": [
Expand Down
2 changes: 1 addition & 1 deletion packs/feats/torrential-backlash.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"category": "class",
"description": {
"value": "<p><strong>Requirements</strong> You are in a curse maelstrom state.</p>\n<hr />\n<p>Calling upon forbidden practices, you release the curse from within yourself, allowing it free rein to destroy everything around you. All creatures within your curse maelstrom emanation except you take [[/r (@actor.level)d6[void]]]{1d6 void damage for each level} you have, with a @Check[type:fortitude|dc:resolve(@actor.system.attributes.classOrSpellDC.value)|basic:true] save. Your curse maelstrom state then ends.</p>"
"value": "<p><strong>Requirements</strong> You are in a curse maelstrom state.</p><hr /><p>Calling upon forbidden practices, you release the curse from within yourself, allowing it free rein to destroy everything around you. All creatures within your curse maelstrom emanation except you take @Damage[(@actor.level)d6[void]]{1d6 void damage for each level} you have, with a @Check[type:fortitude|dc:resolve(@actor.system.attributes.classOrSpellDC.value)|basic:true] save. Your curse maelstrom state then ends.</p>"
},
"level": {
"value": 10
Expand Down

0 comments on commit 7f841be

Please sign in to comment.