Экономика v3: таймер подарка в HUD, аренда в окне дома, отладочные команды

This commit is contained in:
heyshawtyy committed 2026-11-13 15:11:53 +05:00
1 parent 9623681f57
commit f9c2ff77bd
3 files changed
+51 -1

No files matched your search

@@ -2254,6 +2254,27 @@ if RunService:IsStudio() then
end
elseif op == "action" then
onRemote(player, a, b, c)
elseif op == "xp" then
-- опыт как за поимку (проверка наград за уровень)
local data = profiles[player]
if data then
addXp(player, data, a, "Debug")
end
return data and data.level
elseif op == "giftIn" then
-- следующий подарок за время — через a секунд
local g = Config.PlaytimeGifts[(giftIndex[player] or 0) + 1]
if g then
sessionStart[player] = os.time() - g.minutes * 60 + (a or 0)
setGiftAttr(player)
end
return player:GetAttribute("GiftNextAt")
elseif op == "houses" then
-- вызвать Houses[a](player, b, c) (spin, upgrade, collectRent с профилем)
if a == "collectRent" then
return Houses.collectRent(player, profiles[player])
end
return Houses[a](player, b, c)
elseif op == "grant" then
-- выдать рыбу как пойманную (для проверок рынка)
local data = profiles[player]