mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
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:
co-authored by
paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent
e70f84bfb0
commit
9be5e7d206
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user