yoel123 / java-text-based-space-station-manger-sim

space station management/tycoon/trader game. made for fun and practice.
6 stars 8 forks source link

in game loan system #25

Open yoel123 opened 4 years ago

yoel123 commented 4 years ago

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 commented 3 years ago

Assign it to me in JAVA

yoel123 commented 3 years ago

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).