From 445d0bce30e7d6e7b9c3741a4903315900346baf Mon Sep 17 00:00:00 2001 From: WhiteFang Date: Wed, 3 Aug 2022 20:46:06 +0200 Subject: [PATCH] [PvPLeaderboard] Fixed an issue with the grief-kill log; Bumped version to v1.0.1 --- CHANGELOG.md | 3 +++ PvPLeaderboard/PvPLeaderboard.csproj | 4 ++-- PvPLeaderboard/Systems/PvPLeaderboardSystem.cs | 2 +- Thunderstone/PvPLeaderboard/manifest.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 732a76e..821d623 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ * Initial release ## PvP Leaderboard +### v1.0.1 +* Fixed the logging of the incorrect current level in the grief-kill log (it logged the killer's lvl instead of the victim's) + ### v1.0.0 * Initial release diff --git a/PvPLeaderboard/PvPLeaderboard.csproj b/PvPLeaderboard/PvPLeaderboard.csproj index 30b888a..8d771d8 100644 --- a/PvPLeaderboard/PvPLeaderboard.csproj +++ b/PvPLeaderboard/PvPLeaderboard.csproj @@ -1,10 +1,10 @@ - + netstandard2.1 VMods.PvPLeaderboard VMods.PvPLeaderboard A mod that keeps track of player's K/D and adds a pvp leaderboard - 1.0.0 + 1.0.1 true latest False diff --git a/PvPLeaderboard/Systems/PvPLeaderboardSystem.cs b/PvPLeaderboard/Systems/PvPLeaderboardSystem.cs index b54b640..f962595 100644 --- a/PvPLeaderboard/Systems/PvPLeaderboardSystem.cs +++ b/PvPLeaderboard/Systems/PvPLeaderboardSystem.cs @@ -92,7 +92,7 @@ private static void OnVampireDowned(Entity killer, Entity victim) if(diff >= PvPLeaderboardConfig.PvPLeaderboardLevelDifference.Value) { - Utils.Logger.LogMessage($"Vampire {killerUser.CharacterName} (Lv: {killerLevel}; Current Lv: {HighestGearScoreSystem.GetCurrentGearScore(killer, entityManager)}) has grief-killed {victimUser.CharacterName} (Lv {victimLevel}; Current Lv: {HighestGearScoreSystem.GetCurrentGearScore(killer, entityManager)})!"); + Utils.Logger.LogMessage($"Vampire {killerUser.CharacterName} (Lv: {killerLevel}; Current Lv: {HighestGearScoreSystem.GetCurrentGearScore(killer, entityManager)}) has grief-killed {victimUser.CharacterName} (Lv {victimLevel}; Current Lv: {HighestGearScoreSystem.GetCurrentGearScore(victim, entityManager)})!"); if(PvPLeaderboardConfig.PvPLeaderboardAnnounceLowLevelKill.Value) { ServerChatUtils.SendSystemMessageToAllClients(entityManager, $"Vampire {killerUser.CharacterName} (Lv {killerLevel}) has grief-killed {victimUser.CharacterName} (Lv {victimLevel})!"); diff --git a/Thunderstone/PvPLeaderboard/manifest.json b/Thunderstone/PvPLeaderboard/manifest.json index 8f85692..876aa6a 100644 --- a/Thunderstone/PvPLeaderboard/manifest.json +++ b/Thunderstone/PvPLeaderboard/manifest.json @@ -1,7 +1,7 @@ { "name": "VMods_PvP_Leaderboard", "description": "A mod that keeps track of Kills, Death and the K/D ratio of players and ranks them in a leaderboard.", - "version_number": "1.0.0", + "version_number": "1.0.1", "dependencies": [ "BepInEx-BepInExPack_V_Rising-1.0.0", "molenzwiebel-Wetstone-1.1.0"