mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 01:21:30 +00:00
Fix gacha rate for weapons
This commit is contained in:
parent
63c7f8d62d
commit
89bd8a10ef
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user