Use faction keys for shell identity

This commit is contained in:
Meta Vens 2026-06-16 11:43:37 +01:00
commit 8ea97a08f8
11 changed files with 77 additions and 10 deletions

View file

@ -254,6 +254,11 @@ public class Galaxy
private static Faction ProjectFaction(AetheriaRuntimeCorporation corporation)
{
if (string.IsNullOrWhiteSpace(corporation.CorporationKey))
{
throw new InvalidOperationException($"Typed catalog corporation {corporation.Name} has no corporation key.");
}
return new Faction
{
ID = ParseLegacyId(corporation.LegacyId, nameof(corporation.LegacyId), corporation.Name),