-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented rarity config #21
Conversation
Solves rosebudmods#17 In doing this, I also discovered bugs with the Slime coloring. Slimes seem to ignore rarity, but I don't believe it's a fault of the rarity code. They also sometimes change colour upon touching the ground for the first time after being spawned. I think there's something else happening that's overriding their colours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you so much!
((AllayVariantProvider) allay).setVariant(RainglowColour.get(colour)); | ||
cir.setReturnValue(new AllayEntityData(RainglowColour.get(colour))); | ||
((AllayVariantProvider) allay).setVariant(this.random.nextInt(100) >= Rainglow.CONFIG.getRarity() ? RainglowColour.BLUE : RainglowColour.get(colour)); | ||
cir.setReturnValue(new AllayEntityData(this.random.nextInt(100) >= Rainglow.CONFIG.getRarity() ? RainglowColour.BLUE : RainglowColour.get(colour))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you abstract this into a method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing! I'll get that done real fast!
No worries! If you want, I can also look into the slime colour issues and create a PR for that if I solve it! |
that would be fantastic! |
Solves #17
In doing this, I also discovered bugs with the Slime coloring. Slimes seem to ignore rarity, but I don't believe it's a fault of the rarity code. They also sometimes change colour upon touching the ground for the first time after being spawned. I think there's something else happening that's overriding their colours.