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

refactor: rework quest enemy spawn #589

Merged

Conversation

pacampbell
Copy link
Collaborator

Allow world monsters to consume a group until the quest reaches a step which requires the group.

Checklist:

  • The project compiles
  • The PR targets develop branch

@pacampbell pacampbell force-pushed the quest_enemy_hp_fixes_2 branch 2 times, most recently from b19f6ff to e9b4b53 Compare October 4, 2024 01:05
var uid = ContextManager.CreateEnemyUID(enemy.Index, enemyGroup.StageId.ToStageLayoutId());
if (client.Party.Contexts.ContainsKey(uid))
{
client.Party.Contexts.Remove(uid);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dictionary.Remove is already safe if the dictionary doesn't contain the key; it won't throw an exception.

Removed check for removing items by key from a dictionary
@pacampbell pacampbell merged commit 9ab3cc5 into sebastian-heinz:develop Oct 5, 2024
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.

2 participants