Skip to content
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

Merged
merged 2 commits into from
Oct 7, 2023
Merged

Implemented rarity config #21

merged 2 commits into from
Oct 7, 2023

Conversation

Dariensg
Copy link
Contributor

@Dariensg Dariensg commented Oct 7, 2023

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.

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.
Copy link
Collaborator

@ix0rai ix0rai left a 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)));
Copy link
Collaborator

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?

Copy link
Contributor Author

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!

@Dariensg
Copy link
Contributor Author

Dariensg commented Oct 7, 2023

No worries! If you want, I can also look into the slime colour issues and create a PR for that if I solve it!

@ix0rai
Copy link
Collaborator

ix0rai commented Oct 7, 2023

that would be fantastic!

@Dariensg Dariensg requested a review from ix0rai October 7, 2023 22:54
@ix0rai ix0rai merged commit d670dd4 into rosebudmods:master Oct 7, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants