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

Energy: Fix Amber not Generating Particles #1061

Merged
2 commits merged into from
May 26, 2022
Merged

Energy: Fix Amber not Generating Particles #1061

2 commits merged into from
May 26, 2022

Conversation

GanyusLeftHorn
Copy link
Contributor

Description

This PR adds a simpler way to get the originally owning entity of an EntityClientGadget. The gadget itself now knows who the original owner was. This simplifies some code in EnergyManager, and simultaneously fixes the problem with Amber not generating particles (which was caused by one gadget in the chain already being destroyed and therefore no longer existing in the scene when the client invoked ABILITY_ACTION_GENERATE_ELEM_BALL).

It also does some refactoring of EnergyManager, since handleGenerateElemBall was getting pretty long.

Issues fixed by this PR

Type of changes

  • Bug fix
  • New feature
  • Enhancement
  • Documentation

Checklist:

  • My code follows the style guidelines of this project
  • My pull request is unique and no other pull requests have been opened for these changes
  • I have read the Contributing note and Code of conduct
  • I am responsible for any copyright issues with my code if it occurs in the future.

@ghost ghost merged commit cb2d6da into Grasscutters:development May 26, 2022
@GanyusLeftHorn GanyusLeftHorn deleted the energy_amber branch May 27, 2022 14:42
This pull request was closed.
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

1 participant