Removed debug stuff for beta branch

This commit is contained in:
danielyxie 2019-06-04 21:31:45 -07:00
parent 63483837bc
commit 00f8c0a51f
2 changed files with 1 additions and 3 deletions

@ -31,7 +31,6 @@ export function influenceStockThroughServerHack(server: Server, moneyHacked: num
const percTotalMoneyHacked = moneyHacked / server.moneyMax; const percTotalMoneyHacked = moneyHacked / server.moneyMax;
if (Math.random() < percTotalMoneyHacked) { if (Math.random() < percTotalMoneyHacked) {
console.log(`Influencing stock ${stock.name}`);
stock.changeForecastForecast(stock.otlkMagForecast - forecastForecastChangeFromHack); stock.changeForecastForecast(stock.otlkMagForecast - forecastForecastChangeFromHack);
} }
} }
@ -53,7 +52,6 @@ export function influenceStockThroughServerGrow(server: Server, moneyGrown: numb
const percTotalMoneyGrown = moneyGrown / server.moneyMax; const percTotalMoneyGrown = moneyGrown / server.moneyMax;
if (Math.random() < percTotalMoneyGrown) { if (Math.random() < percTotalMoneyGrown) {
console.log(`Influencing stock ${stock.name}`);
stock.changeForecastForecast(stock.otlkMagForecast + forecastForecastChangeFromHack); stock.changeForecastForecast(stock.otlkMagForecast + forecastForecastChangeFromHack);
} }
} }

@ -27,7 +27,7 @@ export function StockTickerHeaderText(props: IProps): React.ReactElement {
let plusOrMinus = stock.b; // True for "+", false for "-" let plusOrMinus = stock.b; // True for "+", false for "-"
if (stock.otlkMag < 0) { plusOrMinus = !plusOrMinus } if (stock.otlkMag < 0) { plusOrMinus = !plusOrMinus }
hdrText += (plusOrMinus ? "+" : "-").repeat(Math.floor(Math.abs(stock.otlkMag) / 10) + 1); hdrText += (plusOrMinus ? "+" : "-").repeat(Math.floor(Math.abs(stock.otlkMag) / 10) + 1);
hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`; // hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
} }
let styleMarkup = { let styleMarkup = {