mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 08:25:21 +01:00
Fix gacha rate for weapons
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user