Reworked supermatter gas output

basically it's less likely to cause forever runaway trit fires... but it can still get runaway, it's just more power-based than temperature-based
This commit is contained in:
Putnam3145
2021-09-09 13:51:22 -07:00
parent ead04910c2
commit cc2471cf7f
2 changed files with 19 additions and 9 deletions
+4
View File
@@ -222,6 +222,10 @@
/// k is the rate at which is approaches L, x_0 is the point where the function = 0
#define LOGISTIC_FUNCTION(L,k,x,x_0) (L/(1+(NUM_E**(-k*(x-x_0)))))
// )
/// A function that "linearly" approaches a maximum value of L
/// k is the rate at which it approaches L (), x_0 is the point where the function = 0
#define HYPERBOLIC_GROWTH(L,k,x,x_0) ((-(L * L) / ((k * x) + L - (k * x_0))) + L)
// )
/// Make sure something is a boolean TRUE/FALSE 1/0 value, since things like bitfield & bitflag doesn't always give 1s and 0s.
#define FORCE_BOOLEAN(x) ((x)? TRUE : FALSE)
// )