Don't reset 4* pity when get a 5* item

- fix #39
pull/1/head
Made Baruna 2021-04-19 01:13:32 +08:00
parent d14fe3f972
commit f91325c3a8
2 changed files with 3 additions and 3 deletions

View File

@ -449,7 +449,7 @@
combined[i].pity = legendary;
}
legendary = 0;
rare = 0;
// rare = 0;
} else if (rarity === 4) {
if (combined[i].pity === 0) {
combined[i].pity = rare;

View File

@ -204,7 +204,7 @@
if (legendary >= legendaryPity) {
openAddModal(Math.min(rare, legendaryPity));
legendary = 0;
rare = 0;
// rare = 0;
filler--;
} else if (legendary < 0) {
legendary = 89;
@ -245,7 +245,7 @@
total += 1;
legendary = 0;
rare = 0;
// rare = 0;
saveData();
}