More generic implementation of enemies defeated count that relies on the EnemyLoreInfo name and puts that into a dictionary
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.Serialization;
|
||||
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
[Meta, Id("npc_data")]
|
||||
public partial record NpcData
|
||||
{
|
||||
[Save("stele_list")]
|
||||
public required List<int> SteleDiscovered { get; set; }
|
||||
}
|
||||
@@ -26,18 +26,4 @@ public partial record SarcoData
|
||||
|
||||
[Save("shura_sarco")]
|
||||
public bool ShuraSarcoAcquired { get; set; } = false;
|
||||
}
|
||||
|
||||
[Meta, Id("npc_data")]
|
||||
public partial record NpcData
|
||||
{
|
||||
[Save("stele_list")]
|
||||
public required List<int> SteleDiscovered { get; set; }
|
||||
}
|
||||
|
||||
[Meta, Id("stat_data")]
|
||||
public partial record StatData
|
||||
{
|
||||
[Save("sproingy_defeated")]
|
||||
public int SproingyDefeated { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.Serialization;
|
||||
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
[Meta, Id("stat_data")]
|
||||
public partial record StatData
|
||||
{
|
||||
[Save("enemies_defeated")]
|
||||
public Dictionary<string, int> EnemiesDefeated { get; set; } = [];
|
||||
|
||||
public int TotalEnemiesDefeated => EnemiesDefeated.Values.Sum();
|
||||
}
|
||||
Reference in New Issue
Block a user