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

Commit

Permalink
Add Ghostly Manor area
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluviolithic committed Feb 11, 2024
1 parent 7125b4e commit b07200b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
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

0 comments on commit b07200b

Please sign in to comment.