Don't forget item categories in receive message
This commit is contained in:
parent
59b2205418
commit
d7b08ca349
|
@ -170,9 +170,9 @@ Public Class PlayerInventory
|
||||||
Public Function GetMessageReceive(ByVal Item As Item, ByVal Amount As Integer) As String
|
Public Function GetMessageReceive(ByVal Item As Item, ByVal Amount As Integer) As String
|
||||||
Dim Message As String
|
Dim Message As String
|
||||||
If Amount = 1 Then
|
If Amount = 1 Then
|
||||||
Message = Localization.GetString("item_stored_in_pocket_single_start", "<player.name> stored it in the~").Replace("<player.name>", Core.Player.Name) & " " & Core.Player.Inventory.GetItemPocketChar(Item) & Item.ItemType.ToString() & " " & Localization.GetString("item_stored_in_pocket_single_end", "pocket.").Replace("<player.name>", Core.Player.Name)
|
Message = Localization.GetString("item_stored_in_pocket_single_start", "<player.name> stored it in the~").Replace("<player.name>", 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("<player.name>", Core.Player.Name)
|
||||||
Else
|
Else
|
||||||
Message = Localization.GetString("item_stored_in_pocket_multiple_start", "<player.name> stored them~in the").Replace("<player.name>", Core.Player.Name) & " " & Core.Player.Inventory.GetItemPocketChar(Item) & Item.ItemType.ToString() & " " & Localization.GetString("item_stored_in_pocket_multiple_end", "pocket.").Replace("<player.name>", Core.Player.Name)
|
Message = Localization.GetString("item_stored_in_pocket_multiple_start", "<player.name> stored them~in the").Replace("<player.name>", 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("<player.name>", Core.Player.Name)
|
||||||
End If
|
End If
|
||||||
Return Message
|
Return Message
|
||||||
End Function
|
End Function
|
||||||
|
|
Loading…
Reference in New Issue