allenjiang17 / theSearchForEden

1 stars 0 forks source link

Day System #2

Open allenjiang17 opened 2 months ago

allenjiang17 commented 2 months ago

Yi was working on this

cheny36 commented 1 month 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).

cheny36 commented 1 month ago

I think we can use this system for other gamecontext objects that require more rigid behavior

cheny36 commented 1 month ago

I also tried to replace most instances of setNtask, but I may have missed some