monica_b1998@programming.dev to Programming@programming.devEnglish · 3 months ago"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.meexternal-linkmessage-square13fedilinkarrow-up11arrow-down10cross-posted to: programming@programming.dev
arrow-up11arrow-down1external-link"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.memonica_b1998@programming.dev to Programming@programming.devEnglish · 3 months agomessage-square13fedilinkcross-posted to: programming@programming.dev
minus-squareagentsac@lemmy.worldlinkfedilinkarrow-up0·edit-23 months agoThere’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.
minus-squaremonica_b1998@programming.devOPlinkfedilinkarrow-up0·3 months agothanks for letting me know! i’ll have to fix it when i get a chance.
minus-squaremonica_b1998@programming.devOPlinkfedilinkarrow-up0·3 months agoI 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…
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.
thanks for letting me know! i’ll have to fix it when i get a chance.
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…