mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Change bounds for default remnant types
This commit is contained in:
parent
cbad025fce
commit
5a1613f73b
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user