From 1b8993a3dcc00d2d1453bbaa85135f7fc741536c Mon Sep 17 00:00:00 2001 From: MageKing17 Date: Thu, 18 Aug 2022 13:29:21 -0700 Subject: [PATCH] Replace "stock.short" with "stock.shortStock". This was preventing `disableLog("ALL")` from stopping these log messages, since that's not the function's name now. --- src/StockMarket/BuyingAndSelling.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StockMarket/BuyingAndSelling.tsx b/src/StockMarket/BuyingAndSelling.tsx index 4a5c053eb..6fc5c8daf 100644 --- a/src/StockMarket/BuyingAndSelling.tsx +++ b/src/StockMarket/BuyingAndSelling.tsx @@ -229,7 +229,7 @@ export function shortStock( } if (stock == null || isNaN(shares)) { if (workerScript) { - workerScript.log("stock.short", () => `Invalid arguments: stock='${stock}' shares='${shares}'`); + workerScript.log("stock.shortStock", () => `Invalid arguments: stock='${stock}' shares='${shares}'`); } else if (opts.suppressDialog !== true) { dialogBoxCreate( "Failed to initiate a short position in a stock. This is probably " + @@ -247,7 +247,7 @@ export function shortStock( if (Player.money < totalPrice) { if (workerScript) { workerScript.log( - "stock.short", + "stock.shortStock", () => "You do not have enough " + "money to purchase this short position. You need " + @@ -268,7 +268,7 @@ export function shortStock( if (shares + stock.playerShares + stock.playerShortShares > stock.maxShares) { if (workerScript) { workerScript.log( - "stock.short", + "stock.shortStock", () => `This '${shares + stock.playerShares + stock.playerShortShares}' short shares would exceed ${ stock.symbol @@ -301,7 +301,7 @@ export function shortStock( CONSTANTS.StockMarketCommission, )} ` + `in commission fees.`; - workerScript.log("stock.short", () => resultTxt); + workerScript.log("stock.shortStock", () => resultTxt); } else if (!opts.suppressDialog) { dialogBoxCreate( <>