diff --git a/AuroraRecordGenerator/RecordEditor.xaml b/AuroraRecordGenerator/RecordEditor.xaml index b57c511..20ac1bc 100644 --- a/AuroraRecordGenerator/RecordEditor.xaml +++ b/AuroraRecordGenerator/RecordEditor.xaml @@ -109,7 +109,7 @@ GetSpeciesOptions() => Enum.GetValues(typeof(SpeciesSubType)).Cast().Select(Utility.SubspeciesNiceName); - private static IEnumerable GetSpeciesOptions(SpeciesType limitTo) - { - var targetAttr = limitTo.GetAttributeOfType()?.AssociatedSpecies; - if (targetAttr == null) - return GetSpeciesOptions(); - return from item in Enum.GetValues(typeof(SpeciesSubType)).Cast() - let attr = item.GetAttributeOfType() - where attr != null && attr.AssociatedSpecies == targetAttr - select Utility.SubspeciesNiceName(item); - } + private static IEnumerable GetSpeciesOptions(SpeciesType limitTo) => from item in Enum.GetValues(typeof(SpeciesSubType)).Cast() + let attr = item.GetAttributeOfType() + where attr != null && (attr.AssociatedSpecies == limitTo || attr.AssociatedSpecies == SpeciesType.None) + select Utility.SubspeciesNiceName(item); } } \ No newline at end of file diff --git a/AuroraRecordGenerator/RecordFormatterGenerationMethods.cs b/AuroraRecordGenerator/RecordFormatterGenerationMethods.cs index 021abc2..565d9b9 100644 --- a/AuroraRecordGenerator/RecordFormatterGenerationMethods.cs +++ b/AuroraRecordGenerator/RecordFormatterGenerationMethods.cs @@ -16,7 +16,7 @@ namespace AuroraRecordGenerator record.AppendLine(_targetRecord.Species.HasGender() ? $"Gender: {_targetRecord.Gender.Humanize()}" : "Gender: Not Applicable."); - record.AppendLine($"Citizenship: {_targetRecord.Citizenship.IfEmpty("None.")}"); + record.AppendLine($"Citizenship: {_targetRecord.Citizenship.IfEmpty("Not Specified.")}"); record.AppendLine($"Clearance Level: {_targetRecord.Clearance.IfEmpty("Not Specified")}"); record.AppendLine($"Employed As: {_targetRecord.EmployedAs.IfEmpty("Assistant")}"); if (_targetRecord.CharHeight != null) @@ -27,8 +27,8 @@ namespace AuroraRecordGenerator // identifying features var trimmedFeatures = _targetRecord.DistinguishingFeatures.Trim(); - if (trimmedFeatures.Length > 0) - record.AppendLine($"Distinguishing Features: {trimmedFeatures}"); + record.Append("Distinguishing Features: "); + record.AppendLine(trimmedFeatures.Length > 0 ? trimmedFeatures : "None noted."); record.AppendLine(); diff --git a/AuroraRecordGenerator/Types.cs b/AuroraRecordGenerator/Types.cs index a1aba93..88ca55d 100644 --- a/AuroraRecordGenerator/Types.cs +++ b/AuroraRecordGenerator/Types.cs @@ -34,7 +34,7 @@ namespace AuroraRecordGenerator [ProtoContract] public enum SpeciesSubType { - [ProtoEnum] + [ProtoEnum, SubspeciesMeta(SpeciesType.None, "N/A")] None = 0, [ProtoEnum, SubspeciesMeta(SpeciesType.Tajara, "M'sai")]