Closed hguandl closed 1 year ago
I appreciate both @asd123cqp and your contribution! Thank you. Unfortunately, I am going to reject both PRs because I had plans to reorganize the code (as it was a real mess). I've just pushed a commit that rearranaged files, should be more understandable now.
Fix duplicated options in select
If the type of a weapon / bow / shield is changed in place, the modifier options are duplicated.
Add modifier value to max durability
Add a helper function
_getItemMaxDurability
. If the modifier of an item isDurability ↑/↑↑
, the modifier value is added.