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

Allow updateEffect spread to be customized or disabled for GenericCrafter #10422

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

overdramaticpanromantic
Copy link
Contributor

Adds an updateEffectSpread and updateEffectSpreadMag for customization of where the updateEffect appears on a GenericCrafter. Previously, you couldn't ensure it appears at a given location, as it would always be placed all around the sprite. By default, this does the spread and also has the same spread magnitude as before, so it's backwards-compatible.

I've read the guidelines, compiled and tested the game, and ensured that it works properly.

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

@overdramaticpanromantic
Copy link
Contributor Author

i forgot to sync the branch lmao

@@ -40,6 +40,8 @@ public class GenericCrafter extends Block{
public Effect craftEffect = Fx.none;
public Effect updateEffect = Fx.none;
public float updateEffectChance = 0.04f;
public boolean updateEffectSpread = true;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need to exist, one could make the updateEffectSpreadMag 0 instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, i didn't think of that

@Anuken Anuken merged commit 5140c37 into Anuken:master Feb 5, 2025
2 checks passed
@overdramaticpanromantic overdramaticpanromantic deleted the patch-1 branch February 6, 2025 15:57
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.

2 participants