Use faction keys for shell identity
This commit is contained in:
parent
392c24a7da
commit
8ea97a08f8
11 changed files with 77 additions and 10 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue