From c1c5b60fc8de730e6eb7ce9f6154b4dc000ca96f Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 15 Jun 2022 00:29:14 +0700 Subject: [PATCH] Ignore if max allowed is unlimited --- Bot/Games/Store.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bot/Games/Store.fs b/Bot/Games/Store.fs index 3231b4f..b460ddc 100644 --- a/Bot/Games/Store.fs +++ b/Bot/Games/Store.fs @@ -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 ->