diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e83548..b37fc7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [0.19.2] - 2025-02-18 + +### Changed + +- Replaced every instance of the mention of "Glimpse Weakness" with "Glimpse Vulnerability" + ## [0.19.1] - 2025-02-18 ### Fixed diff --git a/src/module/config.js b/src/module/config.js index acca320..08f32d5 100644 --- a/src/module/config.js +++ b/src/module/config.js @@ -12,7 +12,7 @@ import { EXPLOIT_VULNERABILITY_DC_PWOL_UUID, THAUMATURGE_DEDICATION_FEAT_UUID, } from "./utils/index.js"; -import { glimpseWeakness } from "./feats/glimpseWeakness.js"; +import { glimpseVulnerability } from "./feats/glimpseVulnerability.js"; Hooks.on("init", async () => { const ADJUSTMENT_TYPES = { @@ -47,7 +47,7 @@ Hooks.on("init", async () => { recallEsotericKnowledge, rootToLife, intensifyImplement, - glimpseWeakness, + glimpseVulnerability, ADJUSTMENTS: { ADJUSTMENT_TYPES }, }; diff --git a/src/module/feats/exploit-vulnerability/helpers.js b/src/module/feats/exploit-vulnerability/helpers.js index 60942bb..ac82dfd 100644 --- a/src/module/feats/exploit-vulnerability/helpers.js +++ b/src/module/feats/exploit-vulnerability/helpers.js @@ -2,8 +2,8 @@ import { createEffectOnTarget } from "../../socket"; import { BREACHED_DEFENSES_EFFECT_UUID, BREACHED_DEFENSES_TARGET_UUID, - GLIMPSE_WEAKNESS_EFFECT_UUID, - GLIMPSE_WEAKNESS_TARGET_UUID, + GLIMPSE_VULNERABILITY_EFFECT_UUID, + GLIMPSE_VULNERABILITY_TARGET_UUID, MORTAL_WEAKNESS_EFFECT_UUID, MORTAL_WEAKNESS_TARGET_UUID, PERSONAL_ANTITHESIS_EFFECT_UUID, @@ -224,17 +224,17 @@ async function createBDOnActor(actor, target, rollDOS, data) { } /** - * Creates the Glimpse Weakness effect on an actor with the Thaumaturge Dedication and their Glimpse Weakness target + * Creates the Glimpse Vulnerability effect on an actor with the Thaumaturge Dedication and their Glimpse Vulnerability target * @param {*} actor * @param {*} target * @param {Object} data */ async function createGWOnActor(actor, target, data) { - let eff = await createEffectData(GLIMPSE_WEAKNESS_EFFECT_UUID, { + let eff = await createEffectData(GLIMPSE_VULNERABILITY_EFFECT_UUID, { actor: actor.uuid, }); - const targEffect = await createEffectData(GLIMPSE_WEAKNESS_TARGET_UUID, { + const targEffect = await createEffectData(GLIMPSE_VULNERABILITY_TARGET_UUID, { actor: actor.uuid, }); targEffect.flags["pf2e-thaum-vuln"] = { EffectOrigin: actor.uuid }; diff --git a/src/module/feats/glimpseWeakness.js b/src/module/feats/glimpseVulnerability.js similarity index 84% rename from src/module/feats/glimpseWeakness.js rename to src/module/feats/glimpseVulnerability.js index 4562abf..5d9d130 100644 --- a/src/module/feats/glimpseWeakness.js +++ b/src/module/feats/glimpseVulnerability.js @@ -2,9 +2,9 @@ import { hasFeat } from "../utils/helpers.js"; import { deleteEVEffect } from "../socket.js"; import { preDeleteEffect } from "./exploit-vulnerability/exploitVulnerability.js"; import { createGWOnActor } from "./exploit-vulnerability/helpers.js"; -import { GLIMPSE_WEAKNESS_EFFECT_UUID } from "../utils/index.js"; +import { GLIMPSE_VULNERABILITY_EFFECT_UUID } from "../utils/index.js"; -export function glimpseWeakness() { +export function glimpseVulnerability() { if ( canvas.tokens.controlled.length != 1 || Array.from(game.user.targets).length != 1 @@ -24,7 +24,7 @@ export function glimpseWeakness() { const target = Array.from(game.user.targets)[0]; if (hasFeat(actor, "thaumaturge-dedication")) { - createGWOnActor(actor, target, GLIMPSE_WEAKNESS_EFFECT_UUID); + createGWOnActor(actor, target, GLIMPSE_VULNERABILITY_EFFECT_UUID); } else { return ui.notifications.warn( game.i18n.localize( diff --git a/src/module/hooks.js b/src/module/hooks.js index effc6a1..f787b92 100644 --- a/src/module/hooks.js +++ b/src/module/hooks.js @@ -4,7 +4,7 @@ import { BREACHED_DEFENSES_EFFECT_UUID, ESOTERIC_WARDEN_EFFECT_UUID, PRIMARY_TARGET_EFFECT_UUID, - GLIMPSE_WEAKNESS_EFFECT_UUID, + GLIMPSE_VULNERABILITY_EFFECT_UUID, } from "./utils/index.js"; import { hasFeat, @@ -183,7 +183,7 @@ Hooks.on("deleteItem", async (item) => { (item.sourceId === MORTAL_WEAKNESS_EFFECT_UUID || item.sourceId === PERSONAL_ANTITHESIS_EFFECT_UUID || item.sourceId === BREACHED_DEFENSES_EFFECT_UUID || - item.sourceId === GLIMPSE_WEAKNESS_EFFECT_UUID) && + item.sourceId === GLIMPSE_VULNERABILITY_EFFECT_UUID) && game.user === sa.primaryUpdater ) { await sa.setFlag("pf2e-thaum-vuln", "activeEV", false); diff --git a/src/module/implements/implementBenefits/amulet.js b/src/module/implements/implementBenefits/amulet.js index 2e5dc1a..365cbd7 100644 --- a/src/module/implements/implementBenefits/amulet.js +++ b/src/module/implements/implementBenefits/amulet.js @@ -1,6 +1,6 @@ import { applyAbeyanceEffects } from "../../socket"; import { - GLIMPSE_WEAKNESS_TARGET_UUID, + GLIMPSE_VULNERABILITY_TARGET_UUID, INTENSIFY_VULNERABILITY_AMULET_EFFECT_UUID, PRIMARY_TARGET_EFFECT_UUID, } from "../../utils"; @@ -37,7 +37,7 @@ class Amulet extends Implement { .filter( (e) => e.flags.core?.sourceId === PRIMARY_TARGET_EFFECT_UUID || - e.flags.core?.sourceId === GLIMPSE_WEAKNESS_TARGET_UUID + e.flags.core?.sourceId === GLIMPSE_VULNERABILITY_TARGET_UUID ) .map((e) => e.origin); if (thaums.length == 0) return; diff --git a/src/module/utils/helpers.js b/src/module/utils/helpers.js index 17a2ade..0f983e2 100644 --- a/src/module/utils/helpers.js +++ b/src/module/utils/helpers.js @@ -1,6 +1,6 @@ import { BREACHED_DEFENSES_EFFECT_UUID, - GLIMPSE_WEAKNESS_EFFECT_UUID, + GLIMPSE_VULNERABILITY_EFFECT_UUID, MORTAL_WEAKNESS_EFFECT_UUID, PERSONAL_ANTITHESIS_EFFECT_UUID, TargetEffectSourceIDs, @@ -206,7 +206,7 @@ function hasExploitVulnerabilityEffect(actor) { e.sourceId === PERSONAL_ANTITHESIS_EFFECT_UUID || e.sourceId === MORTAL_WEAKNESS_EFFECT_UUID || e.sourceId === BREACHED_DEFENSES_EFFECT_UUID || - e.sourceId === GLIMPSE_WEAKNESS_EFFECT_UUID + e.sourceId === GLIMPSE_VULNERABILITY_EFFECT_UUID ); } @@ -217,7 +217,7 @@ function getExploitVulnerabilityEffect(actor) { e.sourceId === PERSONAL_ANTITHESIS_EFFECT_UUID || e.sourceId === MORTAL_WEAKNESS_EFFECT_UUID || e.sourceId === BREACHED_DEFENSES_EFFECT_UUID || - e.sourceId === GLIMPSE_WEAKNESS_EFFECT_UUID + e.sourceId === GLIMPSE_VULNERABILITY_EFFECT_UUID ); } diff --git a/src/module/utils/index.js b/src/module/utils/index.js index cc9ac89..c5f1e9a 100644 --- a/src/module/utils/index.js +++ b/src/module/utils/index.js @@ -71,9 +71,9 @@ const EXPLOIT_VULNERABILITY_DC_PWOL_UUID = "Compendium.pf2e-thaum-vuln.thaumaturge-effects.Item.YPeliP0yNMlH0RPp"; const THAUMATURGE_DEDICATION_FEAT_UUID = "Compendium.pf2e.feats-srd.Item.gQAQRHxpFKEkNQFs"; -const GLIMPSE_WEAKNESS_EFFECT_UUID = +const GLIMPSE_VULNERABILITY_EFFECT_UUID = "Compendium.pf2e-thaum-vuln.thaumaturge-effects.Item.yEiGotvU2nQwYzYU"; -const GLIMPSE_WEAKNESS_TARGET_UUID = +const GLIMPSE_VULNERABILITY_TARGET_UUID = "Compendium.pf2e-thaum-vuln.thaumaturge-effects.Item.wygfR5F8KfPmicoA"; const SupportedActions = [ @@ -130,6 +130,6 @@ export { EXPLOIT_VULNERABILITY_DC_UUID, EXPLOIT_VULNERABILITY_DC_PWOL_UUID, THAUMATURGE_DEDICATION_FEAT_UUID, - GLIMPSE_WEAKNESS_EFFECT_UUID, - GLIMPSE_WEAKNESS_TARGET_UUID, + GLIMPSE_VULNERABILITY_EFFECT_UUID, + GLIMPSE_VULNERABILITY_TARGET_UUID, }; diff --git a/src/packs/mysurvives-thaumaturge-macros/glimpse-weakness.json b/src/packs/mysurvives-thaumaturge-macros/glimpse-vulnerability.json similarity index 76% rename from src/packs/mysurvives-thaumaturge-macros/glimpse-weakness.json rename to src/packs/mysurvives-thaumaturge-macros/glimpse-vulnerability.json index 7946e02..a209ab8 100644 --- a/src/packs/mysurvives-thaumaturge-macros/glimpse-weakness.json +++ b/src/packs/mysurvives-thaumaturge-macros/glimpse-vulnerability.json @@ -1,11 +1,11 @@ { - "name": "Glimpse Weakness", + "name": "Glimpse Vulnerability", "type": "script", "_id": "ufNeohzp8xmFiX4i", "author": "o29bm85va79jJPjh", "img": "systems/pf2e/icons/spells/glimpse-weakness.webp", "scope": "global", - "command": "game.pf2eThaumVuln.glimpseWeakness();", + "command": "game.pf2eThaumVuln.glimpseVulnerability();", "folder": null, "sort": 0, "ownership": { @@ -19,7 +19,8 @@ "systemId": "pf2e", "systemVersion": "6.9.0", "createdTime": 1739675980346, - "modifiedTime": 1739676625114 + "modifiedTime": 1739901525048, + "lastModifiedBy": "o29bm85va79jJPjh" }, "_key": "!macros!ufNeohzp8xmFiX4i" } diff --git a/src/packs/thaumaturge-effects/glimpse-weakness-target.json b/src/packs/thaumaturge-effects/glimpse-vulnerability-target.json similarity index 79% rename from src/packs/thaumaturge-effects/glimpse-weakness-target.json rename to src/packs/thaumaturge-effects/glimpse-vulnerability-target.json index 8b8ed98..949ca3d 100644 --- a/src/packs/thaumaturge-effects/glimpse-weakness-target.json +++ b/src/packs/thaumaturge-effects/glimpse-vulnerability-target.json @@ -1,5 +1,5 @@ { - "name": "Glimpse Weakness Target", + "name": "Glimpse Vulnerability Target", "type": "effect", "effects": [], "system": { @@ -13,12 +13,12 @@ "type": "physical", "value": 2, "predicate": [ - "origin:effect:glimpse-weakness" + "origin:effect:glimpse-vulnerability" ], - "slug": "glimpse-weakness-weakness" + "slug": "glimpse-vulnerability-weakness" } ], - "slug": "glimpse-weakness-target", + "slug": "glimpse-vulnerability-target", "_migration": { "version": 0.935, "lastMigration": null @@ -58,18 +58,17 @@ "folder": null, "sort": 0, "ownership": { - "default": 0, - "o29bm85va79jJPjh": 3 + "default": 0 }, "flags": {}, "_stats": { - "compendiumSource": null, + "compendiumSource": "Compendium.pf2e-thaum-vuln.thaumaturge-effects.Item.wygfR5F8KfPmicoA", "duplicateSource": null, "coreVersion": "12.331", "systemId": "pf2e", "systemVersion": "6.9.0", "createdTime": 1739677399737, - "modifiedTime": 1739677466364, + "modifiedTime": 1739901569889, "lastModifiedBy": "o29bm85va79jJPjh" }, "_key": "!items!wygfR5F8KfPmicoA" diff --git a/src/packs/thaumaturge-effects/glimpse-weakness.json b/src/packs/thaumaturge-effects/glimpse-vulnerability.json similarity index 86% rename from src/packs/thaumaturge-effects/glimpse-weakness.json rename to src/packs/thaumaturge-effects/glimpse-vulnerability.json index 31d4456..c57872d 100644 --- a/src/packs/thaumaturge-effects/glimpse-weakness.json +++ b/src/packs/thaumaturge-effects/glimpse-vulnerability.json @@ -1,5 +1,5 @@ { - "name": "Glimpse Weakness", + "name": "Glimpse Vulnerability", "type": "effect", "effects": [], "system": { @@ -10,10 +10,10 @@ "rules": [ { "key": "TokenMark", - "slug": "glimpse-weakness" + "slug": "glimpse-vulnerability" } ], - "slug": "glimpse-weakness", + "slug": "glimpse-vulnerability", "_migration": { "version": 0.935, "lastMigration": null @@ -63,7 +63,8 @@ "systemId": "pf2e", "systemVersion": "6.9.0", "createdTime": 1739646646783, - "modifiedTime": 1739677169242 + "modifiedTime": 1739901543098, + "lastModifiedBy": "o29bm85va79jJPjh" }, "_key": "!items!yEiGotvU2nQwYzYU" }