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

Commit

Permalink
Add support for stock market (#45)
Browse files Browse the repository at this point in the history
* Updated map to implement the stock market

* ui: Set all text areas to a fixed position

* Added linechart to the map

* feat: Added a time system

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

* Basic support for multi owners for a company

* fix: Fixed problems with receiving dividends and investing

* style: Restyled by whitespace (#46)

* Improved how salary and energy prepared for a job

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

* Restyled by whitespace (#52)

* Supported a player to own and create 1 company

* Supported functioning of dashboard, bug fixes and improvements

- 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

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
  • Loading branch information
Seniru and restyled-io[bot] committed Dec 20, 2019
1 parent 21431d7 commit 62be8ae
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 75 deletions.

0 comments on commit 62be8ae

Please sign in to comment.