234
This commit is contained in:
1 parent
b48d1f68f6
commit
1ff7ef7e83
5 files changed
+37777
-1628
No files matched your search
@@ -1986,6 +1986,25 @@ closeBoardView = function()
|
||||
advanceTutorial(1)
|
||||
end
|
||||
|
||||
-- скупка «Тихого озера»: ведём к прилавку с подсказкой «Продать» внутри лавки (GuideTarget = "Sell"),
|
||||
-- поэтому стрелка идёт за лавкой, куда бы её ни переставили; маркер GuideSell — запасной вариант
|
||||
local function sellTargetW1()
|
||||
local shop = guideObject("Sell")
|
||||
if shop then
|
||||
for _, d in ipairs(shop:GetDescendants()) do
|
||||
if d:IsA("ProximityPrompt") and d:GetAttribute("Action") == "Sell" then
|
||||
local p = d.Parent
|
||||
local at = (p:IsA("BasePart") and p.Position) or (p:IsA("Attachment") and p.WorldPosition)
|
||||
if at then
|
||||
return at
|
||||
end
|
||||
end
|
||||
end
|
||||
return shop:IsA("Model") and shop:GetPivot().Position or shop.Position
|
||||
end
|
||||
return guideMarker("GuideSell")
|
||||
end
|
||||
|
||||
-- маршрут для текущего шага: точки ломаной (без игрока), подсказка и что подсветить; nil — линию не показываем
|
||||
local function guideRoute(step, pos, world)
|
||||
local inW1 = world and world.id == "World1"
|
||||
@@ -1996,7 +2015,7 @@ local function guideRoute(step, pos, world)
|
||||
elseif step == 2 and inW1 then
|
||||
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||
elseif step == 3 and inW1 then
|
||||
return { guideMarker("GuideSell") }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
||||
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
||||
end
|
||||
return nil
|
||||
end
|
||||
@@ -2080,7 +2099,7 @@ RunService.RenderStepped:Connect(function()
|
||||
end
|
||||
if not route and bagFull then
|
||||
local inW1 = world and world.id == "World1"
|
||||
local at = (inW1 and guideMarker("GuideSell")) or nearestSell(pos, world)
|
||||
local at = (inW1 and sellTargetW1()) or nearestSell(pos, world)
|
||||
route, hint, key = at and { at } or nil, "🎒 Сумка полна — продай рыбу!", inW1 and "Sell" or nil
|
||||
end
|
||||
guideHintText.Text = hint or ""
|
||||
|
||||
Reference in new issue
Block a user