Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Add support for stock market #45

Merged
merged 11 commits into from
Dec 20, 2019
Merged

Add support for stock market #45

merged 11 commits into from
Dec 20, 2019

Conversation

Seniru
Copy link
Owner

@Seniru Seniru commented Dec 18, 2019

This PR will add a new feature to the game - that is the stock market. With this feature, we are going to introduce support to buy shares or invest in other people's companies, receive dividends (not only for the owner but also the shareholders), and many things related with real business world. To implement these changes we identified the following as some goals to fulfill.

  • Allow a player to create more than one company (this'd be easy to implement)
  • Create the stock market dashboard to display trends in people's companies. We are going to use my LineGraph library
  • Adding support for data and time. This is to update trends in stock market in continuous time intervales. We are planning to use my timers library for better support
  • Creating methods to invest and receive dividens in other people's companies

This closes #50 and closes #47

@always-be-closing
Copy link

2b55e98 restyled — Restyling found differences Details

@Seniru Seniru changed the title Updated map to implement the stock market Add support for stock market Dec 18, 2019
@Seniru Seniru changed the title Add support for stock market 🚧 Add support for stock market Dec 18, 2019
@Seniru Seniru added affects: structure feature Map This issue is related to improvements or changes in the map labels Dec 18, 2019
@Seniru Seniru self-assigned this Dec 18, 2019
@Seniru Seniru added this to To Do in Project merchant via automation Dec 18, 2019
@Seniru
Copy link
Owner Author

Seniru commented Dec 18, 2019

At this point (with the stock market dashboard), the map looks like this

image
image

@Seniru Seniru moved this from To Do to In Progress in Project merchant Dec 19, 2019
@Seniru Seniru added this to the v1.0 milestone Dec 19, 2019
@Seniru Seniru removed this from In Progress in Project merchant Dec 19, 2019
With this feature,
 - a new day occur with every second, and months and years accordinly,
 - Added a clock in the map to display the time

closes #47
@always-be-closing
Copy link

3140b66 restyled — Restyling found differences Details

@always-be-closing
Copy link

eb1cbbc restyled — Restyling found differences Details

@always-be-closing
Copy link

ffd5709 restyled — Restyling found differences Details

restyled-io bot and others added 2 commits December 20, 2019 12:05
As some players can create high salary jobs with a low energy, it can
become unfair to other players. To overcome this we introduced a new way
to prepare the salary. Accordingly,
 - High salary increases the energy used, and vice-versa
 - Jobs with high level requirements can reduce the energy level used
 - Jobs with high educational level requirements can reduce the the
energy level used

This can also be considered as some additional solutions for issue #29
@always-be-closing
Copy link

27c8d35 restyled — Restyling found differences Details

restyled-io bot and others added 3 commits December 20, 2019 12:52
- Fixed error caused due to passing a nil value inside the timer
- Improved the Player:addOwnerCompanies method so that new companies are
added only if the company doesn't exist in player owned company list.
- Supported functioning of stock market dashboard. It updates every
month according to the game
- Minor improvements
@Seniru
Copy link
Owner Author

Seniru commented Dec 20, 2019

We are happy to announce that the dashboard is functioning now (after 9767ac9). Here are some screenshots

image
image

@Seniru Seniru removed the WIP label Dec 20, 2019
@Seniru Seniru changed the title 🚧 Add support for stock market Add support for stock market Dec 20, 2019
@Seniru Seniru merged commit 62be8ae into master Dec 20, 2019
@Seniru Seniru deleted the stock-market branch December 20, 2019 10:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects: structure Map This issue is related to improvements or changes in the map type: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a stock market system Add support to a date system
1 participant