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

Skill charges support #33

Merged
merged 1 commit into from
Mar 18, 2020

Conversation

youbetterdont
Copy link

@youbetterdont youbetterdont commented Mar 1, 2020

Added support for filtering items based on skill charges. The new keyword is CHSK and is used much the same way as SK.

line for readme:

  • Added support for filtering on charged skills. Use the CHSK keyword. For example, to find level 2 lower resist wands, use WAND MAG CHSK91>1 as the filter criteria. The skill index is the same as that used for individual skill bonuses.

Edit 1:
Just thought of something. I didn’t check how the condition objects are freed. They are created with a naked new. I’ll try to remember to check this later, or just let me know if this is already handled somewhere else.

Edit 2:
I think there's a memory leak here. Doesn't seem like anything is deleting the created conditions or rules. I think we should change everything to use unique_ptr. Other option is to free stuff in UninitializeItemRules(), but it's not as clean. Considering I didn't add any new memory leak, maybe we leave this fix for another PR.

…word is CHSK and is used much the same way as SK.
@youbetterdont youbetterdont force-pushed the feature/skill-charges-support branch from 5bd2540 to e7b74f0 Compare March 1, 2020 22:18
@planqi planqi merged commit 8c76a28 into planqi:master Mar 18, 2020
@youbetterdont youbetterdont deleted the feature/skill-charges-support branch March 18, 2020 01:41
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