Skip to content

Commit

Permalink
Add avert gaze action object (foundryvtt#12547)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaj-a committed Dec 28, 2023
1 parent b2a6765 commit 1edde29
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
47 changes: 47 additions & 0 deletions packs/other-effects/effect-avert-gaze.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"_id": "ZXUOdZqUW22OX3ge",
"img": "icons/magic/perception/eye-ringed-glow-angry-small-red.webp",
"name": "Effect: Avert Gaze",
"system": {
"description": {
"value": "<p>You have averted your gaze from danger, such as a medusa's gaze. You gain a +2 circumstance bonus to saves against visual abilities that require you to look at a creature or object, such as a medusa's petrifying gaze.</p>"
},
"duration": {
"expiry": "turn-start",
"sustained": false,
"unit": "rounds",
"value": 1
},
"level": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": "Pathfinder Core Rulebook"
},
"rules": [
{
"key": "FlatModifier",
"selector": "saving-throw",
"value": 2,
"type": "circumstance",
"predicate": [
"visual"
]
}
],
"start": {
"initiative": null,
"value": 0
},
"tokenIcon": {
"show": true
},
"traits": {
"rarity": "common",
"value": []
}
},
"type": "effect"
}
2 changes: 2 additions & 0 deletions src/module/system/action-macros/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import * as treatPoison from "./medicine/treat-poison.ts";
import * as commandAnAnimal from "./nature/command-an-animal.ts";
import * as perform from "./performance/perform.ts";
import * as createForgery from "./society/create-forgery.ts";
import { avertGaze } from "./specialty-basic/avert-gaze.ts";
import { burrow } from "./specialty-basic/burrow.ts";
import { mount } from "./specialty-basic/mount.ts";
import * as concealAnObject from "./stealth/conceal-an-object.ts";
Expand Down Expand Up @@ -154,6 +155,7 @@ export const ActionMacros = {
export const SystemActions: Action[] = [
administerFirstAid.action,
aid,
avertGaze,
avoidNotice.action,
balance.action,
burrow,
Expand Down
13 changes: 13 additions & 0 deletions src/module/system/action-macros/specialty-basic/avert-gaze.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { SimpleAction } from "@actor/actions/index.ts";

const avertGaze = new SimpleAction({
cost: 1,
description: "PF2E.Actions.AvertGaze.Description",
effect: "Compendium.pf2e.other-effects.ZXUOdZqUW22OX3ge", // Effect: Avert Gaze
img: "icons/magic/perception/eye-ringed-glow-angry-small-red.webp",
name: "PF2E.Actions.AvertGaze.Title",
section: "basic",
slug: "avert-gaze",
});

export { avertGaze };

0 comments on commit 1edde29

Please sign in to comment.