Open allenjiang17 opened 2 months ago
@allenjiang17 I updated the ntask system in the game.jsx file. Basically, I have three functions that are bundled into a single javascript object called taskFunc
that controls the behavior in a more rigid way than setNtask
, one function checks if a task is valid (i.e., you have no tasks left for the day), another decrements ntask (default by 1, but can specify more).
I think we can use this system for other gamecontext objects that require more rigid behavior
I also tried to replace most instances of setNtask, but I may have missed some
Yi was working on this