Merge pull request #6517 from Citadel-Station-13/upstream-merge-37416

[MIRROR] Fixes the stock market having random, spontaneous exponential value spikes.
This commit is contained in:
deathride58
2018-04-27 09:36:23 +00:00
committed by GitHub
+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