Ignore if max allowed is unlimited

This commit is contained in:
Joseph Ferano 2022-06-15 00:29:14 +07:00
parent 199fc7c018
commit c1c5b60fc8

View File

@ -104,9 +104,9 @@ let getItemEmbeds owned (items : StoreItem list) =
embed.AddField(title, timeStr, true) |> ignore
| Stackable max ->
if owned
then embed.AddField($"Owned", $"{count}", true)
else embed.AddField($"Max Allowed", (if max > 1000 then "Unlimited" else string max), true)
|> ignore
then embed.AddField($"Owned", $"{count}", true) |> ignore
elif max < 1000 then embed.AddField($"Max Allowed", string max, true) |> ignore
else ()
// let totalOwned = getTotalOwnedOfItem item.Item (items |> List.map (fun i -> i.Item)) |> Option.defaultValue 1
// titleText <- $"{totalOwned}x " + titleText
| Modifiable effects ->