Obsolete pulsars

This commit is contained in:
Nick 2023-09-08 01:16:15 -04:00
parent a56c927110
commit 4ae5ec17b1
4 changed files with 6 additions and 8 deletions

View File

@ -42,11 +42,6 @@ namespace NewHorizons.Builder.Body
case StellarRemnantType.NeutronStar:
MakeNeutronStar(go, sector, mod, star.Config.Star);
break;
case StellarRemnantType.Pulsar:
MakeNeutronStar(go, sector, mod, star.Config.Star);
// TODO: add jets, up rotation speed (use a RotateTransform on the star instead of changing sidereal period)
break;
case StellarRemnantType.BlackHole:
MakeBlackhole(go, sector, star.Config.Star);
@ -146,8 +141,6 @@ namespace NewHorizons.Builder.Body
return MakeWhiteDwarf(planet, null, mod, progenitor, proxy);
case StellarRemnantType.NeutronStar:
return MakeNeutronStar(planet, null, mod, progenitor, proxy);
case StellarRemnantType.Pulsar:
return MakeNeutronStar(planet, null, mod, progenitor, proxy);
case StellarRemnantType.BlackHole:
return MakeBlackhole(planet, null, progenitor, proxy);
default:

View File

@ -459,6 +459,9 @@ namespace NewHorizons.External.Configs
if (Star != null)
{
if (!Star.goSupernova) Star.stellarDeathType = StellarDeathType.None;
// Gave up on supporting pulsars
if (Star.stellarRemnantType == StellarRemnantType.Pulsar) Star.stellarRemnantType = StellarRemnantType.NeutronStar;
}
// Signals no longer use two different variables for audio

View File

@ -154,7 +154,7 @@ namespace NewHorizons.External.Modules.VariableSize
[EnumMember(Value = @"default")] Default,
[EnumMember(Value = @"whiteDwarf")] WhiteDwarf,
[EnumMember(Value = @"neutronStar")] NeutronStar,
[EnumMember(Value = @"pulsar")] Pulsar,
[Obsolete] Pulsar,
[EnumMember(Value = @"blackHole")] BlackHole,
[EnumMember(Value = @"custom")] Custom
}

View File

@ -88,6 +88,8 @@ public static class SchemaExporter
schema.Definitions["NomaiTextType"].EnumerationNames.Remove("CairnVariant");
schema.Definitions["QuantumGroupType"].Enumeration.Remove("FailedValidation");
schema.Definitions["QuantumGroupType"].EnumerationNames.Remove("FailedValidation");
schema.Definitions["StellarRemnantType"].Enumeration.Remove("Pulsar");
schema.Definitions["StellarRemnantType"].EnumerationNames.Remove("Pulsar");
break;
case "Star System Schema":
schema.Definitions["NomaiCoordinates"].Properties["x"].UniqueItems = true;