Merge pull request #37416 from deathride58/fixesexponentialstockmarket

Fixes the stock market having random, spontaneous exponential value spikes.
This commit is contained in:
Jordan Brown
2018-04-25 14:44:08 -04:00
committed by CitadelStationBot
parent 3044f3ad3a
commit c340d2c9aa
+1 -1
View File
@@ -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