Ignore if max allowed is unlimited
This commit is contained in:
parent
199fc7c018
commit
c1c5b60fc8
@ -104,9 +104,9 @@ let getItemEmbeds owned (items : StoreItem list) =
|
|||||||
embed.AddField(title, timeStr, true) |> ignore
|
embed.AddField(title, timeStr, true) |> ignore
|
||||||
| Stackable max ->
|
| Stackable max ->
|
||||||
if owned
|
if owned
|
||||||
then embed.AddField($"Owned", $"{count}", true)
|
then embed.AddField($"Owned", $"{count}", true) |> ignore
|
||||||
else embed.AddField($"Max Allowed", (if max > 1000 then "Unlimited" else string max), true)
|
elif max < 1000 then embed.AddField($"Max Allowed", string max, true) |> ignore
|
||||||
|> ignore
|
else ()
|
||||||
// let totalOwned = getTotalOwnedOfItem item.Item (items |> List.map (fun i -> i.Item)) |> Option.defaultValue 1
|
// let totalOwned = getTotalOwnedOfItem item.Item (items |> List.map (fun i -> i.Item)) |> Option.defaultValue 1
|
||||||
// titleText <- $"{totalOwned}x " + titleText
|
// titleText <- $"{totalOwned}x " + titleText
|
||||||
| Modifiable effects ->
|
| Modifiable effects ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user