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

Add support to a date system #47

Closed
2 tasks done
Seniru opened this issue Dec 19, 2019 · 1 comment · Fixed by #45
Closed
2 tasks done

Add support to a date system #47

Seniru opened this issue Dec 19, 2019 · 1 comment · Fixed by #45

Comments

@Seniru
Copy link
Owner

Seniru commented Dec 19, 2019

A date system would be very useful when including other features other features such as the stock market. Adding a date system would make the game a real world experience. We are planning to use my Timers library to implement this. Here are the things that should be changed under this issue

  • Supporting a date system (which probably change dates periodically)
  • Use the new date system to implement other features (including stock market and jackpot support)
@Seniru Seniru added this to the v1.0 milestone Dec 19, 2019
@Seniru Seniru added this to To Do in Project merchant via automation Dec 19, 2019
@Seniru Seniru moved this from To Do to In Progress in Project merchant Dec 19, 2019
Seniru added a commit that referenced this issue 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
@Seniru
Copy link
Owner Author

Seniru commented Dec 19, 2019

Here's how the new timer looks like in the map
image
Probably need some UI updates

Project merchant automation moved this from In Progress to Completed Dec 20, 2019
Seniru added a commit that referenced this issue Dec 20, 2019
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Project merchant
  
Completed
Development

Successfully merging a pull request may close this issue.

1 participant