Today I’ve been working on allowing users to add the number of smelting, crafting, etc. stations they have in operation. That will affect the time required to make the materials in question.
I added a simple number and +/- buttons that would count up or down when clicked. But in order to do that, it screwed with how the needs and inventory lists are created. So I reworked it. Rather than just creating the items it needs, now it creates and hides every item upon load and only unhides the ones needed. Much easier said than done. And much easier done in jQuery than vanilla JS. But a challenge is a challenge, and I’m not using jQuery this time.
Much later I got everything working as it used to (but now with shiny +/- buttons!) and I found another bug. At least this was an old one, not one I created in this refactor process.
I found that if you have inventory for a material needed more than once, the inventory is counted twice. Tracking that one down was entertaining, and squashing it was downright fun.
This morning I was able to implement to coal slider, another rewarding accomplishment, especially because I got to work on my new flexbox skills.
Oh, and because I didn’t want to bother digging out my Photoshop disks, I installed Gimp to work on the background image. What a clunky, user-hostile thing to inflict on people. I’d almost call it overpriced. For similar reasons I downloaded OpenOffice with similar sentiments. Sigh.