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.
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:
CHSK
keyword. For example, to find level 2 lower resist wands, useWAND 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.