Add Gifts and fortune wheel feature - #3
Open
BXn4 wants to merge 8 commits into
Open
Conversation
Gifts not yet saved in the db
Not yet saved to the db
It was not set to 0, so its means the server will update the the new dish amount to the old one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gifts stored in JSON in the database.
For the fortune wheel spin reset, I added a new status, so when we send it to the client, the client will set the playedWheelOfFortune to false, which means, its not displaying the gold in the wheel, and the user can spin free.
https://github.com/GGR-Devs/Cafe-Main/commit/98a919b67a7374a705fd45696294d257a49664ad#diff-7615865a92464bd704bb3fa469c1530c9f7ed1456f40a1b82e1038482d44e5e7R46
We need to implement this in the server side too.
If the player is online, and the 24h past, send the response.
Else we dont need to send it, because the played_wheel in the db updates.