Currently, no store items are supported. There should be some way to start applying store items to the game, either adding things to a global modifier state or to a user's inventory.
I think to add modifiers we need to refactor/migrate the game state. We can write the game init to migrate the format.
The version field will make future migrations easier (the absence of it indicating the current version 0). Modifiers can be iterated to apply bonuses based on the logging. Expired modifiers can be pruned as part of that iteration step.
Currently, no store items are supported. There should be some way to start applying store items to the game, either adding things to a global modifier state or to a user's inventory.
I think to add modifiers we need to refactor/migrate the game state. We can write the game init to migrate the format.
I'm thinking of transforming the current state:
By moving it into a more specific users field and adding a modifier list:
The
version
field will make future migrations easier (the absence of it indicating the current version 0). Modifiers can be iterated to apply bonuses based on the logging. Expired modifiers can be pruned as part of that iteration step.