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

Separate onGainExperience logic into its own file #4505

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

MillhioreBT
Copy link
Contributor

Pull Request Prelude

  • I have followed [proper The Forgotten Server code styling][code].
  • I have read and understood the [contribution guidelines][cont] before making this PR.
  • I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.

Changes Proposed

These changes add a new eventcallback file for the default onGainExperience event, where the logic is worked on separately. Additionally, an event is added for the message, which is also separated and uses the positive infinite activation index to ensure that this event is activated at the end of all events. This guarantees that it is the last event and therefore any changes to the experience made in the previous events are taken into account.

Issues addressed: Nothing!

@MillhioreBT MillhioreBT added the priority: low Issues with this label won’t have the immediate focus label Jul 19, 2023
@MillhioreBT MillhioreBT merged commit f288cf3 into otland:master Jul 19, 2023
4 checks passed
@MillhioreBT MillhioreBT deleted the separate_ongainexp branch July 19, 2023 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Issues with this label won’t have the immediate focus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants