Fix gacha rate for weapons

This commit is contained in:
Melledy 2022-05-02 02:01:24 -07:00
parent 63c7f8d62d
commit 89bd8a10ef

View File

@ -134,7 +134,7 @@ public class GachaManager {
if (banner.getRateUpItems1().length > 0) { if (banner.getRateUpItems1().length > 0) {
int eventChance = this.randomRange(1, 100); int eventChance = this.randomRange(1, 100);
if (eventChance >= banner.getEventChance() || gachaInfo.getFailedFeaturedItemPulls() >= 1) { if (eventChance <= banner.getEventChance() || gachaInfo.getFailedFeaturedItemPulls() >= 1) {
itemId = getRandom(banner.getRateUpItems1()); itemId = getRandom(banner.getRateUpItems1());
gachaInfo.setFailedFeaturedItemPulls(0); gachaInfo.setFailedFeaturedItemPulls(0);
} else { } else {