From 1edde29bee5f8b3ea13ee9ddaa7567278a480a60 Mon Sep 17 00:00:00 2001 From: Nikolaj Andresen Date: Fri, 29 Dec 2023 00:47:36 +0100 Subject: [PATCH] Add avert gaze action object (#12547) --- packs/other-effects/effect-avert-gaze.json | 47 +++++++++++++++++++ src/module/system/action-macros/index.ts | 2 + .../specialty-basic/avert-gaze.ts | 13 +++++ 3 files changed, 62 insertions(+) create mode 100644 packs/other-effects/effect-avert-gaze.json create mode 100644 src/module/system/action-macros/specialty-basic/avert-gaze.ts diff --git a/packs/other-effects/effect-avert-gaze.json b/packs/other-effects/effect-avert-gaze.json new file mode 100644 index 00000000000..8a92263ddb9 --- /dev/null +++ b/packs/other-effects/effect-avert-gaze.json @@ -0,0 +1,47 @@ +{ + "_id": "ZXUOdZqUW22OX3ge", + "img": "icons/magic/perception/eye-ringed-glow-angry-small-red.webp", + "name": "Effect: Avert Gaze", + "system": { + "description": { + "value": "

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.

" + }, + "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" +} diff --git a/src/module/system/action-macros/index.ts b/src/module/system/action-macros/index.ts index d95b4161d50..22ee1c43fc8 100644 --- a/src/module/system/action-macros/index.ts +++ b/src/module/system/action-macros/index.ts @@ -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"; @@ -154,6 +155,7 @@ export const ActionMacros = { export const SystemActions: Action[] = [ administerFirstAid.action, aid, + avertGaze, avoidNotice.action, balance.action, burrow, diff --git a/src/module/system/action-macros/specialty-basic/avert-gaze.ts b/src/module/system/action-macros/specialty-basic/avert-gaze.ts new file mode 100644 index 00000000000..11c367eb1aa --- /dev/null +++ b/src/module/system/action-macros/specialty-basic/avert-gaze.ts @@ -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 };