diff --git a/CHANGELOG.md b/CHANGELOG.md index 821d623..bc87d05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,12 @@ * Initial release ## PvP Punishment +### v1.0.3 +* Added a new config option to announce a grief-kill (exactly the same as the PvP Leaderboard mod v1.0.1) + +### v1.0.1, v1.0.2 +* F*cked up the release of another plugin, so we're skipping these versions. + ### v1.0.0 * Initial release diff --git a/PvPPunishment/Configs/PvPPunishmentConfig.cs b/PvPPunishment/Configs/PvPPunishmentConfig.cs index b4d0190..ee4eb86 100644 --- a/PvPPunishment/Configs/PvPPunishmentConfig.cs +++ b/PvPPunishment/Configs/PvPPunishmentConfig.cs @@ -21,6 +21,7 @@ public static class PvPPunishmentConfig public static ConfigEntry PvPPunishmentSilverResistReduction { get; private set; } public static ConfigEntry PvPPunishmentPhysPowerReduction { get; private set; } public static ConfigEntry PvPPunishmentSpellPowerReduction { get; private set; } + public static ConfigEntry PvPPunishmentAnnounceLowLevelKill { get; private set; } #endregion @@ -43,6 +44,7 @@ public static void Initialize(ConfigFile config) PvPPunishmentSilverResistReduction = config.Bind(nameof(PvPPunishmentConfig), nameof(PvPPunishmentSilverResistReduction), 15f, "The amount of reduced Silver Resistance when a player is punished."); PvPPunishmentPhysPowerReduction = config.Bind(nameof(PvPPunishmentConfig), nameof(PvPPunishmentPhysPowerReduction), 15f, "The percentage of reduced Physical Power when a player is punished."); PvPPunishmentSpellPowerReduction = config.Bind(nameof(PvPPunishmentConfig), nameof(PvPPunishmentSpellPowerReduction), 15f, "The percentage of reduced Spell Power when a player is punished."); + PvPPunishmentAnnounceLowLevelKill = config.Bind(nameof(PvPPunishmentConfig), nameof(PvPPunishmentAnnounceLowLevelKill), false, "When enabled, a kill of a lower level player is announced server-wide."); } #endregion diff --git a/PvPPunishment/PvPPunishment.csproj b/PvPPunishment/PvPPunishment.csproj index db5220a..f3d6947 100644 --- a/PvPPunishment/PvPPunishment.csproj +++ b/PvPPunishment/PvPPunishment.csproj @@ -4,7 +4,7 @@ VMods.PvPPunishment VMods.PvPPunishment A mod that punishes high-level players that kill low-level players - 1.0.0 + 1.0.3 true latest False diff --git a/PvPPunishment/Systems/PvPPunishmentSystem.cs b/PvPPunishment/Systems/PvPPunishmentSystem.cs index 74cf0ff..c3d04c7 100644 --- a/PvPPunishment/Systems/PvPPunishmentSystem.cs +++ b/PvPPunishment/Systems/PvPPunishmentSystem.cs @@ -144,6 +144,11 @@ private static void OnVampireDowned(Entity killer, Entity victim) //Utils.SendMessage(victimUserEntity, msg, ServerChatMessageType.System); } #endif + 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(PvPPunishmentConfig.PvPPunishmentAnnounceLowLevelKill.Value) + { + ServerChatUtils.SendSystemMessageToAllClients(entityManager, $"Vampire {killerUser.CharacterName} (Lv {killerLevel}) has grief-killed {victimUser.CharacterName} (Lv {victimLevel})!"); + } } #if DEBUG else diff --git a/Thunderstone/PvPPunishment/manifest.json b/Thunderstone/PvPPunishment/manifest.json index 84711de..29779d1 100644 --- a/Thunderstone/PvPPunishment/manifest.json +++ b/Thunderstone/PvPPunishment/manifest.json @@ -1,7 +1,7 @@ { "name": "VMods_PvP_Punishment", "description": "A mod that punishes low-level kills.", - "version_number": "1.0.1", + "version_number": "1.0.3", "dependencies": [ "BepInEx-BepInExPack_V_Rising-1.0.0", "molenzwiebel-Wetstone-1.1.0"