22 lines
1.0 KiB
Lua
22 lines
1.0 KiB
Lua
do
|
|||
|
|
if not _G.__gacDamageLiveValues1 then
|
||
|
|
local source=_G.__gacDamageStatField1
|
||
|
|
if source and source.owner then
|
||
|
|
_G.__gacDamageLiveValues1=true
|
||
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_DAMAGE_LIVE_VALUE] '..tostring(v))end
|
||
|
|
local ok,err=pcall(function()
|
||
|
|
local owner=source.owner
|
||
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||
|
|
for _,n in ipairs({'_totalBattleTurns','_totalBattleRounds','_lastSimulateTime','_totalSkillPerformTime','_totalAutoTurns'})do
|
||
|
|
log('VALUE '..n..' '..tostring(owner:GetType():GetField(n,flags):GetValue(owner)))
|
||
|
|
end
|
||
|
|
local chars=owner:GetType():GetField('_LightTeamStt',flags):GetValue(owner)
|
||
|
|
for i=0,math.min(chars.Length-1,3)do
|
||
|
|
log('AVATAR '..i..' '..CS.System.Convert.ToBase64String(CS.Google.Protobuf.MessageExtensions.ToByteArray(chars[i].avatarBattleInfo)))
|
||
|
|
log('DAMAGE '..i..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(chars[i].FNFFCPLHPGI))
|
||
|
|
end
|
||
|
|
end)
|
||
|
|
if not ok then log('ERROR '..tostring(err))end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|