S-GrabhamMadden / Tendency

A WIP incremental game about the occult, made in javascript.
0 stars 0 forks source link

Mundane Refactoring #4

Open S-GrabhamMadden opened 2 years ago

S-GrabhamMadden commented 2 years ago

Currently adding new features in the mundane tab is time-consuming and open to error. Consider refactoring in some areas. For example, each accoutrement has its own buy function, unlocked and owned booleans, hidden or displayed HTML button, etc. Possible to share some of these aspects (universal buy accoutrement function with variables fed by button), and consider cleaner ways to keep track of the buttons (perhaps adding them to the page from the script and then removing them would be preferable to pre-existing hidden buttons, might be able to generalize function here as well? Worth looking into.)