Files
GaCy-GO/tools/damage_servant_values_probe.lua
T

23 lines
1.0 KiB
Lua

do
if not _G.__gacServantValues1 then
local live=_G.__GAC_DAMAGE_ANALYST_LIVE_V7
local owner=live and live.statComponent
if owner then
local ok,err=pcall(function()
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local dict=owner:GetType():GetField('_ServantStt',flags):GetValue(owner)
if dict.Count==0 then return end
_G.__gacServantValues1=true
local it=dict:GetEnumerator(); local count=0
while count<16 and it:MoveNext() do
count=count+1; local v=it.Current.Value
local p=v:GetType():GetField('LJLDPJFOKCE',flags):GetValue(v)
CS.UnityEngine.Debug.Log('[GAC_SERVANT_VALUE] PROTO '..CS.System.Convert.ToBase64String(CS.Google.Protobuf.MessageExtensions.ToByteArray(p)))
CS.UnityEngine.Debug.Log('[GAC_SERVANT_VALUE] DAMAGE '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(v.FNFFCPLHPGI))
end
end)
if not ok then _G.__gacServantValues1=true;CS.UnityEngine.Debug.Log('[GAC_SERVANT_VALUE] ERROR '..tostring(err)) end
end
end
end