From 723a93c1bc4555947617aa3d4737f9af41ad3ee6 Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 3 Feb 2025 11:24:50 +0000 Subject: [PATCH] Fixed give command not allowing player to get item --- .../Commando/SptCommands/GiveCommand/GiveSptCommand.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs b/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs index 298b5f03..2a3813b3 100644 --- a/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs +++ b/Libraries/Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs @@ -70,7 +70,7 @@ public class GiveSptCommand( Dictionary? localizedGlobal = null; // This is a reply to a give request previously made pending a reply - if (result.Groups[1].Value == null) { + if (string.IsNullOrEmpty(result.Groups[1].Value)) { if (!_savedCommand.ContainsKey(sessionId)) { _mailSendService.SendUserMessageToPlayer( sessionId, @@ -231,10 +231,16 @@ public class GiveSptCommand( // Flag the items as FiR _itemHelper.SetFoundInRaid(itemsToSend); - _mailSendService.SendSystemMessageToPlayer(sessionId, "SPT GIVE", itemsToSend); + _mailSendService.SendSystemMessageToPlayer(sessionId, $"SPT GIVE DELIVERY: {item}", itemsToSend); + return request.DialogId; } + /// + /// Return the desired locale, falls back to english if it cannot be found + /// + /// Locale code, e.g. "fr" for french + /// protected Dictionary GetGlobalsLocale(string desiredLocale) { return _databaseService.GetLocales().Global.TryGetValue(desiredLocale, out var locale)