This commit is contained in:
listik committed 2026-11-02 23:35:42 +03:00
1 parent 1bb038816b
commit 57ba58f0ca
8 files changed
+180 -164

No files matched your search

+27 -27
View File
@@ -242,10 +242,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
@@ -301,7 +301,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
@@ -338,7 +338,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
@@ -374,7 +374,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
@@ -382,7 +382,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
@@ -390,7 +390,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)
@@ -797,12 +797,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
@@ -875,7 +875,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
@@ -903,7 +903,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 } })
@@ -996,7 +996,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
@@ -1022,12 +1022,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
@@ -1046,17 +1046,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
@@ -1073,16 +1073,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
@@ -1112,11 +1112,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"
@@ -1203,13 +1203,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)
@@ -1235,7 +1235,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
@@ -1271,7 +1271,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
@@ -1291,7 +1291,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)