You will be making a change to a simplified version of our hatch screen.
In our game if you have 5 mystery egg fragments, you can trade them in for 1 mystery egg.
We want you to add a new button state for when the player has 5 of more mystery egg fragments that allows them to instantly hatch an egg by pressing the button (instead of the current flow which is first press fragments which gives you an egg then press the button to hatch an egg).
This is what it looks like when you have an egg.
Update the backend hatchEggMutation to allow players to hatch a mystery egg with 5 fragments (rather than doing 2 api calls).
ItemId.ts and schema.ts may be helpful for figuring out how to give yourself fragments/eggs for testing.
Also make the hatch 10 button yellow (you can use earth colors variable) if the player has greater than 100 of that egg.
Make a PR with both of these changes in it.
yarn install(this is yarn workspace)
yarn build
- Have PostgreSQL running locally
- Create database called
voidpet-lite - You’ll need a user with the username/password set to
postgres
- Create database called
- Have Redis running locally
- Create a
.envfile see.env.example(you can stick dummy values in) yarn dev
yarn start
Note: you will need to do an eas build.