Skip to content

Commit

Permalink
Add variant effect to PFS earplugs and correct links between effects …
Browse files Browse the repository at this point in the history
…and items (foundryvtt#4457)
  • Loading branch information
TMunsie authored Oct 13, 2022
1 parent 7fe15f3 commit 8d63ac3
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 4 deletions.
57 changes: 57 additions & 0 deletions packs/data/equipment-effects.db/effect-earplugs-pfs-guide.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"_id": "NE7Fm5YnUhD4ySX3",
"img": "systems/pf2e/icons/equipment/adventuring-gear/earplugs.webp",
"name": "Effect: Earplugs (PFS Guide)",
"system": {
"badge": null,
"description": {
"value": "<p>Grants a +1 item bonus to saves vs. auditory effects and a -2 penalty to perception checks that rely on hearing.</p><p>Granted by @UUID[Compendium.pf2e.equipment-srd.iYiA6CMR1N2E2Ny2]{Earplugs (PFS Guide)}</p>"
},
"duration": {
"expiry": "turn-start",
"sustained": false,
"unit": "unlimited",
"value": -1
},
"level": {
"value": 0
},
"rules": [
{
"key": "FlatModifier",
"predicate": [
"auditory"
],
"selector": "saving-throw",
"type": "item",
"value": 1
},
{
"key": "FlatModifier",
"predicate": [
"auditory"
],
"selector": "perception",
"type": "item",
"value": -2
}
],
"source": {
"value": "Pathfinder Lost Omens: Pathfinder Society Guide"
},
"start": {
"initiative": null,
"value": 0
},
"target": null,
"tokenIcon": {
"show": true
},
"traits": {
"custom": "",
"rarity": "common",
"value": []
}
},
"type": "effect"
}
5 changes: 3 additions & 2 deletions packs/data/equipment-effects.db/effect-earplugs.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"_id": "NE7Fm5YnUhD4ySX3",
"_id": "hPxrIpuL54XRlA2h",
"img": "systems/pf2e/icons/equipment/adventuring-gear/earplugs.webp",
"name": "Effect: Earplugs",
"system": {
"badge": null,
"description": {
"value": "<p>Granted by @Compendium[pf2e.equipment-srd.Earplugs]{Earplugs}</p>"
},
Expand All @@ -24,7 +25,7 @@
],
"selector": "saving-throw",
"type": "item",
"value": 1
"value": 2
},
{
"key": "FlatModifier",
Expand Down
2 changes: 1 addition & 1 deletion packs/data/equipment.db/earplugs-pfs-guide.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"baseItem": null,
"containerId": null,
"description": {
"value": "<p>Made of waxed cotton or cork, earplugs give you a +1 item bonus to saves against effects with the auditory trait. The earplugs make it difficult to hear, however, imposing a -2 item penalty on Perception checks involving sound.</p>\n<p>Inserting or removing the earplugs requires an Interact action.</p>\n<p>@Compendium[pf2e.equipment-effects.Effect: Earplugs]{Effect: Earplugs}</p>"
"value": "<p>Made of waxed cotton or cork, earplugs give you a +1 item bonus to saves against effects with the auditory trait. The earplugs make it difficult to hear, however, imposing a -2 item penalty on Perception checks involving sound.</p>\n<p>Inserting or removing the earplugs requires an Interact action.</p>\n<p>@Compendium[pf2e.equipment-effects.Effect: Earplugs]{Effect: Earplugs (PFS Guide)}</p>"
},
"equippedBulk": {
"value": ""
Expand Down
2 changes: 1 addition & 1 deletion packs/data/equipment.db/earplugs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"baseItem": null,
"containerId": "null",
"description": {
"value": "<p>These small pieces of cloth and stuffing have been crafted to dramatically muffle sound and easily slide into and out of the ear canals of humanoid creatures. You can insert or remove earplugs from your ears or a willing creature's ears with a single Interact action using one hand. They take a -2 circumstance penalty to all auditory Perception checks but also gain a +2 circumstance bonus to saving throws against auditory effects.</p>"
"value": "<p>These small pieces of cloth and stuffing have been crafted to dramatically muffle sound and easily slide into and out of the ear canals of humanoid creatures. You can insert or remove earplugs from your ears or a willing creature's ears with a single Interact action using one hand. They take a -2 circumstance penalty to all auditory Perception checks but also gain a +2 circumstance bonus to saving throws against auditory effects.</p>\n<p>@UUID[Compendium.pf2e.equipment-effects.hPxrIpuL54XRlA2h]{Effect: Earplugs}</p>"
},
"equippedBulk": {
"value": ""
Expand Down

0 comments on commit 8d63ac3

Please sign in to comment.