18 lines
929 B
Lua
18 lines
929 B
Lua
do
|
|||
|
|
if not _G.__gacPeakCustomStats1 then
|
||
|
|
_G.__gacPeakCustomStats1=true
|
||
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_CUSTOM_STATS] '..tostring(v))end
|
||
|
|
local ok,err=pcall(function()
|
||
|
|
local s=CS.RPG.Client.GlobalVars.s_ModuleManager.BattleModule.LastBattleStatistic
|
||
|
|
log('CUSTOM '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(s.customValues))
|
||
|
|
log('REPORT '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(s.reportCustomValues))
|
||
|
|
local module=CS.RPG.Client.GlobalVars.s_ModuleManager.ChallengePeakModule
|
||
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||
|
|
local peak=module:GetCurrentPeakGroup()
|
||
|
|
log('GROUP_TYPE '..tostring(peak:GetType()))
|
||
|
|
local fields=peak:GetType():GetFields(flags)
|
||
|
|
for i=0,math.min(fields.Length-1,23)do log('FIELD '..fields[i].Name..' '..tostring(fields[i].FieldType))end
|
||
|
|
end)
|
||
|
|
if not ok then log('ERROR '..tostring(err))end
|
||
|
|
end
|
||
|
|
end
|