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

Fix battle in front of glowy stag god #2188

Merged
merged 2 commits into from
Jun 3, 2023
Merged

Fix battle in front of glowy stag god #2188

merged 2 commits into from
Jun 3, 2023

Conversation

scooterboo
Copy link
Contributor

Description

When fighting in front of the glowy stag god, the battle used to end when you defeated even one enemy. It turns out that QUEST_CONTENT_LUA_NOTIFY needs to track occurrences until it reaches its count variable. It doesn't always trigger on the first notice. "count"s more than 1 are rare for QUEST_CONTENT_LUA_NOTIFY.

I've added QUEST_CONTENT_LUA_NOTIFY tracking to PlayerProgress's questProgressCountMap, which I converted from a Map<Integer, Integer> to a Map<String, Integer>.

I've added rollback functionality as well.

I've tested it by failing the quest (dying) this reset the count properly. Relogging also reset the count properly. relevant sections of Act1 and act 3 are unaffected.

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.

@KingRainbow44 KingRainbow44 merged commit e28575c into Grasscutters:development Jun 3, 2023
@scooterboo scooterboo deleted the patch-1 branch June 16, 2023 05:03
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