Skip to content

Commit 6e723c9

Browse files
committed
Add versioning, grey colour for durability
1 parent fc0e609 commit 6e723c9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
cmake_minimum_required(VERSION 3.12)
22
project(ItemInformation)
3+
set(MOD_VERSION "@1.1.0")
34

45
# Define only RelWithDebInfo as the available build configuration
56
set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo" CACHE STRING "Build configurations" FORCE)
67
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
78

89
# Project Configuration
910
set(AmethystFolder "$ENV{appdata}/Amethyst")
10-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${AmethystFolder}/mods/${PROJECT_NAME}")
11+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${AmethystFolder}/mods/${PROJECT_NAME}${MOD_VERSION}")
1112

1213
find_library(AMETHYST_API AmethystAPI PATHS "${AmethystFolder}/lib")
1314
include_directories(${AmethystFolder}/include)

src/dllmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static void Item_appendFormattedHovertext(Item* self, const ItemStackBase& itemS
2121

2222
if (max != 0) {
2323
uint64_t current = max - item->getDamageValue(itemStack.mUserData);
24-
text.append(fmt::format("\nDurability: {} / {}", current, max));
24+
text.append(fmt::format("\n{}7Durability: {} / {}{}r", "\xc2\xa7", current, max, "\xc2\xa7"));
2525
}
2626

2727
std::string rawNameId;

0 commit comments

Comments
 (0)