From d7b08ca34970253e4046a25cb3fb1f1b686ee6c2 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Wed, 9 Aug 2023 14:54:17 +0200 Subject: [PATCH] Don't forget item categories in receive message --- P3D/Player/PlayerInventory.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/P3D/Player/PlayerInventory.vb b/P3D/Player/PlayerInventory.vb index 64cfb4ad7..39e162909 100644 --- a/P3D/Player/PlayerInventory.vb +++ b/P3D/Player/PlayerInventory.vb @@ -170,9 +170,9 @@ Public Class PlayerInventory Public Function GetMessageReceive(ByVal Item As Item, ByVal Amount As Integer) As String Dim Message As String If Amount = 1 Then - Message = Localization.GetString("item_stored_in_pocket_single_start", " stored it in the~").Replace("", Core.Player.Name) & " " & Core.Player.Inventory.GetItemPocketChar(Item) & Item.ItemType.ToString() & " " & Localization.GetString("item_stored_in_pocket_single_end", "pocket.").Replace("", Core.Player.Name) + Message = Localization.GetString("item_stored_in_pocket_single_start", " stored it in the~").Replace("", Core.Player.Name) & " " & Core.Player.Inventory.GetItemPocketChar(Item) & Localization.GetString("item_category_" & Item.ItemType.ToString(), Item.ItemType.ToString()) & " " & Localization.GetString("item_stored_in_pocket_single_end", "pocket.").Replace("", Core.Player.Name) Else - Message = Localization.GetString("item_stored_in_pocket_multiple_start", " stored them~in the").Replace("", Core.Player.Name) & " " & Core.Player.Inventory.GetItemPocketChar(Item) & Item.ItemType.ToString() & " " & Localization.GetString("item_stored_in_pocket_multiple_end", "pocket.").Replace("", Core.Player.Name) + Message = Localization.GetString("item_stored_in_pocket_multiple_start", " stored them~in the").Replace("", Core.Player.Name) & " " & Core.Player.Inventory.GetItemPocketChar(Item) & Localization.GetString("item_category_" & Item.ItemType.ToString(), Item.ItemType.ToString()) & " " & Localization.GetString("item_stored_in_pocket_multiple_end", "pocket.").Replace("", Core.Player.Name) End If Return Message End Function