From 7352a168f2ccf9b53df58082f75051fda9bde08a Mon Sep 17 00:00:00 2001 From: Eccentric Date: Sun, 4 Feb 2024 20:10:33 +0000 Subject: [PATCH] Improve item shops --- fortnite/interact.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/fortnite/interact.go b/fortnite/interact.go index 52490ec..528fcf1 100644 --- a/fortnite/interact.go +++ b/fortnite/interact.go @@ -108,6 +108,10 @@ func (c *CosmeticData) GetRandomItem() FAPI_Cosmetic { i := 0 for _, item := range c.Items { + if strings.Contains(item.Description, "TBD") { + continue + } + if i == randomInt { return item } @@ -127,6 +131,10 @@ func (c *CosmeticData) GetRandomItemByType(itemType string) FAPI_Cosmetic { continue } + if strings.Contains(item.Description, "TBD") { + continue + } + if i == randomInt { return item } @@ -146,6 +154,10 @@ func (c *CosmeticData) GetRandomItemByNotType(itemType string) FAPI_Cosmetic { continue } + if strings.Contains(item.Description, "TBD") { + continue + } + if i == randomInt { return item } @@ -272,7 +284,7 @@ func PreloadCosmetics(max int) error { } for _, item := range list { - if item.Introduction.BackendValue > max { + if item.Introduction.BackendValue == 0 || item.Introduction.BackendValue > max { continue }