Skip to content

Commit c97927c

Browse files
committed
Explain cumulative rate
1 parent 3375cc4 commit c97927c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pages/tools/gachacalc.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,22 +263,23 @@ export default function GachaCalc({ location }: { location: string }) {
263263
<thead>
264264
<tr className="divide-x divide-gray-200 dark:divide-gray-500">
265265
<th>{banner.constName}</th>
266-
<th>Rate</th>
267-
<th>Cumulative rate</th>
266+
<th className="underline decoration-dotted" title={`Chance to get exactly a certain ${banner.constName.toLowerCase()} (and NOT higher) within ${pulls} pulls (sums up to to 100%)`}>Rate</th>
267+
<th className="underline decoration-dotted" title={`Chance to get at least ${banner.constName.toLowerCase()} (or higher) within ${pulls} pulls`}>Cumulative rate</th>
268268
</tr>
269269
</thead>
270270
<tbody className="divide-y divide-gray-200 dark:divide-gray-500">
271271
{calculated[calculated.length - 1].filter(x => x)
272272
.map((c, i, a) => <tr className={`pr-1 divide-x divide-gray-200 dark:divide-gray-500 ${c.rate < 0.0005 ? "opacity-60" : ""}`} key={c.const}>
273273
<td>{getName(c.const, banner)}</td>
274-
<td>{(c.rate * 100).toFixed(3)}%</td>
275-
<td>{(a.slice(i, a.length).reduce((p, c) => p + c.rate, 0) * 100).toFixed(2)}%</td>
274+
<td title={getName(c.const, banner) == "Not owned" ? `Chance to NOT get any of the wanted item within ${pulls} pulls` : `Chance to get exactly ${getName(c.const, banner)} (and NOT higher) within ${pulls} pulls`}>{(c.rate * 100).toFixed(3)}%</td>
275+
<td title={getName(c.const, banner) == "Not owned" ? "Chance to get nothing or higher, so basically always 100%" : `Chance to get ${getName(c.const, banner)} or higher within ${pulls} pulls`}>{(a.slice(i, a.length).reduce((p, c) => p + c.rate, 0) * 100).toFixed(2)}%</td>
276276
</tr>)}
277277
</tbody>
278278
</table>
279279
<h3 className="text-lg font-bold pt-1" id="disclaimer">Disclaimer</h3>
280280
<p>The calculator uses the statistical model for drop-rates of Cgg/<FormattedLink href="https://genshin-wishes.com/" target="_blank">genshin-wishes.com</FormattedLink>.
281281
For more information about drop rates, please refer to <FormattedLink href="https://www.hoyolab.com/article/497840" target="_blank"> their HoYoLAB post</FormattedLink>.</p>
282+
<p>Rates indicate the chance to get exactly Cx/Rx within Y pulls, cumulative rate chance to get Cx/Rx or higher within Y pulls. Big graph indicates cumulative rate at each pull.</p>
282283
<p><i><b>NOTE</b>: To reduce the amount of calculations, the 4-star character banner calculator will assume there are no 5-stars being dropped.
283284
These can prevent a 4 star from dropping, but they still increase the pity counter. It is possible (in-game) to not get a 4-star within 10 pity,
284285
but the next pull is guaranteed to be a 4-star if it&apos;s not a 5-star.</i></p>

0 commit comments

Comments
 (0)