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

Add Ghostly Manor area #159

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/client/Areas/Barriers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ local function unlockAreas(oldWasLoaded)
end
end

if requirement.Name == "Howling Woods" and oldWasLoaded then
if (requirement.Name == "Howling Woods" or requirement.Name == "Ghostly Manor") and oldWasLoaded then
AFKUnlockUIOnTween:Play()
end
end
Expand Down
7 changes: 6 additions & 1 deletion src/client/Areas/TeleportUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ function TeleportUI:_initialize()
local purchasedTeleporters = selectors.getPurchasedTeleporters(store:getState(), player.Name)
local target, targetAreaName = nil, nil

if areaRequirements["Howling Woods"].Value <= selectors.getStat(store:getState(), player.Name, "Strength") then
if areaRequirements["Ghostly Manor"].Value <= selectors.getStat(store:getState(), player.Name, "Strength") then
targetAreaName = "Ghostly Manor"
target = workspace.Teleports.AFK3TP
elseif
areaRequirements["Howling Woods"].Value <= selectors.getStat(store:getState(), player.Name, "Strength")
then
targetAreaName = "Howling Woods"
target = workspace.Teleports.AFK2TP
else
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 @@ -11,7 +11,7 @@ require(script.FixRichText)
require(script.Inventories)
require(script.ChestTimerUI)
require(script.BillboardShops)
require(script.NotificationUI)
--require(script.NotificationUI)
require(script.GiftUI)
require(script.RebirthUI)

Expand Down
6 changes: 6 additions & 0 deletions src/server/PlayerManager/ProfileTemplate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ return {
Active = false,
ViewedRewardPopup = false,
},
["Ghostly Manor"] = {
CurrentMissionNumber = 1,
CurrentMissionProgress = 0,
Active = false,
ViewedRewardPopup = false,
},
},

SavedSettings = {
Expand Down
6 changes: 6 additions & 0 deletions src/shared/State/DefaultStates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ return {
Active = false,
ViewedRewardPopup = false,
},
["Ghostly Manor"] = {
CurrentMissionNumber = 1,
CurrentMissionProgress = 0,
Active = false,
ViewedRewardPopup = false,
},
},

AudioData = {
Expand Down
Loading