From 2ab5d79a81db1cc3693f5e436a55bed3b6b4da30 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 15 Jul 2022 09:26:08 -0400 Subject: [PATCH 1/2] Fix sun morb for real my bad --- .../Components/SizeControllers/StarEvolutionController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NewHorizons/Components/SizeControllers/StarEvolutionController.cs b/NewHorizons/Components/SizeControllers/StarEvolutionController.cs index 2da729c6..063a526b 100644 --- a/NewHorizons/Components/SizeControllers/StarEvolutionController.cs +++ b/NewHorizons/Components/SizeControllers/StarEvolutionController.cs @@ -151,7 +151,9 @@ namespace NewHorizons.Components.SizeControllers // Use the age if theres no resizing happening, else make it get redder the larger it is or wtv var t = _age / (lifespan * 60f); if (maxScale > 0) t = CurrentScale / maxScale; - if (t < 1f) + + // Only go to 98% else if it reaches the endSurfaceMaterial it'll morb + if (t < 0.98f) { _currentColour = Color.Lerp(_startColour, _endColour, t); supernova._surface._materials[0].Lerp(_startSurfaceMaterial, _endSurfaceMaterial, t); @@ -268,9 +270,7 @@ namespace NewHorizons.Components.SizeControllers { lod.material.SetFloat("_InnerRadius", CurrentScale); lod.material.SetFloat("_OuterRadius", CurrentScale * StarBuilder.OuterRadiusRatio); - - // These break once it reaches endColour and I have no idea why - //lod.material.SetColor("_SkyColor", _currentColour); + lod.material.SetColor("_SkyColor", _currentColour); } } } From 2378a1ae545b1a4fcd9ce2e499a03028643063f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 15 Jul 2022 13:28:16 +0000 Subject: [PATCH 2/2] Updated Schemas --- NewHorizons/Schemas/body_schema.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/NewHorizons/Schemas/body_schema.json b/NewHorizons/Schemas/body_schema.json index c5f9c369..61854c6d 100644 --- a/NewHorizons/Schemas/body_schema.json +++ b/NewHorizons/Schemas/body_schema.json @@ -530,6 +530,14 @@ "description": "The internal radius (in meters) of the dimension. The default is 1705.", "format": "float", "default": 1705.0 + }, + "allowedEntrances": { + "type": "array", + "description": "An array of integers from 0-5. By default, all entrances are allowed. To force this dimension to warp players in from only one point (like the anglerfish nest dimension in the base game) set this value to [3], [5], or similar. Values of 0-5 only.", + "items": { + "type": "integer", + "format": "int32" + } } } }, @@ -571,6 +579,14 @@ "lightTint": { "description": "The color of the shafts of light coming from the entrances to the node. Leave blank for the default yellowish color: (131, 124, 105, 255)", "$ref": "#/definitions/MColor" + }, + "possibleExits": { + "type": "array", + "description": "An array of integers from 0-5. By default, all entrances are allowed. To force this node to warp players out from only one hole set this value to [3], [5], or similar. Values of 0-5 only.", + "items": { + "type": "integer", + "format": "int32" + } } } },