@monica_b1998@programming.dev to Programming@programming.devEnglish • 1 year ago"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.memessage-square14fedilinkarrow-up143arrow-down10cross-posted to: programming@programming.devprogramming@programming.dev
arrow-up143arrow-down1external-link"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.me@monica_b1998@programming.dev to Programming@programming.devEnglish • 1 year agomessage-square14fedilinkcross-posted to: programming@programming.devprogramming@programming.dev
minus-square@agentsac@lemmy.worldlinkfedilink15•edit-21 year 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-square@monica_b1998@programming.devOPlinkfedilink8•1 year agothanks for letting me know! i’ll have to fix it when i get a chance.
minus-square@monica_b1998@programming.devOPlinkfedilink3•1 year 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…