monica_b1998 to ProgrammingEnglish · 5 months ago"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.meexternal-linkmessage-square14fedilinkarrow-up143arrow-down10cross-posted to: programming
arrow-up143arrow-down1external-link"Goldmine" - an idle game in 200 lines of pure JavaScriptslicker.memonica_b1998 to ProgrammingEnglish · 5 months agomessage-square14fedilinkcross-posted to: programming
minus-squareagentsac@lemmy.worldlinkfedilinkarrow-up15·edit-25 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_b1998OPlinkfedilinkarrow-up8·5 months agothanks for letting me know! i’ll have to fix it when i get a chance.
minus-squaremonica_b1998OPlinkfedilinkarrow-up3·5 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…