I'm not an expert, and I may not write the cleanest code, but I've tried to create this Genshin Impact Wish Simulator. I believe it's the most realistic one for the web version. However, I still need your feedback to improve the wishing experience. If you enjoy this simulator, please consider giving a star to this repository.
For more preview, please visit the live version at https://wishsimulator.app
I don't know how HoyoVerse's algorithm is, so I tried to create mine as realistic as possible with the following points based on in-game wish details.
In order to get the same experience with the game when doing gacha, I tried to use the following formula for determining the gacha rates according to the current pity
baseRate + ((CurrentPity - HardPity) * additionalRate)
To get the number of
additionalRate
, I calculated100% - baseRate
and divide it by the difference betweenHardPity
toMaxPity
. Check here to see how I implemented it as code
Based on the formula above, it can be concluded that the probability table is as follows:
Probability for 4★ item on Character Event Wish
10
roll and promoted 4★ item guaranteed at 20
roll.5.1%
, guaranteed to get 4★ item at pity 10
Pity | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ≥10 |
---|---|---|---|---|---|---|---|---|---|---|
Rate | 5.1% | 5.1% | 5.1% | 5.1% | 5.1% | 5.1% | 5.1% | 5.1% | 52.55% | 100% |
Probability for 4★ item on Weapon Event Wish
10
roll and promoted 4★ item guaranteed at 20
roll.6.6%
, guaranteed to get 4★ item at pity 10
Pity | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ≥10 |
---|---|---|---|---|---|---|---|---|---|---|
Rate | 6.0% | 6.0% | 6.0% | 6.0% | 6.0% | 6.0% | 6.0% | 6.0% | 53.0% | 100% |
Weapon Wish Probability
80
roll and promoted 5★ item guaranteed at 160
roll.0.7%
, the rate starts to increase at pity 63 and then guaranteed at pity 80
.Pity | ≤62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | ≥80 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Rate | 0.7% | 6.21% | 11.77% | 17.25% | 22.76% | 28.28% | 33.80% | 39.31% | 44.83% | 50.35% | 55.86% | 61.38% | 66.9% | 72.41% | 77.93% | 83.45% | 88.96% | 94.48% | 100% |
Character Event and Standard Wish Probability
90
roll and promoted 5★ item guaranteed at 180
roll.0.6%
, the rate starts to increase at pity 74 and then guaranteed at pity 90
.Pity | ≤73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | ≥90 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Rate | 0.6% | 6.45% | 12.3% | 18.14% | 23.99% | 29.83% | 35.68% | 41.53% | 47.38% | 53.22% | 59.07% | 64.92% | 70.76% | 76.61% | 82.46% | 88.30% | 94.15% | 100% |
When you guaranteed for *5 and *4 item at the same time, your next pull priority is *5 item and *4 item will appear next at pity 11. For example: On Character Event Banner, you doesn't get *5 item until pity 89 and your *4 pity is 9, So your next pull will looks like screenshot below.
This app build with Svelte-Kit based on Javascript programming language.
Once you've cloned this project, install all dependencies with npm install
(or pnpm install
or yarn
). Once all dependencies already installed, then you can start a development server or build for production:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Before creating a production version of your app, install an adapter for your target environment, then run the command below. As default, this project use Vercel Adapter and can be deployed to Vercel.com
npm run build
Before Deploy to online server, please setup the environment variables by renaming file .env.example
to .env
and change the variables if needed.
** You can still deploy the app without even set the environment variables
I'm welcome to all contributors! Feel free to open new Issue if you find any problem or just want to give any suggestions.
Notes :
The data and assets used for this Project are taken from Hoyo Wiki, Genshin Fandom Wiki, Honey Impact and recorded from the game itself with several modification.
Important thing: This App is not affiliated with Hoyoverse, all assets used for this application belongs to Hoyoverse, so if you want to use assets from this repository, please credit them too.