From 8548612a80665d6ca9f80622d37bfc586727b378 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 12 Jun 2024 18:48:32 -0500 Subject: [PATCH] items auto ID --- src/engine/objects/ItemBase.java | 76 +------------------------------- src/engine/objects/MobLoot.java | 2 +- 2 files changed, 2 insertions(+), 76 deletions(-) diff --git a/src/engine/objects/ItemBase.java b/src/engine/objects/ItemBase.java index 17c5a00c..154146f2 100644 --- a/src/engine/objects/ItemBase.java +++ b/src/engine/objects/ItemBase.java @@ -75,7 +75,7 @@ public class ItemBase { private boolean isStrBased; private ArrayList animations = new ArrayList<>(); private ArrayList offHandAnimations = new ArrayList<>(); - private boolean autoID = false; + private boolean autoID = true; /** * ResultSet Constructor @@ -145,8 +145,6 @@ public class ItemBase { } - this.autoIDItemsCheck(); - try { DbManager.ItemBaseQueries.LOAD_ANIMATIONS(this); } catch (Exception e) { @@ -372,74 +370,10 @@ public class ItemBase { return modTable; } - public int getVendorType() { - return vendorType; - } - - public void setVendorType(int vendorType) { - this.vendorType = vendorType; - } - public int getHashID() { return hashID; } - public void setHashID(int hashID) { - this.hashID = hashID; - } - - private void autoIDItemsCheck() { - //AUto ID Vorg and Glass - switch (uuid) { - - case 27550: - case 27560: - case 27580: - case 27590: - case 188500: - case 188510: - case 188520: - case 188530: - case 188540: - case 188550: - case 189100: - case 189110: - case 189120: - case 189130: - case 189140: - case 189150: - case 189510: - case 27600: - case 181840: - case 188700: - case 188720: - case 189550: - case 189560: - case 7000100: - case 7000110: - case 7000120: - case 7000130: - case 7000140: - case 7000150: - case 7000160: - case 7000170: - case 7000180: - case 7000190: - case 7000200: - case 7000210: - case 7000220: - case 7000230: - case 7000240: - case 7000250: - case 7000270: - case 7000280: - this.autoID = true; - break; - default: - this.autoID = false; - } - } - public boolean validForSkills(ConcurrentHashMap skills) { CharacterSkill characterSkill; @@ -906,12 +840,4 @@ public class ItemBase { public void setOffHandAnimations(ArrayList offHandAnimations) { this.offHandAnimations = offHandAnimations; } - - public boolean isAutoID() { - return autoID; - } - - public void setAutoID(boolean autoID) { - this.autoID = autoID; - } } diff --git a/src/engine/objects/MobLoot.java b/src/engine/objects/MobLoot.java index 235eccd1..beaf92e0 100644 --- a/src/engine/objects/MobLoot.java +++ b/src/engine/objects/MobLoot.java @@ -77,7 +77,7 @@ public final class MobLoot extends Item { this.setNumOfItems(quantity); this.noSteal = noSteal; - this.setIsID(this.getItemBase().isAutoID()); + this.setIsID(true); // Class is 'final'; passing 'this' should be okay at the end of the constructor