diff --git a/src/icons.ts b/src/icons.ts
index 67e6a14..d3fb8a5 100644
--- a/src/icons.ts
+++ b/src/icons.ts
@@ -3,7 +3,8 @@ import { RANK } from "./utils.ts";
const goldColor = "#FFD700";
const silverColor = "#C0C0C0";
const bronzeColor = "#816D46";
-const leafIcon = ``;
+function getPlusIcon(color: string): string {
+ return `
+
+
+ +
+
`;
+}
export function getTropyIcon(rank = RANK.UNKNOWN) {
- let color = "currentColor"
- let backgroundIcon = "";
+ let color = "currentColor";
+ let backgroundIcon = "";
let optionRankIcon = "";
if (rank == RANK.SP) {
color = goldColor;
backgroundIcon = leafIcon;
- optionRankIcon = plusIcon;
- }else if (rank == RANK.S) {
+ optionRankIcon = getPlusIcon(color);
+ } else if (rank == RANK.S) {
color = goldColor;
backgroundIcon = leafIcon;
+ optionRankIcon = getPlusIcon(color);
} else if (rank == RANK.AP) {
color = silverColor;
backgroundIcon = leafIcon;
- optionRankIcon = plusIcon;
+ optionRankIcon = getPlusIcon(color);
} else if (rank == RANK.A) {
color = silverColor;
backgroundIcon = leafIcon;
@@ -52,13 +58,15 @@ export function getTropyIcon(rank = RANK.UNKNOWN) {
}
return `
${backgroundIcon}
+ ${optionRankIcon}
- ${optionRankIcon}
- ${rank.replace("+", "")}
+ ${
+ rank.replace("+", "")
+ }
`;
}