Skip to content

Commit

Permalink
Automate several Spirit Warrior archetype features (#16322)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrogrullada authored Aug 30, 2024
1 parent d781890 commit 4a4ebd7
Show file tree
Hide file tree
Showing 16 changed files with 322 additions and 20 deletions.
20 changes: 18 additions & 2 deletions packs/actions/disarming-interception.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,30 @@
},
"category": "defensive",
"description": {
"value": "<p><strong>Requirements</strong> You have your fist positioned to parry</p>\n<p><strong>Trigger</strong> An enemy within your reach targets you or an ally with a weapon Strike</p><hr /><p><strong>Effect</strong> s You attempt to @UUID[Compendium.pf2e.actionspf2e.Item.Disarm] the weapon the enemy is attacking with. You gain a +2 status bonus to this Disarm check, and if the check is successful, the triggering attack is disrupted. If the Disarm attempt is a critical success and you have a hand free, you can catch the disarmed weapon in your hand instead of it falling to the ground in the target's space.</p>"
"value": "<p><strong>Requirements</strong> You have your fist positioned to parry</p>\n<p><strong>Trigger</strong> An enemy within your reach targets you or an ally with a weapon Strike</p><hr /><p><strong>Effect</strong> You attempt to @UUID[Compendium.pf2e.actionspf2e.Item.Disarm] the weapon the enemy is attacking with. You gain a +2 status bonus to this Disarm check, and if the check is successful, the triggering attack is disrupted. If the Disarm attempt is a critical success and you have a hand free, you can catch the disarmed weapon in your hand instead of it falling to the ground in the target's space.</p>"
},
"publication": {
"license": "ORC",
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [],
"rules": [
{
"key": "RollOption",
"option": "disarming-interception",
"toggleable": true
},
{
"key": "FlatModifier",
"predicate": [
"action:disarm",
"disarming-interception"
],
"selector": "athletics",
"type": "status",
"value": 2
}
],
"traits": {
"value": []
}
Expand Down
13 changes: 11 additions & 2 deletions packs/actions/overwhelming-combination.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,23 @@
},
"category": "offensive",
"description": {
"value": "<p><strong>Requirements</strong> You're wielding a one-handed melee weapon or a melee weapon with the agile or finesse trait</p><hr /><p><strong>Effect</strong> s Make two Strikes against a target within your reach, one with the required weapon and one with your fist unarmed attack. If both hit the same target, combine their damage for the purposes of its resistances and weaknesses. Apply your multiple attack penalty to each Strike normally.</p>"
"value": "<p><strong>Requirements</strong> You're wielding a one-handed melee weapon or a melee weapon with the agile or finesse trait</p><hr /><p><strong>Effect</strong> Make two Strikes against a target within your reach, one with the required weapon and one with your fist unarmed attack. If both hit the same target, combine their damage for the purposes of its resistances and weaknesses. Apply your multiple attack penalty to each Strike normally.</p>"
},
"publication": {
"license": "ORC",
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [],
"rules": [
{
"key": "RollOption",
"option": "overwhelming-combination",
"predicate": [
"feat:kaiju-defense-oath"
],
"toggleable": true
}
],
"traits": {
"value": [
"flourish"
Expand Down
41 changes: 41 additions & 0 deletions packs/feat-effects/effect-gods-palm-temporary-hit-points.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"_id": "KqyxpiGpEuju3d4z",
"img": "icons/magic/holy/prayer-hands-glowing-yellow-green.webp",
"name": "Effect: God's Palm (Temporary Hit Points)",
"system": {
"description": {
"value": "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.Gods' Palm]</p>\n<p>You gain temporary Hit Points equal to half your level.</p>"
},
"duration": {
"expiry": "turn-start",
"sustained": false,
"unit": "rounds",
"value": 1
},
"level": {
"value": 1
},
"publication": {
"license": "ORC",
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [
{
"key": "TempHP",
"value": "floor(@actor.level/2)"
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"value": []
}
},
"type": "effect"
}
46 changes: 46 additions & 0 deletions packs/feat-effects/effect-sheltering-pulse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"_id": "m0hi0jpIF6tNJzzo",
"img": "icons/magic/defensive/barrier-shield-dome-blue-purple.webp",
"name": "Effect: Sheltering Pulse",
"system": {
"description": {
"value": "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.Sheltering Pulse]</p>\n<p>You gain a +1 status bonus to AC.</p>"
},
"duration": {
"expiry": "turn-start",
"sustained": false,
"unit": "rounds",
"value": 3
},
"level": {
"value": 1
},
"publication": {
"license": "ORC",
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [
{
"key": "FlatModifier",
"predicate": [
"sheltering-pulse"
],
"selector": "ac",
"type": "status",
"value": 1
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"value": []
}
},
"type": "effect"
}
2 changes: 1 addition & 1 deletion packs/feats/cutting-heaven-crushing-earth.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"category": "class",
"description": {
"value": "<p>Your skill in combining fist and blade has grown into a seamless art where each attack makes an opponent more vulnerable to the next. As long as you have invested and are wearing a set of handwraps of mighty blows, you also apply their runes to a single weapon you're wielding that can be used with your Overwhelming Combination ability. You gain the following benefits.</p><ul><li>When you successfully Strike an opponent with this weapon, it's @UUID[Compendium.pf2e.conditionitems.Item.Off-Guard] to the next Strike you make against it with a fist unarmed attack before the end of your next turn.</li><li>When you successfully Strike an opponent with your fist unarmed attack, it's off-guard to the next Strike you make against it with a one-handed, agile, or finesse melee weapon before the end of your next turn.</li></ul>"
"value": "<p>Your skill in combining fist and blade has grown into a seamless art where each attack makes an opponent more vulnerable to the next. As long as you have invested and are wearing a set of handwraps of mighty blows, you also apply their runes to a single weapon you're wielding that can be used with your @UUID[Compendium.pf2e.actionspf2e.Item.Overwhelming Combination] ability. You gain the following benefits.</p><ul><li>When you successfully Strike an opponent with this weapon, it's @UUID[Compendium.pf2e.conditionitems.Item.Off-Guard] to the next Strike you make against it with a fist unarmed attack before the end of your next turn.</li><li>When you successfully Strike an opponent with your fist unarmed attack, it's off-guard to the next Strike you make against it with a one-handed, agile, or finesse melee weapon before the end of your next turn.</li></ul>"
},
"level": {
"value": 6
Expand Down
27 changes: 23 additions & 4 deletions packs/feats/gods-palm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"name": "Gods' Palm",
"system": {
"actionType": {
"value": "passive"
"value": "action"
},
"actions": {
"value": null
"value": 1
},
"category": "class",
"description": {
"value": "<p>You control your spirit energy when you attack, using it to reinforce yourself or to thrust past your enemy's physical defenses. Make a fist Strike; on a success, you can choose to either deal all damage from the attack as spirit damage, or deal damage as normal but gain a number of temporary Hit Points equal to half your level that last for 1 round.</p>"
"value": "<p>You control your spirit energy when you attack, using it to reinforce yourself or to thrust past your enemy's physical defenses. Make a fist Strike; on a success, you can choose to either deal all damage from the attack as spirit damage, or deal damage as normal but gain a number of temporary Hit Points equal to half your level that last for 1 round.</p>\n<p>@UUID[Compendium.pf2e.feat-effects.Item.Effect: God's Palm (Temporary Hit Points)]</p>"
},
"level": {
"value": 8
Expand All @@ -28,7 +28,26 @@
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [],
"rules": [
{
"key": "RollOption",
"label": "PF2E.SpecificRule.SpiritWarrior.SpiritDamage",
"option": "spirit-warrior-spirit-damage",
"toggleable": true
},
{
"key": "DamageAlteration",
"mode": "override",
"predicate": [
"spirit-warrior-spirit-damage"
],
"property": "damage-type",
"selectors": [
"fist-damage"
],
"value": "spirit"
}
],
"traits": {
"rarity": "common",
"value": [
Expand Down
9 changes: 9 additions & 0 deletions packs/feats/intercepting-hand.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
"allowDuplicate": false,
"key": "GrantItem",
"uuid": "Compendium.pf2e.actionspf2e.Item.Disarming Interception"
},
{
"definition": [
"item:slug:fist"
],
"key": "AdjustStrike",
"mode": "add",
"property": "weapon-traits",
"value": "disarm"
}
],
"traits": {
Expand Down
84 changes: 82 additions & 2 deletions packs/feats/kaiju-defense-oath.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"category": "class",
"description": {
"value": "<p>You've sworn an oath to defend the helpless from dangerous titanic beasts, including kaiju that roam the surface of Golarion. Attacks made as part of your Overwhelming Combination ability gain a +4 circumstance bonus to damage against a creature at least 2 sizes larger than you, or +6 if you have master proficiency with the weapon you used. You also gain a +2 circumstance bonus to saving throws and DCs against kaiju hazards. You gain the following edict.</p>\n<p><strong>Edict</strong> You must do everything within your power to protect others from massive creatures they can't defend themselves from; in the event the victims are evil or actively trying to harm you or other innocents, you don't have to save them.</p>"
"value": "<p>You've sworn an oath to defend the helpless from dangerous titanic beasts, including kaiju that roam the surface of Golarion. Attacks made as part of your @UUID[Compendium.pf2e.actionspf2e.Item.Overwhelming Combination] ability gain a +4 circumstance bonus to damage against a creature at least 2 sizes larger than you, or +6 if you have master proficiency with the weapon you used. You also gain a +2 circumstance bonus to saving throws and DCs against kaiju hazards. You gain the following edict.</p>\n<p><strong>Edict</strong> You must do everything within your power to protect others from massive creatures they can't defend themselves from; in the event the victims are evil or actively trying to harm you or other innocents, you don't have to save them.</p>"
},
"level": {
"value": 4
Expand All @@ -28,7 +28,87 @@
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [],
"rules": [
{
"key": "FlatModifier",
"predicate": [
"overwhelming-combination",
{
"or": [
{
"and": [
"self:size:0",
{
"gte": [
"target:size",
2
]
}
]
},
{
"and": [
"self:size:1",
{
"gte": [
"target:size",
3
]
}
]
},
{
"and": [
"self:size:2",
{
"gte": [
"target:size",
4
]
}
]
},
{
"and": [
"self:size:3",
"target:size:5"
]
}
]
}
],
"selector": "strike-damage",
"slug": "kaiju-defense-oath-damage-bonus",
"type": "circumstance",
"value": 4
},
{
"key": "AdjustModifier",
"mode": "upgrade",
"predicate": [
{
"gte": [
"item:proficiency:rank",
3
]
}
],
"selector": "strike-damage",
"slug": "kaiju-defense-oath-damage-bonus",
"value": 6
},
{
"key": "FlatModifier",
"predicate": [
"origin:type:hazard",
"origin:trait:kaiju"
],
"selector": "saving-throw",
"slug": "kaiju-defense-oath-save-bonus",
"type": "circumstance",
"value": 2
}
],
"traits": {
"rarity": "common",
"value": [
Expand Down
19 changes: 18 additions & 1 deletion packs/feats/sacred-wilds-oath.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,24 @@
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [],
"rules": [
{
"key": "FlatModifier",
"predicate": [
"action:make-an-impression",
{
"or": [
"target:trait:beast",
"target:trait:fey",
"target:trait:kami"
]
}
],
"selector": "diplomacy",
"type": "circumstance",
"value": 2
}
],
"traits": {
"rarity": "common",
"value": [
Expand Down
2 changes: 1 addition & 1 deletion packs/feats/sheltering-pulse.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"category": "class",
"description": {
"value": "<p>You thrust your hand or weapon into the ground and release a pulse that creates a sheltering nexus of energy for you and your allies. Choose an unoccupied square within 15 feet. The nexus appears in a @Template[type:emanation|distance:15] around that square and lasts for 3 rounds. You and your allies gain a +1 status bonus to AC while in the area.</p>"
"value": "<p>You thrust your hand or weapon into the ground and release a pulse that creates a sheltering nexus of energy for you and your allies. Choose an unoccupied square within 15 feet. The nexus appears in a @Template[type:emanation|distance:15] around that square and lasts for 3 rounds. You and your allies gain a +1 status bonus to AC while in the area.</p>\n<p>@UUID[Compendium.pf2e.feat-effects.Item.Effect: Sheltering Pulse]</p>"
},
"level": {
"value": 8
Expand Down
20 changes: 18 additions & 2 deletions packs/feats/spirit-of-the-blade.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"category": "class",
"description": {
"value": "<p>You charge your blade with spiritual energy, allowing it to cut through spirits and fiends with fearsome efficiency. The next Strike you make with a melee weapon or fist unarmed attack deals an additional @Damage[1d6[spirit]] damage. This bonus damage is lost if you don't attempt a Strike before the start of your next turn.</p>\n<p>At 10th level, you deal an additional @Damage[2d6[spirit]] damage with this ability, and at 18th level, you deal an additional @Damage[3d6[spirit]] damage.</p>"
"value": "<p>You charge your blade with spiritual energy, allowing it to cut through spirits and fiends with fearsome efficiency. The next Strike you make with a melee weapon or fist unarmed attack deals an additional 1d6 spirit damage. This bonus damage is lost if you don't attempt a Strike before the start of your next turn.</p>\n<p>At 10th level, you deal an additional 2d6 spirit damage with this ability, and at 18th level, you deal an additional 3d6 spirit damage.</p>"
},
"level": {
"value": 6
Expand All @@ -28,7 +28,23 @@
"remaster": true,
"title": "Pathfinder Lost Omens: Tian Xia Character Guide"
},
"rules": [],
"rules": [
{
"key": "RollOption",
"option": "spirit-of-the-blade",
"toggleable": true
},
{
"damageType": "spirit",
"diceNumber": "ternary(gte(@actor.level,18),3,ternary(gte(@actor.level,10),2,1))",
"dieSize": "d6",
"key": "DamageDice",
"predicate": [
"spirit-of-the-blade"
],
"selector": "melee-strike-damage"
}
],
"traits": {
"rarity": "common",
"value": [
Expand Down
Loading

0 comments on commit 4a4ebd7

Please sign in to comment.