Merge main into feature/ava2-unlock

Conflicts resolved by keeping both sides: AVA2 attribute lock materials
(50348/50349) and battle pass tickets from main alongside the unlock
branch's costume enchants, talismans and new rings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-16 18:14:39 +09:00
co-authored by Claude Opus 5.5
556 changed files with 213114 additions and 44 deletions
+14 -1
View File
@@ -2473,11 +2473,24 @@ void CInstanceBase::__UpdateEffectShown()
else
isShown = false;
}
m_GraphicThingInstance.SetAttachingEffectShown(isShown);
m_GraphicThingInstance.SetAttachingEffectShown(isShown && PORT_IsDisplayVisible());
}
bool CInstanceBase::PORT_IsDisplayVisible()
{
// AVA2 CActorInstance::IsShop and InstanceBase::__CanRender, including
// the original 100/60/40/20/10 metre range presets. Never hide the main actor.
CInstanceBase* main = __GetMainInstancePtr();
if (!main || main == this || GetRace() < 30000 || GetRace() > 30020)
return true;
static const unsigned ranges[] = {10000, 6000, 4000, 2000, 1000};
return NEW_GetDistanceFromDestInstance(*main) <= ranges[CPythonSystem::Instance().GetShopNamesRange()];
}
bool CInstanceBase::__CanRender()
{
if (!PORT_IsDisplayVisible())
return false;
if (!__IsInViewFrustum())
return false;
if (IsAffect(AFFECT_INVISIBILITY))