Skip to content

Commit

Permalink
Add fly action object (foundryvtt#12546)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaj-a committed Dec 29, 2023
1 parent 2a3965f commit f2679e5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
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 @@ -54,6 +54,7 @@ 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 { fly } from "./specialty-basic/fly.ts";
import { mount } from "./specialty-basic/mount.ts";
import { sustain } from "./specialty-basic/sustain.ts";
import * as concealAnObject from "./stealth/conceal-an-object.ts";
Expand Down Expand Up @@ -175,6 +176,7 @@ export const SystemActions: Action[] = [
dropProne,
escape.action,
feint.action,
fly,
forceOpen.action,
gatherInformation.action,
grapple.action,
Expand Down
12 changes: 12 additions & 0 deletions src/module/system/action-macros/specialty-basic/fly.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { SimpleAction } from "@actor/actions/index.ts";

const fly = new SimpleAction({
cost: 1,
description: "PF2E.Actions.Fly.Description",
name: "PF2E.Actions.Fly.Title",
section: "specialty-basic",
slug: "fly",
traits: ["move"],
});

export { fly };
2 changes: 1 addition & 1 deletion static/lang/action-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"Title": "Feint"
},
"Fly": {
"Description": "<p>You move through the air up to your fly Speed. Moving upward (straight up or diagonally) uses the rules for moving through difficult terrain. You can move straight down 10 feet for every 5 feet of movement you spend. If you Fly to the ground, you don't take falling damage. You can use an action to Fly 0 feet to hover in place. If you're airborne at the end of your turn and didn't use a Fly action this round, you fall.</p>",
"Description": "<p><strong>Requirements</strong> You have a fly Speed.</p><hr><p>You move through the air up to your fly Speed. Moving upward (straight up or diagonally) uses the rules for moving through difficult terrain. You can move straight down 10 feet for every 5 feet of movement you spend. If you Fly to the ground, you don't take falling damage. You can use an action to Fly 0 feet to hover in place. If you're airborne at the end of your turn and didn't use a Fly action this round, you fall.</p>",
"Title": "Fly"
},
"ForceOpen": {
Expand Down

0 comments on commit f2679e5

Please sign in to comment.