From cd9e4a5d4da580b2e327b209c2cc551014cc299e Mon Sep 17 00:00:00 2001 From: Jamz Date: Sat, 24 Feb 2024 21:33:21 -0600 Subject: [PATCH] Move macro scripts to scripts dir --- scripts/hooks-for-nerps.js | 22 +++++++++---------- .../macros}/adjust-shield-hp.js | 0 {macros => scripts/macros}/combine-damage.js | 0 .../macros}/counteract-check.js | 0 .../macros}/create-generic-timer.js | 0 .../macros}/exploration-activities.js | 2 +- .../macros}/export-actor-with-images.js | 0 .../macros}/measure-token-distances.js | 0 .../macros}/repair-targets-shield.js | 2 +- .../macros}/roll-perception-checks.js | 0 .../macros}/set-token-bars-and-nameplates.js | 0 11 files changed, 13 insertions(+), 13 deletions(-) rename {macros => scripts/macros}/adjust-shield-hp.js (100%) rename {macros => scripts/macros}/combine-damage.js (100%) rename {macros => scripts/macros}/counteract-check.js (100%) rename {macros => scripts/macros}/create-generic-timer.js (100%) rename {macros => scripts/macros}/exploration-activities.js (98%) rename {macros => scripts/macros}/export-actor-with-images.js (100%) rename {macros => scripts/macros}/measure-token-distances.js (100%) rename {macros => scripts/macros}/repair-targets-shield.js (99%) rename {macros => scripts/macros}/roll-perception-checks.js (100%) rename {macros => scripts/macros}/set-token-bars-and-nameplates.js (100%) diff --git a/scripts/hooks-for-nerps.js b/scripts/hooks-for-nerps.js index c4b0921..b64b95e 100644 --- a/scripts/hooks-for-nerps.js +++ b/scripts/hooks-for-nerps.js @@ -1,16 +1,16 @@ -import {adjustShieldHP} from "../macros/adjust-shield-hp.js"; -import {combineDamage} from "../macros/combine-damage.js"; -import {createGenericTimer} from "../macros/create-generic-timer.js"; -import {explorationActivities} from "../macros/exploration-activities.js"; -import {exportActorWithImages} from "../macros/export-actor-with-images.js"; -import {measureTokenDistance} from "../macros/measure-token-distances.js"; -import {repairTargetsShield} from "../macros/repair-targets-shield.js"; -import {rollPerceptionChecks} from "../macros/roll-perception-checks.js"; -import {setTokenBarsAndNameplates} from "../macros/set-token-bars-and-nameplates.js"; -import {counteractCheck} from "../macros/counteract-check.js"; +import {adjustShieldHP} from "./macros/adjust-shield-hp.js"; +import {combineDamage} from "./macros/combine-damage.js"; +import {createGenericTimer} from "./macros/create-generic-timer.js"; +import {explorationActivities} from "./macros/exploration-activities.js"; +import {exportActorWithImages} from "./macros/export-actor-with-images.js"; +import {measureTokenDistance} from "./macros/measure-token-distances.js"; +import {repairTargetsShield} from "./macros/repair-targets-shield.js"; +import {rollPerceptionChecks} from "./macros/roll-perception-checks.js"; +import {setTokenBarsAndNameplates} from "./macros/set-token-bars-and-nameplates.js"; +import {counteractCheck} from "./macros/counteract-check.js"; import {JOURNAL_MARKER, MODULE_NAME} from "./constants.js"; import {registerSettings} from "./settings-for-nerps.js"; -import {getSetting, setSetting} from "./utils/extensions.js"; +import {getSetting} from "./utils/extensions.js"; import {NerpsForFoundry, log} from "./nerps-for-foundry.js"; import {autoCorrectJournalContent} from "./autocorrect-journal-content.js" diff --git a/macros/adjust-shield-hp.js b/scripts/macros/adjust-shield-hp.js similarity index 100% rename from macros/adjust-shield-hp.js rename to scripts/macros/adjust-shield-hp.js diff --git a/macros/combine-damage.js b/scripts/macros/combine-damage.js similarity index 100% rename from macros/combine-damage.js rename to scripts/macros/combine-damage.js diff --git a/macros/counteract-check.js b/scripts/macros/counteract-check.js similarity index 100% rename from macros/counteract-check.js rename to scripts/macros/counteract-check.js diff --git a/macros/create-generic-timer.js b/scripts/macros/create-generic-timer.js similarity index 100% rename from macros/create-generic-timer.js rename to scripts/macros/create-generic-timer.js diff --git a/macros/exploration-activities.js b/scripts/macros/exploration-activities.js similarity index 98% rename from macros/exploration-activities.js rename to scripts/macros/exploration-activities.js index 1324eb3..8d31b75 100644 --- a/macros/exploration-activities.js +++ b/scripts/macros/exploration-activities.js @@ -1,4 +1,4 @@ -import {log} from "../scripts/nerps-for-foundry.js"; +import {log} from "../nerps-for-foundry.js"; export async function explorationActivities(token) { diff --git a/macros/export-actor-with-images.js b/scripts/macros/export-actor-with-images.js similarity index 100% rename from macros/export-actor-with-images.js rename to scripts/macros/export-actor-with-images.js diff --git a/macros/measure-token-distances.js b/scripts/macros/measure-token-distances.js similarity index 100% rename from macros/measure-token-distances.js rename to scripts/macros/measure-token-distances.js diff --git a/macros/repair-targets-shield.js b/scripts/macros/repair-targets-shield.js similarity index 99% rename from macros/repair-targets-shield.js rename to scripts/macros/repair-targets-shield.js index 55f534e..1f97f6f 100644 --- a/macros/repair-targets-shield.js +++ b/scripts/macros/repair-targets-shield.js @@ -1,4 +1,4 @@ -import {log} from "../scripts/nerps-for-foundry.js"; +import {log} from "../nerps-for-foundry.js"; export function repairTargetsShield(token) { ui.notifications.info("Add Reforging shield to function!") diff --git a/macros/roll-perception-checks.js b/scripts/macros/roll-perception-checks.js similarity index 100% rename from macros/roll-perception-checks.js rename to scripts/macros/roll-perception-checks.js diff --git a/macros/set-token-bars-and-nameplates.js b/scripts/macros/set-token-bars-and-nameplates.js similarity index 100% rename from macros/set-token-bars-and-nameplates.js rename to scripts/macros/set-token-bars-and-nameplates.js