-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unified Effect: Energizing Rune and migrate old links (#7316)
- Loading branch information
Showing
11 changed files
with
120 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
packs/data/equipment-effects.db/effect-energizing-rune-acid.json
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
packs/data/equipment-effects.db/effect-energizing-rune-cold.json
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
packs/data/equipment-effects.db/effect-energizing-rune-electricity.json
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
packs/data/equipment-effects.db/effect-energizing-rune-fire.json
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
packs/data/equipment-effects.db/effect-energizing-rune-sonic.json
This file was deleted.
Oops, something went wrong.
92 changes: 92 additions & 0 deletions
92
packs/data/equipment-effects.db/effect-energizing-rune.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"_id": "R5ywXEYZFV1WBe8t", | ||
"img": "systems/pf2e/icons/equipment/runes/weapon-property-runes/energizing-rune-fire.webp", | ||
"name": "Effect: Energizing Rune", | ||
"system": { | ||
"badge": null, | ||
"description": { | ||
"value": "<p>Granted by @UUID[Compendium.pf2e.equipment-srd.Energizing]{Energizing}</p>\n<p>The weapon becomes imbued with the triggering energy type. It deals an additional 1d8 damage of the triggering type until the end of your next turn.</p>" | ||
}, | ||
"duration": { | ||
"expiry": "turn-end", | ||
"sustained": false, | ||
"unit": "rounds", | ||
"value": 1 | ||
}, | ||
"level": { | ||
"value": 6 | ||
}, | ||
"rules": [ | ||
{ | ||
"choices": { | ||
"includeHandwraps": true, | ||
"ownedItems": true, | ||
"predicate": [ | ||
"item:rune:property:energizing" | ||
], | ||
"types": [ | ||
"weapon" | ||
] | ||
}, | ||
"flag": "weapon", | ||
"key": "ChoiceSet", | ||
"prompt": "PF2E.SpecificRule.Prompt.Weapon" | ||
}, | ||
{ | ||
"choices": [ | ||
{ | ||
"img": "systems/pf2e/icons/equipment/runes/weapon-property-runes/energizing-rune-acid.webp", | ||
"label": "PF2E.TraitAcid", | ||
"value": "acid" | ||
}, | ||
{ | ||
"img": "systems/pf2e/icons/equipment/runes/weapon-property-runes/energizing-rune-cold.webp", | ||
"label": "PF2E.TraitCold", | ||
"value": "cold" | ||
}, | ||
{ | ||
"img": "systems/pf2e/icons/equipment/runes/weapon-property-runes/energizing-rune-electricity.webp", | ||
"label": "PF2E.TraitElectricity", | ||
"value": "electricity" | ||
}, | ||
{ | ||
"img": "systems/pf2e/icons/equipment/runes/weapon-property-runes/energizing-rune-fire.webp", | ||
"label": "PF2E.TraitFire", | ||
"value": "fire" | ||
}, | ||
{ | ||
"img": "systems/pf2e/icons/equipment/runes/weapon-property-runes/energizing-rune-sonic.webp", | ||
"label": "PF2E.TraitSonic", | ||
"value": "sonic" | ||
} | ||
], | ||
"flag": "energyType", | ||
"key": "ChoiceSet", | ||
"prompt": "PF2E.SpecificRule.Prompt.EnergyType" | ||
}, | ||
{ | ||
"damageType": "{item|flags.pf2e.rulesSelections.energyType}", | ||
"diceNumber": 1, | ||
"dieSize": "d8", | ||
"key": "DamageDice", | ||
"selector": "{item|flags.pf2e.rulesSelections.weapon}-damage" | ||
} | ||
], | ||
"source": { | ||
"value": "Pathfinder Lost Omens: The Grand Bazaar" | ||
}, | ||
"start": { | ||
"initiative": null, | ||
"value": 0 | ||
}, | ||
"target": null, | ||
"tokenIcon": { | ||
"show": true | ||
}, | ||
"traits": { | ||
"value": [] | ||
}, | ||
"unidentified": false | ||
}, | ||
"type": "effect" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/module/migration/migrations/836-energizing-consolidation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ItemSourcePF2e } from "@item/data/index.ts"; | ||
import { MigrationBase } from "../base.ts"; | ||
|
||
/** Rename references to retired compendiums */ | ||
export class Migration836EnergizingConsolidation extends MigrationBase { | ||
static override version = 0.836; | ||
|
||
#rename(text: string): string { | ||
const newEffectEnergizingRune = "equipment-effects.R5ywXEYZFV1WBe8t"; | ||
return text | ||
.replace("equipment-effects.ClsVhp5baFRjZQ23", newEffectEnergizingRune) | ||
.replace("equipment-effects.68xcDyxsNgD3JddD", newEffectEnergizingRune) | ||
.replace("equipment-effects.9BsFdrEc7hkPWgSd", newEffectEnergizingRune) | ||
.replace("equipment-effects.ascxqSlMEN9R6OOy", newEffectEnergizingRune) | ||
.replace("equipment-effects.4RnEUeYEzC919GZR", newEffectEnergizingRune); | ||
} | ||
|
||
override async updateItem(source: ItemSourcePF2e): Promise<void> { | ||
if (source.system.description.value.includes("equipment-effects")) { | ||
source.system.description.value = this.#rename(source.system.description.value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters