From 8d1cd35ed5c9bacfeb28251c9bfa4215d59adfac Mon Sep 17 00:00:00 2001 From: Anthony Mosca Date: Fri, 30 May 2025 08:12:02 +0930 Subject: [PATCH 1/2] Add logging for exception message --- XPRising/Plugin.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XPRising/Plugin.cs b/XPRising/Plugin.cs index 376dc42..c142526 100644 --- a/XPRising/Plugin.cs +++ b/XPRising/Plugin.cs @@ -245,7 +245,8 @@ public static void Initialize() } catch (Exception e) { - Plugin.Log(LogSystem.Core, LogLevel.Error, $"Initialisation failed! {e.StackTrace}", true); + Plugin.Log(LogSystem.Core, LogLevel.Error, $"Initialisation failed! Error: {e.Message}", true); + Plugin.Log(LogSystem.Core, LogLevel.Error, $"{e.StackTrace}", true); } } From d96ae28fa7ea3c1b597a2c2412d6d8af2d9c35de Mon Sep 17 00:00:00 2001 From: Anthony Mosca Date: Fri, 30 May 2025 08:13:56 +0930 Subject: [PATCH 2/2] Updated documentation --- CHANGELOG.md | 10 ++++++++++ UnitStats.md | 24 +++++++++++------------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3655a96..ab59cbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [0.4.8] - 2025-05-30 + +### Changed + +- Updated UnitStats.md to fix some stat inconsistencies + +### Fixed + +- Ensured that if there is an error during initialisation that we print out the message, rather than just the stack trace + ## [0.4.7] - 2025-05-27 ### Changed diff --git a/UnitStats.md b/UnitStats.md index b454f70..5e65445 100644 --- a/UnitStats.md +++ b/UnitStats.md @@ -5,18 +5,17 @@ The following types can be used to configure mastery buff stats: | Weapons | Bloodlines | |-------------------|----------------| -| weaponUnarmed | bloodNone | -| weaponSpear | bloodBrute | -| weaponSword | bloodCreature | -| weaponScythe | bloodDracula | -| weaponCrossbow | bloodDraculin | -| weaponMace | bloodMutant | -| weaponSlasher | bloodRogue | -| weaponAxe | bloodScholar | -| weaponFishingPole | bloodWarrior | -| weaponRapier | bloodWorker | -| weaponPistol | bloodCorrupted | -| weaponGreatSword | | +| weaponSpear | bloodNone | +| weaponSword | bloodBrute | +| weaponScythe | bloodCreature | +| weaponCrossbow | bloodDracula | +| weaponMace | bloodDraculin | +| weaponSlasher | bloodMutant | +| weaponAxe | bloodRogue | +| weaponFishingPole | bloodScholar | +| weaponRapier | bloodWarrior | +| weaponPistol | bloodWorker | +| weaponGreatSword | bloodCorrupted | | weaponLongBow | | | weaponWhip | | | weaponClaws | | @@ -172,7 +171,6 @@ Note that different weapons will have different damage coefficients. All the dam | ResistVsVampires | defensive | 0.5 | 9 dmg reduction (melee), 34 reduction (spell) | | ResourcePower | resource | 1 | 1 harvesting power | | ResourceYield | resource | 0.1 | 10% extra yield | -| ShieldAbsorb | defensive | 1 | 84 extra shield | | SiegePower | offensive | | no data | | SilverCoinResistance | defensive | | no data | | SilverResistance | defensive | 10 | 10 resistance attribute (no data on actual coin/ore value) |