Skip to content

Commit

Permalink
Automate Thaumaturge Regalia aura and other benefits (#17694)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrogrullada authored Dec 15, 2024
1 parent e115be6 commit 0153389
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 0 deletions.
103 changes: 103 additions & 0 deletions packs/classfeatures/regalia.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,109 @@
"allowDuplicate": false,
"key": "GrantItem",
"uuid": "Compendium.pf2e.equipment-srd.Item.Regalia Implement"
},
{
"key": "FlatModifier",
"predicate": [
"implement:regalia:equipped"
],
"selector": [
"deception",
"diplomacy",
"intimidation"
],
"type": "circumstance",
"value": 1
},
{
"effects": [
{
"affects": "allies",
"predicate": [
{
"not": "parent:tag:thaumaturge-implement-adept"
}
],
"uuid": "Compendium.pf2e.feat-effects.Item.Effect: Regalia"
},
{
"affects": "allies",
"alterations": [
{
"mode": "add",
"property": "other-tags",
"value": "adept-benefit"
}
],
"predicate": [
"parent:tag:thaumaturge-implement-adept",
{
"not": "parent:tag:thaumaturge-implement-paragon"
}
],
"uuid": "Compendium.pf2e.feat-effects.Item.Effect: Regalia"
},
{
"affects": "allies",
"alterations": [
{
"mode": "add",
"property": "other-tags",
"value": "adept-benefit"
},
{
"mode": "add",
"property": "other-tags",
"value": "paragon-benefit"
}
],
"predicate": [
"parent:tag:thaumaturge-implement-paragon"
],
"uuid": "Compendium.pf2e.feat-effects.Item.Effect: Regalia"
}
],
"key": "Aura",
"predicate": [
"implement:regalia:equipped"
],
"radius": 15,
"traits": [
"emotion",
"visual",
"mental"
]
},
{
"key": "AdjustModifier",
"mode": "upgrade",
"predicate": [
"parent:tag:thaumaturge-implement-adept"
],
"selectors": [
"deception",
"diplomacy",
"intimidation"
],
"slug": "regalia",
"value": 2
},
{
"adjustment": {
"criticalFailure": "to-failure"
},
"key": "AdjustDegreeOfSuccess",
"predicate": [
"parent:tag:thaumaturge-implement-paragon",
{
"or": [
"action:coerce",
"action:make-an-impression",
"action:request"
]
}
],
"selector": "skill-check"
}
],
"traits": {
Expand Down
147 changes: 147 additions & 0 deletions packs/feat-effects/effect-regalia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"_id": "fOypEG6eeTwfM6c3",
"img": "icons/commodities/gems/pearl-red-gold.webp",
"name": "Effect: Regalia",
"system": {
"description": {
"value": "<p>Granted by @UUID[Compendium.pf2e.classfeatures.Item.Regalia]</p>\n<p>You gain a +1 status bonus to saving throws against fear. If the origin has Regalia as an adept implement, this status bonus applies to mental effects, and you gain a status bonus to damage rolls.</p>\n<p>If the origin has Regalia as a paragon implement, you aren't off-guard from being flanked unless the origin is flanked, and the status penalty you take from being clumsy, enfeebled, frightened, sickened, or stupefied is reduced by 1, unless the origin is affected by the same condition.</p>"
},
"duration": {
"expiry": null,
"sustained": false,
"unit": "unlimited",
"value": -1
},
"level": {
"value": 1
},
"publication": {
"license": "OGL",
"remaster": false,
"title": "Pathfinder Dark Archive"
},
"rules": [
{
"key": "FlatModifier",
"predicate": [
{
"or": [
"item:trait:fear",
{
"and": [
"item:trait:mental",
"parent:tag:adept-benefit"
]
}
]
}
],
"selector": "saving-throw",
"slug": "regalia-aura",
"type": "status",
"value": 1
},
{
"key": "RollOption",
"label": "PF2E.SpecificRule.Thaumaturge.Implement.Regalia.UnflankableToggle",
"option": "regalia:origin-is-flanked",
"predicate": [
{
"not": "self:signature:{item|origin.signature}"
},
"parent:tag:paragon-benefit"
],
"toggleable": true
},
{
"key": "ActiveEffectLike",
"mode": "override",
"path": "system.attributes.flanking.flankable",
"predicate": [
{
"not": "regalia:origin-is-flanked"
}
],
"value": false
},
{
"key": "AdjustModifier",
"mode": "add",
"predicate": [
"parent:tag:paragon-benefit",
{
"or": [
{
"and": [
"penalty:slug:clumsy",
"self:condition:clumsy",
{
"not": "parent:origin:condition:clumsy"
}
]
},
{
"and": [
"penalty:slug:enfeebled",
"self:condition:enfeebled",
{
"not": "parent:origin:condition:enfeebled"
}
]
},
{
"and": [
"penalty:slug:frightened",
"self:condition:frightened",
{
"not": "parent:origin:condition:frightened"
}
]
},
{
"and": [
"penalty:slug:sickened",
"self:condition:sickened",
{
"not": "parent:origin:condition:sickened"
}
]
},
{
"and": [
"penalty:slug:stupefied",
"self:condition:stupefied",
{
"not": "parent:origin:condition:stupefied"
}
]
}
]
}
],
"selector": "all",
"value": 1
},
{
"key": "FlatModifier",
"predicate": [
"parent:tag:adept-benefit"
],
"selector": "damage",
"type": "status",
"value": "ternary(gte(@item.origin.level,17),4,ternary(gte(@item.origin.level,11),3,2))"
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"value": []
}
},
"type": "effect"
}
3 changes: 3 additions & 0 deletions static/lang/re-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5716,6 +5716,9 @@
"LightToggle": "Light lantern implement"
},
"Prompt": "Select an implement.",
"Regalia": {
"UnflankableToggle": "Regalia owner is being flanked."
},
"Weapon": {
"Adept": {
"Note": "You deal @Damage[1[@item.system.damage.damageType]] damage, possibly applying any bonus damage due to the target's weakness."
Expand Down

0 comments on commit 0153389

Please sign in to comment.