<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:
parent
53f006cd3d
commit
1d7912bb8f
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue