Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in game loan system #25

Open
yoel123 opened this issue Oct 2, 2020 · 2 comments
Open

in game loan system #25

yoel123 opened this issue Oct 2, 2020 · 2 comments
Assignees

Comments

@yoel123
Copy link
Owner

yoel123 commented Oct 2, 2020

sometimes to get up and running you need a loan. sometimes you run out of credits.

fairly easy to implement.

loan an amount lets say 5k or 10k
each 4 turns the player needs to pay 10% of the loan
the loan will also have an interest.
if you don't pay in time you will get fined, if you don't pay at all you assets (the station) will be sold to pay the loan.

so in programming terms its percent calculations (for the amount to pay and interest)
a counter for pay time and if the counter exceeds 4, fine the player and start seizure counter if seizure counter bigger then x turn sell the station lose the game (or sell stations upgrades ships etc as penalty depending on dept size).

@hoopinwhoopin
Copy link

Assign it to me in JAVA

@yoel123
Copy link
Owner Author

yoel123 commented Dec 3, 2020

ok, I will assign it to you via Github.

please check this wiki page on how to contribute:

https://github.com/yoel123/java-text-based-space-station-manger-sim/wiki/how-to-contribute-to-this-project-using-github

and the main wiki page for developers:

https://github.com/yoel123/java-text-based-space-station-manger-sim/wiki/start-here-(developers)

if you can put the loan option in the station management screen.
create a class to handle the logic and data for loans, make it serializable so I can save it on a dat file.
we will attach this class to the player object (like i did with station personal etc), i do this to separate the logic to different files instead of doing this in one place.
you will also have to create a long-term event for loans (also long-term events appear on station stats page which is nice, meaning you won't have to code that part ).

anyway if you have any problems, need help or don't know how to do this you can contact me via the contact form in the readme.

for now, i support and help contributors personally, something no other open source project i know of do (use it).

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

No branches or pull requests

2 participants