Skip to content

Commit

Permalink
finish removing trackimage stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed May 24, 2024
1 parent 80555da commit 041dcdb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/characters/lens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ function camelCase(str: string): string {

function legacyTrack(specialTrackRule: SpecialTrackRule) {
const formattedLabel = camelCase(specialTrackRule.label);
const trackImageKey = `${formattedLabel}_TrackImage`;
const progressKey = `${formattedLabel}_Progress`;
const xpEarnedKey = `${formattedLabel}_XPEarned`;
return {
schema: {
[trackImageKey]: z.string().optional(),
[progressKey]: z.number().int().nonnegative(),
[xpEarnedKey]: z.number().int().nonnegative(),
},
Expand Down
1 change: 0 additions & 1 deletion src/tracks/progress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ describe("ProgressTrackFileAdapter", () => {
rank: "Dangerous",
Progress: 10,
tags: "incomplete",
TrackImage: "[[progress-track-10.svg]]",
tracktype: "Vow",
};

Expand Down
1 change: 0 additions & 1 deletion test-vault/Progress/Example Vow.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ complete: false
unbounded: false
name: I vow to finish this plugin and make it awesome! [[Chapter 01]]
progress: 28
trackimage: "[[progress-track-28.svg]]"
rank: troublesome
---

Expand Down
1 change: 0 additions & 1 deletion test-vault/characters/Ash Barlowe.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Bonds_XPEarned: 0
Bonds_Progress: 0
Discoveries_XPEarned: 0
Discoveries_Progress: 0
Quests_TrackImage: "[[progress-track-4.svg]]"
---

asdf

0 comments on commit 041dcdb

Please sign in to comment.