"Goldmine" - an idle game in 200 lines of pure JavaScript

monica_b1998@programming.dev to Programming@programming.dev – 43 points –
slicker.me
14

You are viewing a single comment

There's a weird bug where you can get four workers per shaft. The 'hire worker' button at the end of the shaft disappears after you hire your third worker, but if you click where the button was, you will get a fourth worker for free.

I found the problem - there should be no "=" in this part of line 222: shaft.workers.length <= shaft.max_workers

i'll update it on the website tomorrow. thanks for catching that! Somehow I hadn't tested clicking an invisible button...