▲ 43 ▼ "Goldmine" - an idle game in 200 lines of pure JavaScript (slicker.me) submitted 2 years ago by monica_b1998@programming.dev to c/programming@programming.dev 14 comments fedilink hide all child comments
[–] agentsac@lemmy.world 15 points 2 years ago* (2 children) 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. permalink fedilink source hideshow 4 child comments replies: [–] monica_b1998@programming.dev [S] 8 points 2 years ago thanks for letting me know! i'll have to fix it when i get a chance. permalink fedilink source parent [–] monica_b1998@programming.dev [S] 3 points 2 years ago 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... permalink fedilink source parent
[–] monica_b1998@programming.dev [S] 8 points 2 years ago thanks for letting me know! i'll have to fix it when i get a chance. permalink fedilink source parent
[–] monica_b1998@programming.dev [S] 3 points 2 years ago 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... permalink fedilink source parent