From 5a1613f73b39608929d99dbc80620007314e41b1 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 26 Aug 2022 00:29:18 -0400 Subject: [PATCH] Change bounds for default remnant types --- NewHorizons/Builder/Body/StellarRemnantBuilder.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NewHorizons/Builder/Body/StellarRemnantBuilder.cs b/NewHorizons/Builder/Body/StellarRemnantBuilder.cs index a5b0d2c2..31ea505a 100644 --- a/NewHorizons/Builder/Body/StellarRemnantBuilder.cs +++ b/NewHorizons/Builder/Body/StellarRemnantBuilder.cs @@ -65,8 +65,8 @@ namespace NewHorizons.Builder.Body private static StellarRemnantType GetDefault(float progenitorSize) { - if (progenitorSize >= blackholeSize) return StellarRemnantType.BlackHole; - else if (neutronStarSize < progenitorSize && progenitorSize < blackholeSize) return StellarRemnantType.NeutronStar; + if (progenitorSize > blackholeSize) return StellarRemnantType.BlackHole; + else if (neutronStarSize < progenitorSize && progenitorSize <= blackholeSize) return StellarRemnantType.NeutronStar; else return StellarRemnantType.WhiteDwarf; } @@ -74,7 +74,7 @@ namespace NewHorizons.Builder.Body { if (star.stellarDeathType == StellarDeathType.None) return false; - return !(star.stellarRemnantType == StellarRemnantType.Default && star.size < whiteDwarfSize); + return !(star.stellarRemnantType == StellarRemnantType.Default && star.size <= whiteDwarfSize); } private static GameObject MakeWhiteDwarf(GameObject planetGO, Sector sector, IModBehaviour mod, StarModule progenitor, GameObject proxy = null)