Files
GaCy-GO/tools/peak_counter_targets.lua
T

17 lines
753 B
Lua

-- Inspect the known native battle-target table, 32 rows per heartbeat.
do
local s=_G.__gacPeakCounterTargets1 or {};_G.__gacPeakCounterTargets1=s
if not s.done then
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_COUNTER_TARGET] '..tostring(v))end
local ok,err=pcall(function()
if not s.it then s.it=CS.RPG.GameCore.BattleTargetConfigExcelTable.dataDict:GetEnumerator()end
for i=1,32 do
if not s.it:MoveNext()then s.done=true;log('END');return end
local row=s.it.Current.Value;local name=tostring(row.AbilityName):lower()
if name:find('peak')or name:find('turn')then log('ROW '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))end
end
end)
if not ok then s.done=true;log('ERROR '..tostring(err))end
end
end