This commit is contained in:
heyshawtyy committed 2026-11-04 13:32:09 +05:00
commit 73a2db8bb8
5 files changed
+3679748

No files matched your search

+3679482
View File
File diff suppressed because it is too large. Load diff
+35
View File
@@ -364,6 +364,7 @@ Config.QuestKinds = {
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
<<<<<<< HEAD
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
@@ -376,6 +377,40 @@ Config.QuestChains = {
}
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
=======
earn = { text = "Заработай %d 💰 на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
}
Config.QuestChains = {
{ name = "🎣 Утренний клёв", steps = { { "catch", 3 }, { "perfectCast", 2 }, { "sell", 3 }, { "catch", 5 }, { "uncommon", 1 } } },
{ name = "🔥 Без промаха", steps = { { "perfect", 3 }, { "combo", 3 }, { "catch", 6 }, { "earn", 80 }, { "combo", 5 } } },
{ name = "💎 Охота за редкостью", steps = { { "uncommon", 3 }, { "perfectCast", 3 }, { "rare", 1 }, { "sell", 8 }, { "buy", 1 } } },
{ name = "🏆 Мастер озера", steps = { { "combo", 6 }, { "catch", 10 }, { "perfect", 6 }, { "rare", 2 }, { "earn", 300 } } },
}
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
---------------------------------------------------------------- серия улова
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
-- срыв, ушедшая рыба или timeout секунд без улова — серия сгорает
Config.Combo = { step = 0.1, max = 2.0, timeout = 90 }
---------------------------------------------------------------- босс озера
-- раз в interval секунд в мир, где больше всего игроков, приплывает босс. Его ловят всем сервером:
-- каждая пойманная там рыба наносит урон = ранг редкости (+1 за подсечку без промаха).
-- Если за duration секунд урона хватило — награда всем, кто помог (× mult мира, минимум 40% за малый вклад)
Config.Boss = {
firstDelay = 240, interval = 600, duration = 180,
hpPerPlayer = 12,
reward = { coins = 300, xp = 250, potion = "Luck1" },
worlds = {
World1 = { name = "Сом-великан", fish = "Som", mutation = "Golden", scale = 5 },
World2 = { name = "Королевская акула", fish = "Shark", mutation = "Golden", scale = 3 },
World3 = { name = "Ледяной левиафан", fish = "Leviathan", mutation = "Rainbow", scale = 2.5 },
},
}
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
---------------------------------------------------------------- серия улова
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
@@ -426,7 +426,11 @@ local function claimCollection(player, worldId, rarity)
if rarity == "Master" then
local coins = Config.MasteryCoins * world.mult
data.coins += coins
<<<<<<< HEAD
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
=======
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
else
local r = Config.CollectionRewards[rarity]
if not r then
@@ -434,7 +438,11 @@ local function claimCollection(player, worldId, rarity)
end
data.coins += r.coins * world.mult
addXp(player, data, r.xp * world.mult)
<<<<<<< HEAD
notify(player, ("📖 +%d ⚪ +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
=======
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
updateStats(player)
sendInventory(player)
@@ -758,12 +766,17 @@ local function stopFishing(player, tellClient)
end
end
<<<<<<< HEAD
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
local function rollFish(player, data, worldId, luckMult, mods)
=======
local function rollFish(player, data, worldId, luckMult)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local zone = Config.Zones[worldId]
if not zone then
return nil
end
<<<<<<< HEAD
mods = mods or {}
local bait = mods.bait
local base = totalLuck(player, data) + (bait and bait.luck or 0)
@@ -771,6 +784,9 @@ local function rollFish(player, data, worldId, luckMult, mods)
base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
end
local luck = base * (luckMult or 1)
=======
local luck = totalLuck(player, data) * (luckMult or 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bonus = luck - 1
local weights, total = {}, 0
for i, f in ipairs(zone.fish) do
@@ -855,9 +871,12 @@ local function flyBobber(s, tool, target, dur, arc)
end
end
<<<<<<< HEAD
local autoFishing = {} -- [player] = токен работающей автоловли
local setAutoFish, grantFish -- объявлены ниже
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function onCast(player, power)
power = math.clamp(tonumber(power) or 0.6, 0, 1)
local data = profiles[player]
@@ -902,8 +921,12 @@ local function onCast(player, power)
local stats = Config.RodStats(data.rod, rodLevel(data))
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
<<<<<<< HEAD
local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1, { bait = bait })
=======
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if not fish then
remote:FireClient(player, "CastFail")
return
@@ -1007,6 +1030,7 @@ local function onCatch(player, success, misses)
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
end
<<<<<<< HEAD
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
grantFish = function(player, data, fish, ctx)
@@ -1020,6 +1044,15 @@ grantFish = function(player, data, fish, ctx)
setCombo(player, streak + 1)
end
fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
=======
-- серия: каждая рыба подряд дороже и даёт больше опыта
local fish = s.fish
local streak = combo[player] or 0
local comboMult = math.min(Config.Combo.max, 1 + Config.Combo.step * streak)
fish.value = math.floor(fish.value * comboMult + 0.5)
fish.xp = math.floor(fish.xp * comboMult + 0.5)
setCombo(player, streak + 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
table.insert(data.items, {
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
weight = fish.weight, value = fish.value, mutation = fish.mutation,
@@ -1045,7 +1078,11 @@ grantFish = function(player, data, fish, ctx)
if ctx.fromPos then
showFishFlight(player, fish, ctx.fromPos)
end
<<<<<<< HEAD
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = ctx.auto and 0 or streak + 1, auto = ctx.auto })
=======
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = streak + 1 })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local rank = Config.Rarities[fish.rarity].rank
questProgress(player, "catch", 1)
@@ -1055,6 +1092,7 @@ grantFish = function(player, data, fish, ctx)
if rank >= 3 then
questProgress(player, "rare", 1)
end
<<<<<<< HEAD
if not ctx.auto then
if ctx.misses == 0 then
questProgress(player, "perfect", 1)
@@ -1208,7 +1246,18 @@ setAutoFish = function(player, on, reason)
stopFishing(player, false)
end
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
=======
if misses == 0 then
questProgress(player, "perfect", 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
if s.perfect then
questProgress(player, "perfectCast", 1)
end
questProgress(player, "combo", streak + 1, true)
local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
bossHit(player, hrp and Config.WorldAt(hrp.Position), rank + (misses == 0 and 1 or 0))
end
---------------------------------------------------------------- скупка
@@ -1287,7 +1336,11 @@ local function buy(player, kind, id)
end
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
if data.coins < cost then
<<<<<<< HEAD
notify(player, "Нужно " .. cost .. " ⚪", RED)
=======
notify(player, "Нужно " .. cost .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= cost
@@ -1310,9 +1363,14 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
return
end
<<<<<<< HEAD
local price = Guild.price(data, potion.price)
if data.coins < price then
notify(player, "Нужно " .. price .. " ⚪", RED)
=======
if data.coins < potion.price then
notify(player, "Нужно " .. potion.price .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= price
@@ -1340,9 +1398,14 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. item.level, RED)
return
end
<<<<<<< HEAD
local price = Guild.price(data, item.price)
if data.coins < price then
notify(player, "Нужно " .. price .. " ⚪", RED)
=======
if data.coins < item.price then
notify(player, "Нужно " .. item.price .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= price
@@ -1392,11 +1455,14 @@ local function teleportTo(player, worldId)
end
if data.level < world.level then
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
<<<<<<< HEAD
return
end
local okRank, why = Guild.canEnter(data, world.id)
if not okRank then
notify(player, why, RED)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
markerName = world.id .. "Spawn"
@@ -1495,13 +1561,21 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
if nearSeller(player) then
sellItems(player, a)
else
<<<<<<< HEAD
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "SellAll" then
if nearSeller(player) then
sellItems(player, nil)
else
<<<<<<< HEAD
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "Teleport" then
teleportTo(player, a)
@@ -1655,7 +1729,10 @@ local function finishBoss(won)
if potion then
applyPotion(data, potion.bonus, potion.duration)
end
<<<<<<< HEAD
Guild.onBossWin(p, data)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
updateStats(p)
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
end
@@ -1725,8 +1802,11 @@ local function onPlayerAdded(player)
end
loadPasses(player)
ensureChain(data)
<<<<<<< HEAD
Guild.defaults(data)
Guild.onJoin(player, data)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
profiles[player] = data
loadedOk[player] = ok
local settings = type(data.settings) == "table" and data.settings or {}
@@ -1759,10 +1839,13 @@ end
Players.PlayerRemoving:Connect(function(player)
stopFishing(player, false)
combo[player], comboUntil[player] = nil, nil
<<<<<<< HEAD
autoFishing[player] = nil
if profiles[player] then
Guild.onLeave(profiles[player])
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
saveData(player)
profiles[player] = nil
loadedOk[player] = nil
@@ -1803,10 +1886,13 @@ task.spawn(function()
if data and data.boostUntil > os.time() - 2 then
updateStats(p)
end
<<<<<<< HEAD
-- бонус отдыха тратится, пока игрок рыбачит
if data and (fishing[p] or autoFishing[p]) then
Guild.spendRest(p, data, 1)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
breakCombo(p)
+6
View File
@@ -1827,6 +1827,7 @@ local function spawnNpc(spot, parent)
w.C0 = head.CFrame:Inverse() * p.CFrame
w.Parent = p
p.Parent = rig
<<<<<<< HEAD
return p
end
if spot:GetAttribute("Look") == "Elder" then
@@ -1844,6 +1845,11 @@ local function spawnNpc(spot, parent)
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
end
=======
end
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
local action = spot:GetAttribute("NpcAction")
if action then
@@ -235,12 +235,20 @@ local SOFT_EDGES = NumberSequence.new({
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
})
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
<<<<<<< HEAD
local HINT_FONT = Theme.HINT_FACE
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
-- Цвет — тёмное дерево
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = C.woodDark
=======
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = BLACK
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
plate.BackgroundTransparency = 0
corner(30).Parent = plate
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
@@ -266,7 +274,11 @@ end
-- уведомления — под подсказкой обучения, которая стоит в самом верху
local toasts = new("Frame", {
Size = UDim2.new(0, 900, 0, 200), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 84),
<<<<<<< HEAD
BackgroundTransparency = 1, ZIndex = 30, Parent = screen,
=======
BackgroundTransparency = 1, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
local toastOrder = 0
local toastTimers = {}
@@ -297,7 +309,11 @@ local function notify(msg, color)
end
local t, l = softPlate(
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
<<<<<<< HEAD
{ TextSize = 30, TextColor3 = color or C.text, Text = msg }
=======
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
)
popIn(t)
t:SetAttribute("Msg", msg)
@@ -345,7 +361,11 @@ local function showCatch(fish, extra)
catchName.TextColor3 = r.color
catchInfo.Text = ("<font color=\"%s\">%s</font>%s · %.2f кг"):format(
hex(r.color), r.name, mut and (" · <font color=\"" .. hex(mut.color) .. "\">" .. mut.name .. " x" .. mut.mult .. "</font>") or "", fish.weight)
<<<<<<< HEAD
catchValue.Text = ("⚪ %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
=======
catchValue.Text = ("💰 %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
catchCard.Visible = true
TweenService:Create(catchCard, TweenInfo.new(0.45, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Position = UDim2.new(0.5, 0, 0, 120) }):Play()
@@ -377,7 +397,11 @@ end
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
local statusLabel = softPlate(
<<<<<<< HEAD
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = screen },
=======
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
)
wobble(statusLabel, 1.2, 1.4)
@@ -970,7 +994,11 @@ questWin.render = function(tab)
end
text({
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
<<<<<<< HEAD
Text = ("%s <font color=\"#C0AC88\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
=======
Text = ("%s <font color=\"#AAB4CD\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
for i, st in ipairs(chain.steps) do
local done, cur = i < chain.step, i == chain.step
@@ -983,7 +1011,11 @@ questWin.render = function(tab)
})
text({
Size = UDim2.fromOffset(180, 28), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -14, 0, cur and 8 or 14), Font = TITLE, TextSize = 17,
<<<<<<< HEAD
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s ⚪ +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
=======
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s 💰 +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
if cur then
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
@@ -996,7 +1028,11 @@ questWin.render = function(tab)
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
text({
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
<<<<<<< HEAD
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s ⚪ +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
=======
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s 💰 +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
elseif tab == "daily" then
clear(dailyPage)
@@ -1304,7 +1340,11 @@ end
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
local gauge = new("Frame", {
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
<<<<<<< HEAD
BackgroundTransparency = 1, Visible = false, Parent = screen,
=======
BackgroundTransparency = 1, Visible = false, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
local function arcPoint(v, r)
@@ -1722,6 +1762,7 @@ local function setLook(obj, goal, instant)
end
end
<<<<<<< HEAD
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
local WEATHER_ATMO = {
Fog = { Density = 0.22, Haze = 1.5 },
@@ -1733,6 +1774,8 @@ local function weatherAtmo(prop)
return (add and add[prop]) or 0
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function applyLook(world, instant)
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
for _, w in ipairs(lookSources) do
@@ -1756,9 +1799,12 @@ local function applyLook(world, instant)
for prop, def in pairs(defaults) do
local v = look[section] and look[section][prop]
if v == nil then v = def end
<<<<<<< HEAD
if section == "atmosphere" and typeof(v) == "number" then
v += weatherAtmo(prop)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
local kind = typeof(v)
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
@@ -1775,10 +1821,15 @@ local function applyAmbience(world, instant)
end
table.clear(lookTweens)
world = world or Config.Lobby
<<<<<<< HEAD
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
if not Config.DayNight.enabled then
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
end
=======
local clock = (world and world.clock) or 14.5
setLook(Lighting, { ClockTime = clock }, instant)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
if cc then
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
@@ -1882,6 +1933,7 @@ local function enterWorld(w, instant)
end
end
<<<<<<< HEAD
-- погода сменилась: плавно пересчитываем дымку текущей локации
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
if lastWorldId ~= "none" and not loadingVisible() then
@@ -1901,6 +1953,8 @@ do
end)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
task.spawn(function()
local char = player.Character or player.CharacterAdded:Wait()
@@ -1978,6 +2032,7 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
local guideHint, guideHintText = softPlate(
<<<<<<< HEAD
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = screen },
{ TextSize = 42, Text = "" }
)
@@ -1985,6 +2040,12 @@ wobble(guideHint, 1.2, 1.6)
Theme.onLayout(function(compact)
guideHintText.TextSize = compact and 30 or 42
end)
=======
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = gui },
{ TextSize = 42, Text = "" }
)
wobble(guideHint, 1.2, 1.6)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local lastHint = nil
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
@@ -2185,7 +2246,11 @@ local function guideRoute(step, pos, world)
elseif step == 2 and inW1 then
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
elseif step == 3 and inW1 then
<<<<<<< HEAD
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
=======
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -2350,11 +2415,19 @@ local FIRE = Color3.fromRGB(255, 150, 60)
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
local comboBox = new("Frame", {
<<<<<<< HEAD
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = C.dark, Parent = comboBox }, { corner(3) })
=======
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = gui,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = comboBox }, { corner(3) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
local function refreshCombo(pop)
@@ -2377,6 +2450,7 @@ refreshCombo(false)
-- правая колонка: босс и цели
local rightCol = new("Frame", {
Size = UDim2.fromOffset(300, 0), AutomaticSize = Enum.AutomaticSize.Y, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -12, 0.5, 10),
<<<<<<< HEAD
BackgroundTransparency = 1, Parent = screen,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
@@ -2389,11 +2463,20 @@ Theme.onLayout(function(compact)
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
end)
=======
BackgroundTransparency = 1, Parent = gui,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossBox = new("Frame", { Size = UDim2.fromOffset(300, 78), BackgroundColor3 = WHITE, Visible = false, LayoutOrder = 1, Parent = rightCol },
{ corner(14), stroke(C.red, 2.5, 0.05), gradient(Color3.fromRGB(110, 30, 40), C.bg, 90) })
local bossTitle = text({ Size = UDim2.new(1, -80, 0, 24), Position = UDim2.fromOffset(12, 5), Font = TITLE, TextSize = 18, TextColor3 = Color3.fromRGB(255, 205, 120), TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = bossBox })
local bossTime = text({ Size = UDim2.fromOffset(60, 24), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 5), Font = TITLE, TextSize = 17, TextXAlignment = RIGHT, Text = "", Parent = bossBox })
<<<<<<< HEAD
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = C.dark, Parent = bossBox }, { corner(9) })
=======
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = bossBox }, { corner(9) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = WHITE, Parent = bossBack }, { corner(9), gradient(Color3.fromRGB(255, 120, 90), Color3.fromRGB(190, 30, 50), 0) })
local bossHpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = CENTER, ZIndex = 2, TextStrokeTransparency = 0.5, Text = "", Parent = bossBack })
local bossHint = text({ Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 54), Font = BODY2, TextSize = 12, TextColor3 = C.muted, Text = "", Parent = bossBox })
@@ -2408,7 +2491,11 @@ text({ Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 0, Font = TITLE, TextSize =
local function trackerLine(order, onClick)
local root = new("TextButton", { Size = UDim2.new(1, 0, 0, 38), BackgroundTransparency = 1, AutoButtonColor = false, Text = "", LayoutOrder = order, Parent = tracker })
local label = text({ Size = UDim2.new(1, 0, 0, 22), Font = BODY, TextSize = 14, RichText = true, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = root })
<<<<<<< HEAD
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = C.dark, Parent = root }, { corner(4) })
=======
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = root }, { corner(4) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
if onClick then
root.MouseButton1Click:Connect(onClick)
@@ -2463,7 +2550,11 @@ local function buyGoal()
elseif coins >= r.price then
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
end
<<<<<<< HEAD
return ("🎣 До «%s»: ещё <b>%s</b> ⚪"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
=======
return ("🎣 До «%s»: ещё <b>%s</b> 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
end
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
@@ -2473,7 +2564,11 @@ local function buyGoal()
if coins >= cost then
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
end
<<<<<<< HEAD
return ("✨ До улучшения +%d: ещё <b>%s</b> ⚪"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
=======
return ("✨ До улучшения +%d: ещё <b>%s</b> 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -2617,7 +2712,11 @@ end)
-- у скупщика после продажи: предложение купить то, на что уже хватает
local offerCard = new("Frame", {
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
<<<<<<< HEAD
BackgroundColor3 = WHITE, Visible = false, Parent = screen,
=======
BackgroundColor3 = WHITE, Visible = false, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { corner(16), stroke(C.green, 2.5, 0.05), gradient(Color3.fromRGB(30, 85, 55), C.bg, 90) })
local offerIcon = text({ Size = UDim2.fromOffset(70, 70), Position = UDim2.fromOffset(12, 13), TextSize = 46, TextXAlignment = CENTER, Text = "", Parent = offerCard })
local offerTitle = text({ Size = UDim2.new(1, -250, 0, 26), Position = UDim2.fromOffset(90, 12), Font = TITLE, TextSize = 19, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = offerCard })
@@ -2630,11 +2729,19 @@ end
local offerBuy = btn({ Size = UDim2.fromOffset(146, 52), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, TextSize = 18, Text = "", Parent = offerCard }, function()
if offerItem then
remote:FireServer("Buy", offerItem.kind, offerItem.id)
<<<<<<< HEAD
Audio.play("coins")
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
=======
playUiSound(DING, 0.5)
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "✕", TextSize = 14, Parent = offerCard }, hideOffer)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
bestOffer = function(bagWasFull)
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
@@ -2686,7 +2793,11 @@ showOffer = function(o)
offerIcon.Text = o.icon
offerTitle.Text = o.title
offerDesc.Text = o.desc
<<<<<<< HEAD
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
=======
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
offerCard.Visible = true
popIn(offerCard, 0.6)
task.delay(9, function()
@@ -2715,9 +2826,12 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
setState("waiting")
startCastCam(a, b)
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
<<<<<<< HEAD
if action == "Escaped" then
Audio.play("escape")
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if action == "CastFail" and castTool and castTool.Parent then
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
end
@@ -2746,12 +2860,20 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
Audio.play("sparkle")
end
elseif action == "Sold" then
<<<<<<< HEAD
Audio.play("coins")
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " ⚪", C.gold)
notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
=======
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " 💰", C.gold)
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- монеты приходят атрибутом чуть позже события, поэтому предложение — с задержкой
local wasFull = offerState.bagWasFull
offerState.bagWasFull = false
@@ -2780,17 +2902,30 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
refreshDots()
refreshTracker()
elseif action == "QuestDone" then
<<<<<<< HEAD
notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
Audio.play("quest")
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
Audio.play("fanfare")
=======
notify(("✅ %s +%s 💰 +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
playUiSound(DING, 0.6)
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s 💰 +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
playUiSound(DING, 0.8)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "ComboLost" then
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
elseif action == "BossStart" then
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
<<<<<<< HEAD
Audio.play("quest")
=======
playUiSound(DING, 0.8)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "BossHit" then
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
elseif action == "BossDone" then
@@ -2800,7 +2935,11 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
end
elseif action == "BossReward" then
<<<<<<< HEAD
notify(("🎁 За босса: +%s ⚪ +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
=======
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "OpenShop" then
shopWin.open("rods")
elseif action == "OpenQuests" then