Skip to content

Commit

Permalink
Update wiki-generator image links
Browse files Browse the repository at this point in the history
  • Loading branch information
Noaaan committed Dec 22, 2024
1 parent bf62b29 commit 30040ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/nourl/mythicmetals/command/MythicCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private static int exportArmor(CommandContext<ServerCommandSource> context) {
output.append("\n");
output.append("<center class=tooltip>").append("\n");
output.append("<h3>**").append(armorTypeName).append("**</h3>").append("\n");
output.append("![Image of %s model](../assets/armor-models/256/%s.png)".formatted(armorTypeName, armorMaterial + "_256")).append("\n");
output.append("![Image of %s model](../../assets/armor-models/256/%s.png)".formatted(armorTypeName, armorMaterial + "_256")).append("\n");

for (var armor : armorSet.getArmorItems()) {
/* TODO - The string handling is a bit bad, although it does have to be very specific in regards
Expand All @@ -258,12 +258,12 @@ private static int exportArmor(CommandContext<ServerCommandSource> context) {
output.append("\n");
output.append("<center class=tooltip>").append("\n");
output.append("<h4>**").append(name).append("**</h4>").append("\n");
output.append("![Image of %s](../assets/mythicmetals/%s.png)".formatted(name, id)).append(ITEM_SCALE).append(BR);
output.append("![Image of %s](../../assets/mythicmetals/%s.png)".formatted(name, id)).append(ITEM_SCALE).append(BR);
for (int i = 1; i < protection; i = i + 2) {
output.append("![armor](../assets/icon/full_armor_icon.png)").append(ICON_SCALE).append("\n");
output.append("![armor](../../assets/icon/full_armor_icon.png)").append(ICON_SCALE).append("\n");
}
if ((protection & 1) == 1) {
output.append("![armor](../assets/icon/half_armor_icon.png)").append(ICON_SCALE).append("\n");
output.append("![armor](../../assets/icon/half_armor_icon.png)").append(ICON_SCALE).append("\n");
}
output.append(BR);
// +5 Armor, +2 Toughness
Expand All @@ -289,7 +289,7 @@ private static int exportArmor(CommandContext<ServerCommandSource> context) {
for (var armor : armorSet.getArmorItems()) {
String id = Registries.ITEM.getId(armor).getPath();
String name = StringUtilsAtHome.toProperCase(id.replace('_', ' '));
output.append("![Image of the recipe for %s](../assets/mythicmetals/recipes/armor/%s.png)".formatted(name, id)).append(RECIPE_SCALE).append(BR);
output.append("![Image of the recipe for %s](../../assets/mythicmetals/recipes/armor/%s.png)".formatted(name, id)).append(RECIPE_SCALE).append(BR);
}
output.append("## Usages\n\n");
output.append("## Trivia\n\n");
Expand Down Expand Up @@ -397,7 +397,7 @@ private static int exportTools(CommandContext<ServerCommandSource> context) {
String name = StringUtilsAtHome.toProperCase(id.replace('_', ' '));
output.append("\n");
output.append(TAB).append("<h4>**").append(name).append("**</h4>").append("\n");
output.append(TAB).append("![Image of %s](../assets/mythicmetals/%s.png)".formatted(name, id)).append(ITEM_SCALE).append(BR);
output.append(TAB).append("![Image of %s](../../assets/mythicmetals/%s.png)".formatted(name, id)).append(ITEM_SCALE).append(BR);
output.append(TAB).append("+%s Attack Damage, %s Attack Speed".formatted(
tool.getMaterial().getAttackDamage() + damageDeque.pop() + 1,
BigDecimal.valueOf(4.0f + atkSpd.pop()).setScale(1, RoundingMode.HALF_UP).toPlainString()
Expand All @@ -418,7 +418,7 @@ private static int exportTools(CommandContext<ServerCommandSource> context) {
for (ToolItem tool : toolset.get()) {
String id = Registries.ITEM.getId(tool).getPath();
String name = StringUtilsAtHome.toProperCase(id.replace('_', ' '));
output.append("![Image of the recipe for %s](../assets/mythicmetals/recipes/tools/%s.png)".formatted(name, id)).append(RECIPE_SCALE).append(BR);
output.append("![Image of the recipe for %s](../../assets/mythicmetals/recipes/tools/%s.png)".formatted(name, id)).append(RECIPE_SCALE).append(BR);
}
output.append("## Usages\n\n");
output.append("## Trivia\n\n");
Expand Down

0 comments on commit 30040ae

Please sign in to comment.