Skip to content

Instantly share code, notes, and snippets.

@brandonsturgeon
Last active June 18, 2019 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonsturgeon/9c1b05e53050ae2f461bd1f1e6f22ba3 to your computer and use it in GitHub Desktop.
Save brandonsturgeon/9c1b05e53050ae2f461bd1f1e6f22ba3 to your computer and use it in GitHub Desktop.

Dividends Mod

Distributes daily dividends based on shares owned for all companies

TL;DR

How to use this mod:

Special Notes

Note: There is currently no Localization support - only English is supported. Please let me know if you need Localization for your language.

Please note: This requires my Daily Stocks mod which makes the stock market function on a daily basis instead of a weekly basis, it also gives the companies more interesting stock histories with realistic looking graphs and reasonably-random stock movements.

Daily Stocks is only marked as required because the game's current stock history is always either flat, or negative. Never positive. This means if you use this mod without Daily Stocks You will never be paid. This requirement is temporary until the dev fleshes out a more complete stock system. Thank you for understanding! https://steamcommunity.com/sharedfiles/filedetails/?id=1772782834

More information

Dividends are calculated on a per-day basis based on the change (delta) of the company's stock price over the last two historical periods proportional to the amount of shares owned.

Put simply: When the company is doing well, you get paid

Every day, if the companies you're invested in make money over the last 24h, you get cold hard cash in your bank account in the morning. You'll see these transactions marked as Dividends From {company name}

I believe we've struck a decently balanced, relatively realistic balance with this mod. The payouts aren't very big until you own a lot of shares, at which point the payouts will be marginal (hah) compared to your daily income. But it's not nothing!

Please let me know if you notice any imbalance, I can adjust what % of the daily stock change affects your payout.

Thanks so much! Please feel free to ask questions or give feedback - it can't get better without you!

View and contribute to the code here: https://github.com/brandonsturgeon/dividends

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment