mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
do a null check on the star tint
This commit is contained in:
parent
1b8d8fb658
commit
b72b24e01e
@ -153,13 +153,13 @@ namespace NewHorizons.Builder.Body
|
||||
supernovaVolume.AddComponent<OWCollider>();
|
||||
supernova._supernovaVolume = supernovaVolume.AddComponent<SupernovaDestructionVolume>();
|
||||
|
||||
ShockLayerRuleset shockLayerRuleset = sector.gameObject.AddComponent<ShockLayerRuleset>();
|
||||
var shockLayerRuleset = sector.gameObject.AddComponent<ShockLayerRuleset>();
|
||||
shockLayerRuleset._type = ShockLayerRuleset.ShockType.Radial;
|
||||
shockLayerRuleset._trailLength = 50;
|
||||
shockLayerRuleset._radialCenter = deathVolume.transform;
|
||||
shockLayerRuleset._innerRadius = starModule.size;
|
||||
shockLayerRuleset._outerRadius = starModule.size * 1.5f;
|
||||
shockLayerRuleset._color = shockLayerRuleset._color * starModule.tint.ToColor();
|
||||
shockLayerRuleset._outerRadius = starModule.size * OuterRadiusRatio;
|
||||
if (starModule.tint != null) shockLayerRuleset._color *= starModule.tint.ToColor();
|
||||
|
||||
return starController;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user