From 308db9983731c73ccf7c7805bbf9ac82d41012d6 Mon Sep 17 00:00:00 2001 From: James Denholm Date: Sun, 9 Oct 2016 01:43:02 +1100 Subject: [PATCH] Make compressor efficiency good, not bad Previously, compressor rpm decayed as such: max(0, rpm - [(rpm^2*efficiency)/COMPFRICTION]), where COMPFRICTION is very large. As such, an increase in efficiency increased the rate that compressor rpm decayed at, efficiency being between 1 and 4). This commit changes that equation to max(0, rpm - [(rpm^2)/(COMPFRICTION*efficiency)]), ergo, an increase in efficiency decreases the rate of rpm decay, making it up to four times slower instead of four times faster. --- code/modules/power/turbine.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm index b43b7b0f4ef..46e4999a710 100644 --- a/code/modules/power/turbine.dm +++ b/code/modules/power/turbine.dm @@ -155,7 +155,7 @@ // RPM function to include compression friction - be advised that too low/high of a compfriction value can make things screwy - rpm = max(0, rpm - (rpm*rpm)/(COMPFRICTION/efficiency)) + rpm = max(0, rpm - (rpm*rpm)/(COMPFRICTION*efficiency)) if(starter && !(stat & NOPOWER))