123
This commit is contained in:
1 parent
1bb038816b
commit
57ba58f0ca
8 files changed
+180
-164
No files matched your search
+45
-41
@@ -115,20 +115,20 @@ end
|
||||
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
||||
function Config.CanCastFrom(world, pos, humanoid)
|
||||
if not world then
|
||||
return "Здесь нет рыбы — иди в один из миров 🌍"
|
||||
return "🌍 Тут нет рыбы"
|
||||
end
|
||||
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
||||
if humanoid then
|
||||
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
||||
end
|
||||
if inWater then
|
||||
return "Из воды закидывать нельзя — выйди на берег или на причал"
|
||||
return "🏊 Выйди из воды"
|
||||
end
|
||||
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
||||
return "Встань на землю, чтобы закинуть удочку"
|
||||
return "Встань на землю"
|
||||
end
|
||||
if Config.WaterGap(world, pos) > Config.CastReach then
|
||||
return "Подойди к воде: закидывать можно не дальше 2 м от берега"
|
||||
return "🌊 Подойди к воде"
|
||||
end
|
||||
return true
|
||||
end
|
||||
@@ -2691,10 +2691,10 @@ local function addXp(player, data, amount)
|
||||
leveled = true
|
||||
end
|
||||
if leveled then
|
||||
notify(player, "⭐ Новый уровень: " .. data.level .. "! Удача +" .. math.floor(Config.LuckPerPlayerLevel * 100) .. "%", GOLD)
|
||||
notify(player, "⭐ Уровень " .. data.level .. "!", GOLD)
|
||||
for _, w in ipairs(Config.Worlds) do
|
||||
if w.level == data.level and not w.soon then
|
||||
notify(player, "🌍 Открыт новый мир: " .. w.icon .. " " .. w.name .. "!", w.color)
|
||||
notify(player, "🌍 Открыт: " .. w.icon .. " " .. w.name, w.color)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -2750,7 +2750,7 @@ local function questProgress(player, kind, amount)
|
||||
q.progress = math.min(q.goal, q.progress + amount)
|
||||
changed = true
|
||||
if q.progress >= q.goal then
|
||||
notify(player, "📜 Задание выполнено! Забери награду (клавиша Q)", GOLD)
|
||||
notify(player, "📜 Задание готово! (Q)", GOLD)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -2787,7 +2787,7 @@ local function claimDaily(player)
|
||||
end
|
||||
local t = today()
|
||||
if data.daily.last >= t then
|
||||
notify(player, "🎁 Сегодня награда уже получена. Приходи завтра!", Color3.fromRGB(255, 200, 120))
|
||||
notify(player, "🎁 Приходи завтра", Color3.fromRGB(255, 200, 120))
|
||||
return
|
||||
end
|
||||
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
||||
@@ -2823,7 +2823,7 @@ local function claimCollection(player, worldId, rarity)
|
||||
end
|
||||
for _, f in ipairs(zone.fish) do
|
||||
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
||||
notify(player, "Сначала поймай всех рыб этой группы!", RED)
|
||||
notify(player, "Сначала поймай всех", RED)
|
||||
return
|
||||
end
|
||||
end
|
||||
@@ -2831,7 +2831,7 @@ local function claimCollection(player, worldId, rarity)
|
||||
if rarity == "Master" then
|
||||
local coins = Config.MasteryCoins * world.mult
|
||||
data.coins += coins
|
||||
notify(player, ("🏆 Мир «%s» собран! +%d 💰 и +%d%% удачи навсегда"):format(world.name, coins, math.floor(Config.MasteryLuck * 100 + 0.5)), GOLD)
|
||||
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
||||
else
|
||||
local r = Config.CollectionRewards[rarity]
|
||||
if not r then
|
||||
@@ -2839,7 +2839,7 @@ local function claimCollection(player, worldId, rarity)
|
||||
end
|
||||
data.coins += r.coins * world.mult
|
||||
addXp(player, data, r.xp * world.mult)
|
||||
notify(player, ("📖 Коллекция «%s»: +%d 💰 +%d XP"):format(Config.Rarities[rarity].name, r.coins * world.mult, r.xp * world.mult), GREEN)
|
||||
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
||||
end
|
||||
updateStats(player)
|
||||
sendInventory(player)
|
||||
@@ -3246,12 +3246,12 @@ local function onCast(player, power)
|
||||
local target, dist = findWater(hrp, world, power)
|
||||
if not target then
|
||||
remote:FireClient(player, "CastFail")
|
||||
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
|
||||
notify(player, "🌊 Подойди к воде", Color3.fromRGB(255, 200, 120))
|
||||
return
|
||||
end
|
||||
if #data.items >= bagCapacity(player, data) then
|
||||
remote:FireClient(player, "CastFail")
|
||||
notify(player, "🎒 Сумка полна! Продай рыбу в скупке.", RED)
|
||||
notify(player, "🎒 Сумка полна!", RED)
|
||||
return
|
||||
end
|
||||
|
||||
@@ -3324,7 +3324,7 @@ local function onCast(player, power)
|
||||
if fishing[player] == s and s.stage == "bite" then
|
||||
stopFishing(player, false)
|
||||
remote:FireClient(player, "Escaped")
|
||||
notify(player, "Рыба ушла… не успел вытащить.", RED)
|
||||
notify(player, "🐟 Рыба ушла", RED)
|
||||
end
|
||||
end)
|
||||
end
|
||||
@@ -3352,7 +3352,7 @@ local function onCatch(player, success, misses)
|
||||
if failed then
|
||||
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
||||
remote:FireClient(player, "Escaped")
|
||||
notify(player, "Рыба сорвалась!", RED)
|
||||
notify(player, "🐟 Сорвалась!", RED)
|
||||
return
|
||||
end
|
||||
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
||||
@@ -3445,7 +3445,7 @@ local function sellItems(player, filterUid)
|
||||
end
|
||||
if count == 0 then
|
||||
if filterUid == nil then
|
||||
notify(player, "Нечего продавать — сначала поймай рыбу!", Color3.fromRGB(255, 200, 120))
|
||||
notify(player, "🎒 Сумка пуста", Color3.fromRGB(255, 200, 120))
|
||||
end
|
||||
return
|
||||
end
|
||||
@@ -3471,12 +3471,12 @@ local function buy(player, kind, id)
|
||||
end
|
||||
local lvl = rodLevel(data, id)
|
||||
if lvl >= Config.RodUpgrade.maxLevel then
|
||||
notify(player, "Удочка уже улучшена до максимума ★★★★★", GOLD)
|
||||
notify(player, "★★★★★ Максимум", GOLD)
|
||||
return
|
||||
end
|
||||
local cost = Config.UpgradeCost(rod, lvl)
|
||||
if data.coins < cost then
|
||||
notify(player, "Не хватает монет: нужно " .. cost .. " 💰", RED)
|
||||
notify(player, "Нужно " .. cost .. " 💰", RED)
|
||||
return
|
||||
end
|
||||
data.coins -= cost
|
||||
@@ -3495,17 +3495,17 @@ local function buy(player, kind, id)
|
||||
return
|
||||
end
|
||||
if potion.level and data.level < potion.level then
|
||||
notify(player, "Нужен уровень " .. potion.level .. "!", RED)
|
||||
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||
return
|
||||
end
|
||||
if data.coins < potion.price then
|
||||
notify(player, "Не хватает монет: нужно " .. potion.price .. " 💰", RED)
|
||||
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
||||
return
|
||||
end
|
||||
data.coins -= potion.price
|
||||
applyPotion(data, potion.bonus, potion.duration)
|
||||
updateStats(player)
|
||||
notify(player, ("🍀 %s: удача +%d%% на %d мин"):format(potion.name, potion.bonus * 100, potion.duration / 60), GREEN)
|
||||
notify(player, ("🍀 +%d%% удачи, %d мин"):format(potion.bonus * 100, potion.duration / 60), GREEN)
|
||||
return
|
||||
end
|
||||
local list, owned
|
||||
@@ -3522,16 +3522,16 @@ local function buy(player, kind, id)
|
||||
end
|
||||
if not owned[id] then
|
||||
if data.level < item.level then
|
||||
notify(player, "Нужен уровень " .. item.level .. "!", RED)
|
||||
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||
return
|
||||
end
|
||||
if data.coins < item.price then
|
||||
notify(player, "Не хватает монет: нужно " .. item.price .. " 💰", RED)
|
||||
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
||||
return
|
||||
end
|
||||
data.coins -= item.price
|
||||
owned[id] = true
|
||||
notify(player, "Куплено: " .. item.name .. "!", GREEN)
|
||||
notify(player, "✅ " .. item.name, GREEN)
|
||||
end
|
||||
if kind == "Rod" then
|
||||
data.rod = id
|
||||
@@ -3561,11 +3561,11 @@ local function teleportTo(player, worldId)
|
||||
return
|
||||
end
|
||||
if world.soon then
|
||||
notify(player, world.icon .. " " .. world.name .. " скоро откроется! Следи за обновлениями.", world.color)
|
||||
notify(player, world.icon .. " " .. world.name .. " — скоро!", world.color)
|
||||
return
|
||||
end
|
||||
if data.level < world.level then
|
||||
notify(player, ("🔒 %s откроется на %d уровне"):format(world.name, world.level), RED)
|
||||
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||
return
|
||||
end
|
||||
markerName = world.id .. "Spawn"
|
||||
@@ -3652,13 +3652,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
||||
if nearSeller(player) then
|
||||
sellItems(player, a)
|
||||
else
|
||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||
end
|
||||
elseif action == "SellAll" then
|
||||
if nearSeller(player) then
|
||||
sellItems(player, nil)
|
||||
else
|
||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||
end
|
||||
elseif action == "Teleport" then
|
||||
teleportTo(player, a)
|
||||
@@ -3684,7 +3684,7 @@ MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passI
|
||||
if gp.id == passId then
|
||||
passes[player] = passes[player] or {}
|
||||
passes[player][gp.key] = true
|
||||
notify(player, "Спасибо за покупку! " .. gp.icon .. " " .. gp.name .. " активирован", GOLD)
|
||||
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
||||
if gp.key == "VIP" then
|
||||
vipTag(player)
|
||||
end
|
||||
@@ -3720,7 +3720,7 @@ MarketplaceService.ProcessReceipt = function(info)
|
||||
end
|
||||
if product.boost then
|
||||
applyPotion(data, product.boost, product.duration)
|
||||
notify(player, ("Спасибо! Удача +%d%% на %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
||||
notify(player, ("🍀 +%d%% удачи, %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
||||
end
|
||||
table.insert(data.receipts, info.PurchaseId)
|
||||
if #data.receipts > 50 then
|
||||
@@ -3740,7 +3740,7 @@ task.spawn(function()
|
||||
workspace:SetAttribute("Event", currentEvent.id)
|
||||
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
||||
for _, p in ipairs(Players:GetPlayers()) do
|
||||
notify(p, "🎉 Событие: " .. currentEvent.name .. " — " .. currentEvent.desc, GOLD)
|
||||
notify(p, "🎉 " .. currentEvent.name, GOLD)
|
||||
updateStats(p)
|
||||
end
|
||||
task.wait(currentEvent.duration)
|
||||
@@ -4059,6 +4059,8 @@ local SOFT_EDGES = NumberSequence.new({
|
||||
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||
})
|
||||
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
|
||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
||||
local function softPlate(props, textProps)
|
||||
local plate = new("Frame", props)
|
||||
@@ -4067,11 +4069,13 @@ local function softPlate(props, textProps)
|
||||
corner(30).Parent = plate
|
||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
||||
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, Font = TITLE, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
||||
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
||||
for k, v in pairs(textProps) do
|
||||
d[k] = v
|
||||
end
|
||||
return plate, text(d)
|
||||
local label = text(d)
|
||||
label.FontFace = HINT_FONT
|
||||
return plate, label
|
||||
end
|
||||
local function popIn(obj, from)
|
||||
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
||||
@@ -4195,7 +4199,7 @@ end
|
||||
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
||||
local statusLabel = softPlate(
|
||||
{ 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 },
|
||||
{ TextSize = 36, Text = "🎣 Ждём поклёвку… (клик — смотать)" }
|
||||
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||
)
|
||||
wobble(statusLabel, 1.2, 1.4)
|
||||
local mgFrame = new("Frame", {
|
||||
@@ -4805,7 +4809,7 @@ robuxWin.render = function(tab)
|
||||
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
||||
onClick = function()
|
||||
if not it.id or it.id == 0 then
|
||||
notify("Товар ещё не настроен: впиши его ID в FishConfig", Color3.fromRGB(255, 200, 120))
|
||||
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||
return
|
||||
end
|
||||
if tab == "passes" then
|
||||
@@ -5467,7 +5471,7 @@ local function advanceTutorial(step)
|
||||
guideStep = step
|
||||
remote:FireServer("Tutorial", step)
|
||||
if step >= Config.TutorialDone then
|
||||
notify("🎓 Обучение пройдено! Дальше — сам: лови, улучшай удочку, открывай миры", C.gold)
|
||||
notify("🎓 Обучение пройдено!", C.gold)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -5599,11 +5603,11 @@ end
|
||||
local function guideRoute(step, pos, world)
|
||||
local inW1 = world and world.id == "World1"
|
||||
if step == 0 and not world then
|
||||
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку «Как играть»", "Board"
|
||||
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку", "Board"
|
||||
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
||||
return { guideMarker("GuidePortal") }, "🌊 Иди в портал «Тихое озеро»", "Portal"
|
||||
return { guideMarker("GuidePortal") }, "🌊 Иди в портал", "Portal"
|
||||
elseif step == 2 and inW1 then
|
||||
return { guideMarker("GuideFishSpot") }, "🎣 Иди на причал, зажми ЛКМ и отпусти — заброс!", "Pier"
|
||||
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||
elseif step == 3 and inW1 then
|
||||
local route = {}
|
||||
local rel = pos - W1
|
||||
@@ -5611,7 +5615,7 @@ local function guideRoute(step, pos, world)
|
||||
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
||||
end
|
||||
table.insert(route, guideMarker("GuideSell"))
|
||||
return route, "💰 Продай рыбу в скупке", "Sell"
|
||||
return route, "💰 Продай рыбу", "Sell"
|
||||
end
|
||||
return nil
|
||||
end
|
||||
@@ -5755,7 +5759,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c)
|
||||
advanceTutorial(Config.TutorialDone)
|
||||
end
|
||||
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
||||
notify(("Продано рыб: %d → +%s 💰"):format(b, fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||
elseif action == "Inventory" then
|
||||
inventory = a or {}
|
||||
discovered = b or {}
|
||||
|
||||
Reference in new issue
Block a user