electricity bugfixes, destructable doors, ai improvements, removed rope, container changes
This commit is contained in:
@@ -126,9 +126,10 @@ namespace Subsurface.Items.Components
|
||||
if (powerUpTask==null || powerUpTask.IsFinished)
|
||||
{
|
||||
powerUpTask = new PropertyTask(Game1.gameSession.taskManager, item, IsRunning, 20.0f, "Power up the reactor");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
item.Condition -= temperature*deltaTime*0.00005f;
|
||||
|
||||
if (temperature > shutDownTemp)
|
||||
@@ -157,7 +158,7 @@ namespace Subsurface.Items.Components
|
||||
FissionRate = Math.Max(fissionRate, heat / 200.0f);
|
||||
|
||||
//the power generated by the reactor is equal to the temperature
|
||||
currPowerConsumption = -temperature;
|
||||
currPowerConsumption = -temperature*powerPerTemp;
|
||||
|
||||
if (item.currentHull != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user