Remove linebreak in item name if it's there
This commit is contained in:
parent
152422903d
commit
59b2205418
|
@ -183,9 +183,9 @@
|
|||
Core.Player.Inventory.AddItem(Me.Berry.ID.ToString, Me.Berries)
|
||||
Dim Text As String = ""
|
||||
If Me.Berries = 1 Then
|
||||
Text = Localization.GetString("berry_picked_single_start", "<player.name> picked the~").Replace("<player.name>", Core.Player.Name) & Berry.Name & " " & Localization.GetString("berry_picked_single_end", "Berry.") & "*" & Core.Player.Inventory.GetMessageReceive(Berry, Me.Berries)
|
||||
Text = Localization.GetString("berry_picked_single_start", "<player.name> picked the~").Replace("<player.name>", Core.Player.Name) & Berry.Name.Replace("~", " ") & " " & Localization.GetString("berry_picked_single_end", "Berry.") & "*" & Core.Player.Inventory.GetMessageReceive(Berry, Me.Berries)
|
||||
Else
|
||||
Text = Localization.GetString("berry_picked_multiple_start", "<player.name> picked the~").Replace("<player.name>", Core.Player.Name) & Berries & "~" & Berry.Name & " " & Localization.GetString("berry_picked_multiple_end", "Berries.") & "*" & Core.Player.Inventory.GetMessageReceive(Berry, Me.Berries)
|
||||
Text = Localization.GetString("berry_picked_multiple_start", "<player.name> picked the~").Replace("<player.name>", Core.Player.Name) & Berries & "~" & Berry.Name.Replace("~", " ") & " " & Localization.GetString("berry_picked_multiple_end", "Berries.") & "*" & Core.Player.Inventory.GetMessageReceive(Berry, Me.Berries)
|
||||
End If
|
||||
|
||||
Core.Player.AddPoints(2, "Picked berries.")
|
||||
|
|
|
@ -110,9 +110,9 @@
|
|||
Dim Amount As Integer = int(argument.GetSplit(1))
|
||||
|
||||
If Not item Is Nothing Then
|
||||
Dim receiveString As String = Localization.GetString("item_received_single", "Received the~") & item.Name & ".*"
|
||||
Dim receiveString As String = Localization.GetString("item_received_single", "Received the~") & item.Name.Replace("~", " ") & ".*"
|
||||
If Amount > 1 Then
|
||||
receiveString = Localization.GetString("item_received_multiple", "Received") & " " & Amount & "~" & item.PluralName & ".*"
|
||||
receiveString = Localization.GetString("item_received_multiple", "Received") & " " & Amount & "~" & item.PluralName.Replace("~", " ") & ".*"
|
||||
End If
|
||||
|
||||
SoundManager.PlaySound("Receive_Item", True)
|
||||
|
|
Loading…
Reference in New Issue