<inventory.name> new arg

new optional argument, can be p/plural to get the plural name or s/singlular for the regular name, defaults to singular
This commit is contained in:
darkfire006 2021-10-28 10:21:57 -05:00
parent 53f006cd3d
commit 1d7912bb8f
1 changed files with 10 additions and 1 deletions

View File

@ -22,7 +22,16 @@
Next
Return c
Case "name"
Dim ItemID As String = argument
Dim ItemID As String = argument.GetSplit(0)
If argument.Contains(",") Then
Select Case argument.GetSplit(1).ToLower()
Case "p", "plural"
Return Item.GetItemByID(ItemID).PluralName
Case "s", "singular"
Return Item.GetItemByID(int(ItemID)).Name
End Select
End If
Return Item.GetItemByID(int(ItemID)).Name
Case "id"