mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-07 19:14:37 +01:00
Refactor flipForecastForecast (#437)
Algebraic reduction of Stock.flipForecastForecast() to make it more readable.
This commit is contained in:
@ -213,8 +213,7 @@ export class Stock {
|
||||
* RL stock market cycles and introduce volatility
|
||||
*/
|
||||
flipForecastForecast(): void {
|
||||
const diff = this.otlkMagForecast - 50;
|
||||
this.otlkMagForecast = 50 + -1 * diff;
|
||||
this.otlkMagForecast = 100 - this.otlkMagForecast;
|
||||
}
|
||||
|
||||
/** Returns the stock's absolute forecast, which is a number between 0-100 */
|
||||
|
Reference in New Issue
Block a user