Restructure Sigil implementation, add all sigils to debug menu
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user