File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ ChartJS.register(
1919 Tooltip
2020)
2121
22- function pityRate ( baseRate : number , pityStart : number ) : ( pity : number ) => number {
23- return ( pity ) => pity < pityStart ? baseRate : baseRate + baseRate * 10 * ( pity - pityStart + 1 )
22+ function pityRate ( baseRate : number , pityStart : number , increaseRate ?: number ) : ( pity : number ) => number {
23+ return ( pity ) => pity < pityStart ? baseRate : baseRate + ( increaseRate ?? baseRate * 10 ) * ( pity - pityStart + 1 )
2424}
2525
2626const gachas : Record < string , Banner > = {
2727 char : {
28- bannerName : "5* Banner character [Genshin Impact/Honkai: Star Rail]" ,
28+ bannerName : "5* banner character [Genshin Impact/Honkai: Star Rail]" ,
2929 banner : 0.5 ,
3030 guaranteed : 1 ,
3131 minConst : - 1 ,
@@ -78,7 +78,7 @@ const gachas: Record<string, Banner> = {
7878 constFormat : "S" ,
7979 constName : "Superimposition" ,
8080 maxPity : 80 ,
81- rate : pityRate ( 0.8 , Math . ceil ( 44 / 0.7 ) )
81+ rate : pityRate ( 0.8 , 66 , 7.0 )
8282 } ,
8383 "HSR4*weapon" : {
8484 bannerName : "Specific 4* banner weapon [Honkai: Star Rail]" ,
You can’t perform that action at this time.
0 commit comments