Refactors the PassTime widget.
It's now in JS for better readability and maintainability.
The most notable other change is that I rewrote the foraging section to remove a lot of code duplication (and fix a bug or two).
I put it in a new file to avoid making the script.js monolith even more monolithical. I made global.js, a companion file to global.twee in which code that is mainly used in global.twee can go.
Mechanically, the code's effects should be identical to those of the previous widget (save for the aforementioned bugs).
Refactors the PassTime widget. It's now in JS for better readability and maintainability. The most notable other change is that I rewrote the foraging section to remove a lot of code duplication (and fix a bug or two). I put it in a new file to avoid making the script.js monolith even more monolithical. I made global.js, a companion file to global.twee in which code that is mainly used in global.twee can go. Mechanically, the code's effects should be identical to those of the previous widget (save for the aforementioned bugs).