fix: improve endgame clock and gameplay stability

This commit is contained in:
CAtlas0784 committed 2026-11-04 15:59:48 +07:00
1 parent ce6aabfc55
commit 658298ee86
46 files changed
+1915 -99

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
-- Read only affix groups explicitly referenced by the four captured relics.
do
local groups={{kind='main',group=55,max=10},{kind='main',group=56,max=5},{kind='sub',group=5,max=12}}
local s=_G.__gacRelicAffix20261102 or {group=1,id=1}; _G.__gacRelicAffix20261102=s
if s.group>#groups then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase) then return end
for i=1,3 do
local g=groups[s.group]; if not g then return end
local id=s.id
local ok,err=pcall(function()
local tableObj=g.kind=='main' and CS.RPG.GameCore.RelicMainAffixConfigExcelTable or CS.RPG.GameCore.RelicSubAffixConfigExcelTable
local row=tableObj.GetData(g.group,id)
CS.UnityEngine.Debug.Log('[GAC_RELIC_AFFIX] '..g.kind..' '..g.group..' '..id..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))
end)
if not ok then CS.UnityEngine.Debug.Log('[GAC_RELIC_AFFIX] ERROR '..g.kind..' '..g.group..' '..id..' '..tostring(err)) end
s.id=s.id+1; if s.id>g.max then s.id=1;s.group=s.group+1 end
end
end
+16
View File
@@ -0,0 +1,16 @@
-- Capture only four ItemConfigRelic rows, one per heartbeat, outside battle.
do
local ids={63295,63296,63305,63306}; local s=_G.__gacRelicItem20261102 or {index=1}; _G.__gacRelicItem20261102=s
if s.index>#ids then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase) then return end
local id=ids[s.index]
local ok,err=pcall(function()
local row=CS.RPG.GameCore.ItemConfigRelicExcelTable.GetData(id)
CS.UnityEngine.Debug.Log('[GAC_RELIC_ITEM] '..id..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))
end)
if not ok then CS.UnityEngine.Debug.Log('[GAC_RELIC_ITEM] ERROR '..id..' '..tostring(err)) end
s.index=s.index+1
end
+17
View File
@@ -0,0 +1,17 @@
-- Targeted capture of four identified 4.6 planar pieces, one row per heartbeat.
do
local ids={63295,63296,63305,63306}
local s=_G.__gacRelicRows20261102 or {index=1}; _G.__gacRelicRows20261102=s
if s.index>#ids then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase) then return end
local id=ids[s.index]
local ok,err=pcall(function()
local row=CS.RPG.GameCore.RelicConfigExcelTable.GetData(id)
CS.UnityEngine.Debug.Log('[GAC_RELIC_ROW] '..id..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))
end)
if not ok then CS.UnityEngine.Debug.Log('[GAC_RELIC_ROW] ERROR '..id..' '..tostring(err)) end
s.index=s.index+1
end
+22
View File
@@ -0,0 +1,22 @@
-- Temporary targeted metadata probe. One named type per heartbeat, outside battle.
do
local names={'RelicConfigExcelTable','RelicMainAffixConfigExcelTable','RelicSubAffixConfigExcelTable','ItemConfigRelicExcelTable','EquipmentConfigExcelTable'}
local s=_G.__gacRelicSchema20261102 or {index=1}; _G.__gacRelicSchema20261102=s
if s.index>#names then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase) then return end
local name=names[s.index]
local ok,err=pcall(function()
local a=typeof(CS.RPG.GameCore.AvatarExcelTable).Assembly
local t=a:GetType('RPG.GameCore.'..name)
CS.UnityEngine.Debug.Log('[GAC_RELIC_SCHEMA] TYPE '..name..' '..tostring(t))
if t then
local methods=t:GetMethods(flags)
for i=0,math.min(methods.Length-1,39) do if methods[i].DeclaringType==t then CS.UnityEngine.Debug.Log('[GAC_RELIC_SCHEMA] METHOD '..tostring(methods[i])) end end
end
end)
if not ok then CS.UnityEngine.Debug.Log('[GAC_RELIC_SCHEMA] ERROR '..name..' '..tostring(err)) end
s.index=s.index+1
end