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

Improve Npc by Talent ID lookup performance … #32

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Improve Npc by Talent ID lookup performance … #32

merged 1 commit into from
Jul 9, 2021

Conversation

kirides
Copy link
Contributor

@kirides kirides commented Jun 25, 2021

…by stopping after the first found NPC

fixes #31

As no LeGo code referenced both "loop" variables, i removed them and condensed the code even more.
Also i found the code would look cleaner if i kept atleast the list lookup in a different function.

@Lehona Lehona merged commit 9c81a9b into Lehona:dev Jul 9, 2021
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.

Improve Talents.Npc_FindByID to stop on first occurence of ID
2 participants