From c340d2c9aa915083991ba26642b6c6daeb1b1a34 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 25 Apr 2018 14:44:08 -0400 Subject: [PATCH 1/2] Merge pull request #37416 from deathride58/fixesexponentialstockmarket Fixes the stock market having random, spontaneous exponential value spikes. --- code/modules/stock_market/stocks.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/stock_market/stocks.dm b/code/modules/stock_market/stocks.dm index 2b4a4c3d6f..563e76c0a9 100644 --- a/code/modules/stock_market/stocks.dm +++ b/code/modules/stock_market/stocks.dm @@ -143,7 +143,7 @@ var/piece_of_shit_fuck = current_value - 500 var/i_hate_this_code = (speculation / rand(25000, 50000) + performance / rand(100, 800)) * current_value if(i_hate_this_code < fucking_stock_spikes || i_hate_this_code > piece_of_shit_fuck) - current_value += i_hate_this_code + current_value = i_hate_this_code if (current_value < 5) current_value = 5