Files
GaCy-GO/tools/peak_target_rows_probe.lua
T

16 lines
531 B
Lua
Raw Normal View History

do
if not _G.__gacPeakTargetRows1 then
_G.__gacPeakTargetRows1=true
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_TARGET_ROWS] '..tostring(v))end
local ok,err=pcall(function()
local ids=__TARGET_IDS__
for _,id in ipairs(ids)do
local row=CS.RPG.GameCore.BattleTargetExcelTable.dataDict[id]
if row==nil then error('Missing BattleTarget '..id)end
log('ROW '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))
end
log('END')
end)
if not ok then log('ERROR '..tostring(err))end
end
end