Restructure Sigil implementation, add all sigils to debug menu

This commit is contained in:
2026-06-04 14:59:35 -07:00
parent 6b7bbd71af
commit b9c1058566
8 changed files with 171 additions and 79 deletions
+22 -1
View File
@@ -5,6 +5,7 @@ using Godot;
using System.Linq;
using System.Threading.Tasks;
using Zennysoft.Game.Ma;
using Zennysoft.Ma;
using Zennysoft.Ma.Adapter;
[Meta(typeof(IAutoNode))]
@@ -59,7 +60,7 @@ public partial class Sarco : Node3D
public async Task EquipAffinity()
{
_player.SetSigil(new Sigil() { ElementType = Affinity });
_player.SetSigil(GetSigilByAffinity());
}
public async Task ShowFlower()
@@ -122,4 +123,24 @@ public partial class Sarco : Node3D
if (Affinity == ElementType.Shura)
_game.SarcoData.ShuraSarcoAcquired = true;
}
private ISigil GetSigilByAffinity()
{
if (Affinity == ElementType.Aeolic)
return new AeolicSigil();
if (Affinity == ElementType.Igneous)
return new IgneousSigil();
if (Affinity == ElementType.Telluric)
return new TelluricSigil();
if (Affinity == ElementType.Hydric)
return new HydricSigil();
if (Affinity == ElementType.Ferrum)
return new FerrumSigil();
if (Affinity == ElementType.Sankta)
return new SanktaSigil();
if (Affinity == ElementType.Shura)
return new ShuraSigil();
return new NoneSigil();
}
}