Диковинки: вкладка коллекции и плашка поимки
This commit is contained in:
1 parent
a78bdc46fe
commit
087e9b0d9b
2 files changed
+108
No files matched your search
@@ -2337,6 +2337,21 @@ if RunService:IsStudio() then
|
||||
end
|
||||
elseif op == "action" then
|
||||
onRemote(player, a, b, c)
|
||||
elseif op == "curio" then
|
||||
-- поменять поле диковинки (chance, cond) на время проверки: Config.CurioById[a][b] = c
|
||||
local def = Config.CurioById[a]
|
||||
if def then
|
||||
def[b] = c
|
||||
end
|
||||
return def ~= nil
|
||||
elseif op == "roll" then
|
||||
-- ручная поимка в мире a (perfect = b): rollFish → grantFish, как настоящая; возвращает id
|
||||
local data = profiles[player]
|
||||
local fish = data and rollFish(player, data, a, 1, { manual = true, perfect = b, bait = c })
|
||||
if fish then
|
||||
grantFish(player, data, fish, { perfect = b, misses = 0 })
|
||||
return fish.id, fish.curio
|
||||
end
|
||||
elseif op == "xp" then
|
||||
-- опыт как за поимку (проверка наград за уровень)
|
||||
local data = profiles[player]
|
||||
|
||||
Reference in new issue
Block a user