Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Closes #106
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluviolithic committed Dec 4, 2023
1 parent 90cf013 commit 257fa91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/client/UI/BillboardShops/EggShop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ local autoHatchGamepassID = ReplicatedStorage.Config.GamepassData.IDs["AutoHatch
local tripleHatchGamepassID = ReplicatedStorage.Config.GamepassData.IDs["3xHatch"].Value
local doubleLuckGamepassID = ReplicatedStorage.Config.GamepassData.IDs["2xLuck"].Value
local tripleLuckGamepassID = ReplicatedStorage.Config.GamepassData.IDs["3xLuck"].Value
local fasterHatchGamepassID = ReplicatedStorage.Config.GamepassData.IDs["FasterHatch"].Value

local hatchingUI = player.PlayerGui:WaitForChild "Hatching"

Expand Down Expand Up @@ -407,14 +408,18 @@ local function handleShop(shop): ()
buyEgg(1, true)
end)

shop.Background["2xLuck"].Activated:Connect(function()
shop.Background.Passes["2xLuck"].Activated:Connect(function()
MarketplaceService:PromptGamePassPurchase(player, doubleLuckGamepassID)
end)

shop.Background["3xLuck"].Activated:Connect(function()
shop.Background.Passes["3xLuck"].Activated:Connect(function()
MarketplaceService:PromptGamePassPurchase(player, tripleLuckGamepassID)
end)

shop.Background.Passes.FasterHatch.Activated:Connect(function()
MarketplaceService:PromptGamePassPurchase(player, fasterHatchGamepassID)
end)

listeners[shop] = function(keyCode: Enum.KeyCode): ()
if keyCode == Enum.KeyCode.E then
buyEgg(1, false)
Expand Down
2 changes: 1 addition & 1 deletion src/client/UI/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ require(script.SettingsUI)
require(script.FixRichText)
require(script.Inventories)
require(script.ChestTimerUI)
--require(script.BillboardShops)
require(script.BillboardShops)
return 0

0 comments on commit 257fa91

Please sign in to comment.