Skip to content

Commit 9be5e7d

Browse files
Slower plasma fire and temperature decay (ParadiseSS13#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>
1 parent e70f84b commit 9be5e7d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

rust/src/milla/constants.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub(crate) const PLASMA_BURN_MIN_TEMP: f32 = 100.0 + T0C;
120120
pub(crate) const PLASMA_BURN_OPTIMAL_TEMP: f32 = 1370.0 + T0C;
121121

122122
/// How much of the plasma are we willing to burn each tick?
123-
pub(crate) const PLASMA_BURN_MAX_RATIO: f32 = 0.05;
123+
pub(crate) const PLASMA_BURN_MAX_RATIO: f32 = 0.01;
124124

125125
/// How much of the plasma do we burn anyway if the ratio would make it really small?
126126
pub(crate) const PLASMA_BURN_MIN_MOLES: f32 = 0.001;
@@ -148,10 +148,10 @@ pub(crate) const TEST_TOLERANCE: f32 = 0.1;
148148
pub(crate) const SPACE_COOLING_THRESHOLD: f32 = T20C;
149149

150150
/// Lose this amount of heat energy per tick if above SPACE_COOLING_THRESHOLD.
151-
pub(crate) const SPACE_COOLING_FLAT: f32 = 2000.0;
151+
pub(crate) const SPACE_COOLING_FLAT: f32 = 200.0;
152152

153-
/// Lose this ratio of heat energy per tick if above SPACE_COOLING_THRESHOLD.
154-
pub(crate) const SPACE_COOLING_RATIO: f32 = 0.002;
153+
/// Lose this ratio of heat energy per Kelvin per tick if above SPACE_COOLING_THRESHOLD.
154+
pub(crate) const SPACE_COOLING_TEMPERATURE_RATIO: f32 = 0.4;
155155

156156
/// Tiles with less than this much gas will become empty.
157157
pub(crate) const MINIMUM_NONZERO_MOLES: f32 = 0.1;

rust/src/milla/simulate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ pub(crate) fn apply_tile_mode(
681681
if my_next_tile.temperature() > SPACE_COOLING_THRESHOLD {
682682
let excess_thermal_energy = my_next_tile.thermal_energy
683683
- SPACE_COOLING_THRESHOLD * my_next_tile.heat_capacity();
684-
let cooling = (SPACE_COOLING_FLAT + SPACE_COOLING_RATIO * excess_thermal_energy)
684+
let cooling = (SPACE_COOLING_FLAT + SPACE_COOLING_TEMPERATURE_RATIO * my_next_tile.temperature())
685685
.min(excess_thermal_energy);
686686
my_next_tile.thermal_energy -= cooling;
687687
}

rustlibs.dll

513 Bytes
Binary file not shown.

rustlibs_prod.dll

511 Bytes
Binary file not shown.

tools/ci/librustlibs_ci.so

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)