fix: Fixes multiple factions bugs with sigil generation, lighting, and theft (#2375)

This commit is contained in:
Joe 2026-03-15 14:02:56 -04:00 • committed by GitHub
parent b0189ccf4a
commit e1ae970636
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 2 deletions

View file

@ -32,8 +32,14 @@ public abstract class BaseMonolith : BaseSystemController
return;
}
var oldSigil = m_Sigil;
m_Sigil = value;
if (oldSigil != null)
{
oldSigil.Light = LightType.Empty;
}
if (m_Sigil?.LastMonolith != null && m_Sigil.LastMonolith != this && m_Sigil.LastMonolith.Sigil == m_Sigil)
{
m_Sigil.LastMonolith.Sigil = null;
@ -91,6 +97,7 @@ public abstract class BaseMonolith : BaseSystemController
return;
}
m_Sigil.Light = LightType.Circle225;
m_Sigil.MoveToWorld(new Point3D(X, Y, Z + 18), Map);
}