[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:
SkyratBot
2023-01-22 07:16:43 +01:00
committed by GitHub
parent b2e7e489cb
commit c5ca08fd01
117 changed files with 192 additions and 192 deletions
+6 -6
View File
@@ -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()].")