mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 11:05:16 +01:00
[MIRROR] Adds spaces around logical operators [MDB IGNORE] (#18776)
* Adds spaces around logical operators * Update code/modules/admin/verbs/admingame.dm Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
/**
|
||||
* Proc to transfer x moles of x temp nob to x moles of x temp trit.
|
||||
*
|
||||
*
|
||||
* Arguments:
|
||||
* * nob_moles: Moles for the nob (origin)
|
||||
* * nob_temp: Temp for the nob (origin)
|
||||
@@ -36,17 +36,17 @@
|
||||
|
||||
var/initial_pressure = second_mix.return_pressure()
|
||||
// A fixed number would mean transfer is too small for high temps. So we make it scaled.
|
||||
|
||||
|
||||
if(isnull(additional_pressure))
|
||||
additional_pressure = first_mix.return_pressure() / 10
|
||||
|
||||
|
||||
/* ERROR MARGIN CALCULATION
|
||||
* We calculate how much would the pressure change if MOLAR_ACCURACY amount of hothotgas is imparted on the cold mix.
|
||||
* This number gets really big for very high temperatures so it's somewhat meaningless, but our main goal is to ensure the code doesn't break.
|
||||
*/
|
||||
*/
|
||||
var/error_margin = first_mix.gas_pressure_minimum_transfer(second_mix) - initial_pressure
|
||||
|
||||
|
||||
first_mix.pump_gas_to(second_mix, (initial_pressure + additional_pressure))
|
||||
var/margin = abs(second_mix.return_pressure() - (initial_pressure+additional_pressure))
|
||||
|
||||
TEST_ASSERT(margin<=error_margin, "Failed to pump [nob_moles] moles of [nob_temp] K Nob to [trit_moles] moles of [trit_temp] K Trit, . Expected pressure = [initial_pressure+additional_pressure] +/- [error_margin]. Got [second_mix.return_pressure()].")
|
||||
TEST_ASSERT(margin <= error_margin, "Failed to pump [nob_moles] moles of [nob_temp] K Nob to [trit_moles] moles of [trit_temp] K Trit, . Expected pressure = [initial_pressure+additional_pressure] +/- [error_margin]. Got [second_mix.return_pressure()].")
|
||||
|
||||
Reference in New Issue
Block a user