Files
GaCy-GO/tools/relic_rows_probe.lua
T

18 lines
931 B
Lua

-- Targeted capture of four identified 4.6 planar pieces, one row per heartbeat.
do
local ids={63295,63296,63305,63306}
local s=_G.__gacRelicRows20261102 or {index=1}; _G.__gacRelicRows20261102=s
if s.index>#ids then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase) then return end
local id=ids[s.index]
local ok,err=pcall(function()
local row=CS.RPG.GameCore.RelicConfigExcelTable.GetData(id)
CS.UnityEngine.Debug.Log('[GAC_RELIC_ROW] '..id..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))
end)
if not ok then CS.UnityEngine.Debug.Log('[GAC_RELIC_ROW] ERROR '..id..' '..tostring(err)) end
s.index=s.index+1
end