Skip to content

Commit

Permalink
Add affix a talisman action object (foundryvtt#13129)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaj-a committed Jan 21, 2024
1 parent 05dddcc commit f5cddba
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/module/system/action-macros/exploration/affix-a-talisman.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { SimpleAction } from "@actor/actions/index.ts";

const affixATalisman = new SimpleAction({
description: "PF2E.Actions.AffixATalisman.Description",
name: "PF2E.Actions.AffixATalisman.Title",
slug: "affix-a-talisman",
traits: ["exploration", "manipulate"],
});

export { affixATalisman };
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 @@ -39,6 +39,7 @@ import { bonMot } from "./diplomacy/bon-mot.ts";
import * as gatherInformation from "./diplomacy/gather-information.ts";
import * as makeAnImpression from "./diplomacy/make-an-impression.ts";
import * as request from "./diplomacy/request.ts";
import { affixATalisman } from "./exploration/affix-a-talisman.ts";
import * as avoidNotice from "./exploration/avoid-notice.ts";
import * as senseDirection from "./exploration/sense-direction.ts";
import * as track from "./exploration/track.ts";
Expand Down Expand Up @@ -162,6 +163,7 @@ export const ActionMacros = {

export const SystemActions: Action[] = [
administerFirstAid.action,
affixATalisman,
aid,
arrestAFall,
avertGaze,
Expand Down
4 changes: 4 additions & 0 deletions static/lang/action-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
"UnknownVariant": "Unknown variant {variant} used for Administer First Aid, use one of {variants}."
}
},
"AffixATalisman": {
"Description": "<p><strong>Requirements</strong> You must use a @UUID[Compendium.pf2e.equipment-srd.Item.vLGDUFrg4yGzpTQX]{repair toolkit}.</p><hr><p>You spend 10 minutes affixing a talisman to an item, placing the item on a stable surface and using the repair toolkit with both hands. You can also use this activity to remove a talisman. Attaching more than one talisman to an item deactivates all the talismans. They must be removed and re-affixed before they can be used again.</p>",
"Title": "Affix a Talisman"
},
"Aid": {
"Description": "<p>You try to help your ally with a task. To use this reaction, you must first prepare to help, usually by using an action during your turn. You must explain to the GM exactly how you're trying to help, and they determine whether you can Aid your ally.</p><p>When you use your Aid reaction, attempt a skill check or attack roll of a type decided by the GM. The typical DC is 15, but the GM might adjust this DC for particularly hard or easy tasks. The GM can add any relevant traits to your preparatory action or to your Aid reaction depending on the situation, or even allow you to Aid checks other than skill checks and attack rolls.</p><p><strong>Critical Success</strong> You grant your ally a +2 circumstance bonus to the triggering check. If you're a master with the check you attempted, the bonus is +3, and if you're legendary, it's +4.</p><p><strong>Success</strong> You grant your ally a +1 circumstance bonus to the triggering check.</p><p><strong>Critical Failure</strong> Your ally takes a –1 circumstance penalty to the triggering check.</p>",
"Notes": {
Expand Down

0 comments on commit f5cddba

Please sign in to comment.