diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-04-06 22:07:31 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-04-06 22:07:31 -0400 |
| commit | 22378ce01e058c09675e711e2b6c14d3f78dbda6 (patch) | |
| tree | 23279afdb394d715d54bd38a8f5801be71f08ffe /src/main/java/tlIItools/Affix.java | |
| parent | e6bed600cc6c17469da4b6fd93393b15ae9bf0f1 (diff) | |
Cleanup some warnings
Cleanup some warnings
Diffstat (limited to 'src/main/java/tlIItools/Affix.java')
| -rw-r--r-- | src/main/java/tlIItools/Affix.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/main/java/tlIItools/Affix.java b/src/main/java/tlIItools/Affix.java index f58fb7d7..94c985c6 100644 --- a/src/main/java/tlIItools/Affix.java +++ b/src/main/java/tlIItools/Affix.java @@ -81,6 +81,43 @@ public class Affix { */ public List<Effect> effects; + public boolean isInAffixGroup(Affix afx) { + if (effects == null) { + if (afx.effects != null) + return false; + } else if (!effects.equals(afx.effects)) + return false; + if (enchantSources == null) { + if (afx.enchantSources != null) + return false; + } else if (!enchantSources.equals(afx.enchantSources)) + return false; + if (equipTypes == null) { + if (afx.equipTypes != null) + return false; + } else if (!equipTypes.equals(afx.equipTypes)) + return false; + if (inNonEquip != afx.inNonEquip) + return false; + if (isEnchantment != afx.isEnchantment) + return false; + if (isPerson != afx.isPerson) + return false; + if (isSocketable != afx.isSocketable) + return false; + if (nonequipTypes == null) { + if (afx.nonequipTypes != null) + return false; + } else if (!nonequipTypes.equals(afx.nonequipTypes)) + return false; + if (socketableTypes == null) { + if (afx.socketableTypes != null) + return false; + } else if (!socketableTypes.equals(afx.socketableTypes)) + return false; + return true; + } + /* * Are invalid equip types being added? */ @@ -320,4 +357,6 @@ public class Affix { return afx; } + + } |
