monica_b1998@programming.dev to Programming@programming.devEnglish · 4 months ago"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.meexternal-linkmessage-square14fedilinkarrow-up142arrow-down10cross-posted to: [email protected]
arrow-up142arrow-down1external-link"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.memonica_b1998@programming.dev to Programming@programming.devEnglish · 4 months agomessage-square14fedilinkcross-posted to: [email protected]
minus-squareagentsac@lemmy.worldlinkfedilinkarrow-up15·edit-24 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-up8·4 months agothanks for letting me know! i’ll have to fix it when i get a chance.
minus-squaremonica_b1998@programming.devOPlinkfedilinkarrow-up3·4 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…