From 274c9025e1cf08b2836f653c27ffcac84ff9be0f Mon Sep 17 00:00:00 2001 From: CWX Date: Mon, 3 Feb 2025 13:28:15 +0000 Subject: [PATCH] added id to message as crylic is coming through as ??? --- Libraries/Core/Controllers/PrestigeController.cs | 4 +++- Libraries/Core/Generators/BotLootGenerator.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Controllers/PrestigeController.cs b/Libraries/Core/Controllers/PrestigeController.cs index 37a50342..f0f04983 100644 --- a/Libraries/Core/Controllers/PrestigeController.cs +++ b/Libraries/Core/Controllers/PrestigeController.cs @@ -1,3 +1,4 @@ +using System.Text.Json; using SptCommon.Annotations; using Core.Helpers; using Core.Models.Eft.Common; @@ -12,6 +13,7 @@ using Core.Servers; using Core.Services; using Core.Utils; using Core.Utils.Cloners; +using SptCommon.Extensions; namespace Core.Controllers; @@ -168,7 +170,7 @@ public class PrestigeController( _profileHelper.AddSkillPointsToPlayer( newProfile.CharacterData.PmcData, result, - (double)reward.Value + ((JsonElement)reward.Value).ToObject() ); } else diff --git a/Libraries/Core/Generators/BotLootGenerator.cs b/Libraries/Core/Generators/BotLootGenerator.cs index 39db8a3f..b91a4280 100644 --- a/Libraries/Core/Generators/BotLootGenerator.cs +++ b/Libraries/Core/Generators/BotLootGenerator.cs @@ -551,7 +551,7 @@ public class BotLootGenerator( if(_logger.IsLogEnabled(LogLevel.Debug)) { _logger.Debug( - $"Failed placing item: {itemToAddTemplate.Name}: {i} of: {totalItemCount} items into: {botRole} " + + $"Failed placing item: {itemToAddTemplate.Id} - {itemToAddTemplate.Name}: {i} of: {totalItemCount} items into: {botRole} " + $"containers: {string.Join(",", equipmentSlots)}. Tried: {fitItemIntoContainerAttempts} " + $"times, reason: {itemAddedResult}, skipping" );