mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
STOCKMARKET: Added slight randomization to when stock forecasts can flip (#911)
This commit is contained in:
parent
997ae8c176
commit
8b6caeb68b
@ -14,6 +14,7 @@ import { dialogBoxCreate } from "../ui/React/DialogBox";
|
||||
import { Reviver } from "../utils/JSONReviver";
|
||||
import { NetscriptContext } from "../Netscript/APIWrapper";
|
||||
import { helpers } from "../Netscript/NetscriptHelpers";
|
||||
import { getRandomInt } from "../utils/helpers/getRandomInt";
|
||||
|
||||
export let StockMarket: IStockMarket = {
|
||||
lastUpdate: 0,
|
||||
@ -167,7 +168,7 @@ export function initStockMarket(): void {
|
||||
|
||||
StockMarket.storedCycles = 0;
|
||||
StockMarket.lastUpdate = 0;
|
||||
StockMarket.ticksUntilCycle = StockMarketConstants.TicksPerCycle;
|
||||
StockMarket.ticksUntilCycle = getRandomInt(1, StockMarketConstants.TicksPerCycle);
|
||||
initSymbolToStockMap();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user