More generic implementation of enemies defeated count that relies on the EnemyLoreInfo name and puts that into a dictionary

This commit is contained in:
2026-06-06 11:30:51 -07:00
parent 0f849f11dc
commit 07a7942d6d
19 changed files with 110 additions and 148 deletions
@@ -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();
}