Reactor temperature has to stay above the meltdown temperature for 30 seconds before it explodes. The reactors now also have an output connection that sends out a signal when the temperature is critical. + Added reactor meltdown warning sirens & lights to vanilla subs. Closes #157

This commit is contained in:
Joonas Rikkonen
2018-01-10 00:32:58 +02:00
parent d1bb33be78
commit 5f2227489b
6 changed files with 45 additions and 36 deletions
@@ -11,6 +11,15 @@ namespace Barotrauma.Items.Components
{
private GUITickBox autoTempTickBox;
private const int GraphSize = 25;
private float graphTimer;
private int updateGraphInterval = 500;
private float[] fissionRateGraph = new float[GraphSize];
private float[] coolingRateGraph = new float[GraphSize];
private float[] tempGraph = new float[GraphSize];
private float[] loadGraph = new float[GraphSize];
partial void InitProjSpecific()
{
var button = new GUIButton(new Rectangle(410, 70, 40, 40), "-", "", GuiFrame);