Hacker News new | ask | show | jobs
by altvali 3897 days ago
Hi! I really like your game. However, selling apartments will remove too much playerDebt. If I buy the first apartment in Athens and I sell it one year later, I get from 38k to 47.2k after just one year! There's a similar bug with cancelling mortgage, I think you made a mistake in computing the constant 2.22 in your code.
1 comments

Thanks for the concern. The logic behind the scenes goes like this:

- You pay 20K for a house.

- You owe 80K + 80K * 2.5% * 40 years. That's your total debt.

- If you want to cancel the mortgage, you must pay 80K, and your net worth will go up because you do not have the 40 year mortgage anymore (even if you just paid 80K).

- If you buy and sell one year after, the same happens with mortgage towards your net worth. In terms of savings, during 1 year you will get approx 600 * 12 rent, -350 * 12 mortgage. That's 3K more. Then your remaining savings will go up 1% (as savings account return) which is around 200. Last, Since it's a boom in the economic cycle, while your debt will have diminished, the value of your house will have increased. So basically you sell the house for more, owe less and that is the result.

This situation is what makes the world go crazy over real estate, become overbought and then, BOOM. Economic crisis.