Slower plasma fire and temperature decay (#28171)

* Slower plasma fire and temperature decay

* Build Rust library

* Build Rust library

* Build Rust library

---------

Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
This commit is contained in:
Charlie Nolan
2025-02-07 11:52:51 +00:00
committed by GitHub
co-authored by paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent e70f84bfb0
commit 9be5e7d206
5 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -120,7 +120,7 @@ pub(crate) const PLASMA_BURN_MIN_TEMP: f32 = 100.0 + T0C;
pub(crate) const PLASMA_BURN_OPTIMAL_TEMP: f32 = 1370.0 + T0C;
/// How much of the plasma are we willing to burn each tick?
pub(crate) const PLASMA_BURN_MAX_RATIO: f32 = 0.05;
pub(crate) const PLASMA_BURN_MAX_RATIO: f32 = 0.01;
/// How much of the plasma do we burn anyway if the ratio would make it really small?
pub(crate) const PLASMA_BURN_MIN_MOLES: f32 = 0.001;
@@ -148,10 +148,10 @@ pub(crate) const TEST_TOLERANCE: f32 = 0.1;
pub(crate) const SPACE_COOLING_THRESHOLD: f32 = T20C;
/// Lose this amount of heat energy per tick if above SPACE_COOLING_THRESHOLD.
pub(crate) const SPACE_COOLING_FLAT: f32 = 2000.0;
pub(crate) const SPACE_COOLING_FLAT: f32 = 200.0;
/// Lose this ratio of heat energy per tick if above SPACE_COOLING_THRESHOLD.
pub(crate) const SPACE_COOLING_RATIO: f32 = 0.002;
/// Lose this ratio of heat energy per Kelvin per tick if above SPACE_COOLING_THRESHOLD.
pub(crate) const SPACE_COOLING_TEMPERATURE_RATIO: f32 = 0.4;
/// Tiles with less than this much gas will become empty.
pub(crate) const MINIMUM_NONZERO_MOLES: f32 = 0.1;
+1 -1
View File
@@ -681,7 +681,7 @@ pub(crate) fn apply_tile_mode(
if my_next_tile.temperature() > SPACE_COOLING_THRESHOLD {
let excess_thermal_energy = my_next_tile.thermal_energy
- SPACE_COOLING_THRESHOLD * my_next_tile.heat_capacity();
let cooling = (SPACE_COOLING_FLAT + SPACE_COOLING_RATIO * excess_thermal_energy)
let cooling = (SPACE_COOLING_FLAT + SPACE_COOLING_TEMPERATURE_RATIO * my_next_tile.temperature())
.min(excess_thermal_energy);
my_next_tile.thermal_energy -= cooling;
}
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.