hectorgimenez / d2go

Utilities related to Diablo 2 Resurrected, written in Go. Just for fun
MIT License
14 stars 14 forks source link

Return nip.Rule struct from Evaluate function in itemfilter #14

Closed 13413j1j13j5315n13 closed 6 months ago

13413j1j13j5315n13 commented 6 months ago

This pull request implements returning the Rule which matches against the item in itemfilter's Evaluate function.

This way the consumers of that function can check for the rule properties (e.g. maxquantity) and make further decisions based on that.