Set death type

This commit is contained in:
Noah Pilarski 2022-08-21 16:22:21 -04:00
parent d9d4fe7b3e
commit 6125761160
2 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,7 @@ namespace NewHorizons.Builder.Body
if (starModule.curve != null) controller.SetScaleCurve(starModule.curve);
controller.size = starModule.size;
controller.supernovaSize = starModule.supernovaSize;
controller.deathType = starModule.stellarDeathType;
controller.atmosphere = sunAtmosphere;
controller.controller = starController;
controller.supernova = supernova;
@ -217,6 +218,7 @@ namespace NewHorizons.Builder.Body
if (starModule.curve != null) controller.SetScaleCurve(starModule.curve);
controller.size = starModule.size;
controller.supernovaSize = starModule.supernovaSize;
controller.deathType = starModule.stellarDeathType;
controller.supernova = supernova;
controller.StartColour = starModule.tint;
controller.EndColour = starModule.endTint;

View File

@ -1,4 +1,5 @@
using NewHorizons.Builder.Body;
using NewHorizons.External.Modules.VariableSize;
using NewHorizons.Handlers;
using NewHorizons.Utility;
using System;
@ -53,6 +54,8 @@ namespace NewHorizons.Components.SizeControllers
public float lifespan = 22f; // minutes
public float supernovaSize = 50000f;
public StellarDeathType deathType;
private bool _isSupernova;
private float _supernovaStartTime;