Skip to content

Commit

Permalink
Fix labels and slugs in Finisher migration (#14009)
Browse files Browse the repository at this point in the history
  • Loading branch information
TikaelSol committed Mar 1, 2024
1 parent 4f88da9 commit f83778d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packs/iconics/jirelle-level-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2390,8 +2390,8 @@
"option": "finisher",
"suboptions": [
{
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.ConfidentFinisher",
"value": "confident-finisher"
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.Confident",
"value": "confident"
}
],
"toggleable": true
Expand Down
8 changes: 4 additions & 4 deletions packs/iconics/jirelle-level-5.json
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,8 @@
"option": "finisher",
"suboptions": [
{
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.UnbalancingFinisher",
"value": "unbalancing-finisher"
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.Unbalancing",
"value": "unbalancing"
}
],
"toggleable": true
Expand Down Expand Up @@ -3195,8 +3195,8 @@
"option": "finisher",
"suboptions": [
{
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.ConfidentFinisher",
"value": "confident-finisher"
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.Confident",
"value": "confident"
}
],
"toggleable": true
Expand Down
8 changes: 4 additions & 4 deletions packs/paizo-pregens/zathri.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@
"option": "finisher",
"suboptions": [
{
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.ImpalingFinisher",
"value": "impaling-finisher"
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.Impaling",
"value": "impaling"
}
],
"toggleable": true
Expand Down Expand Up @@ -3014,8 +3014,8 @@
"option": "finisher",
"suboptions": [
{
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.ConfidentFinisher",
"value": "confident-finisher"
"label": "PF2E.SpecificRule.Swashbuckler.Finisher.Confident",
"value": "confident"
}
],
"toggleable": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Migration922SwashbucklerFinishers extends MigrationBase {
}

#buildRule(slug: string) {
const name = sluggify(slug, { camel: "bactrian" });
const name = sluggify(slug, { camel: "bactrian" }).replace("Finisher", "");

const rule = {
disabledIf: [
Expand All @@ -60,7 +60,7 @@ export class Migration922SwashbucklerFinishers extends MigrationBase {
suboptions: [
{
label: `PF2E.SpecificRule.Swashbuckler.Finisher.${name}`,
value: `${slug}`,
value: `${slug.replace("-finisher", "")}`,
},
],
toggleable: true,
Expand Down

0 comments on commit f83778d

Please sign in to comment.