FloricSpacer / AbyssDiver

12 stars 12 forks source link

Forage refactor #116

Closed Annonymus-v02 closed 1 year ago

Annonymus-v02 commented 1 year ago

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).