Browse Source

AudiID junk removal

combat-2
MagicBot 8 months ago
parent
commit
76d723669a
  1. 64
      src/engine/objects/ItemBase.java
  2. 1
      src/engine/objects/MobLoot.java

64
src/engine/objects/ItemBase.java

@ -66,7 +66,6 @@ public class ItemBase {
private final boolean isStrBased; private final boolean isStrBased;
private ArrayList<Integer> animations = new ArrayList<>(); private ArrayList<Integer> animations = new ArrayList<>();
private ArrayList<Integer> offHandAnimations = new ArrayList<>(); private ArrayList<Integer> offHandAnimations = new ArrayList<>();
private boolean autoID = false;
/** /**
* ResultSet Constructor * ResultSet Constructor
@ -121,8 +120,6 @@ public class ItemBase {
break; break;
} }
this.autoIDItemsCheck();
try { try {
DbManager.ItemBaseQueries.LOAD_ANIMATIONS(this); DbManager.ItemBaseQueries.LOAD_ANIMATIONS(this);
} catch (Exception e) { } catch (Exception e) {
@ -320,59 +317,6 @@ public class ItemBase {
this.hashID = 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 canEquip(Enum.EquipSlotType slot, CharacterItemManager itemManager, AbstractCharacter abstractCharacter, Item item) { public boolean canEquip(Enum.EquipSlotType slot, CharacterItemManager itemManager, AbstractCharacter abstractCharacter, Item item) {
if (itemManager == null || abstractCharacter == null) if (itemManager == null || abstractCharacter == null)
@ -581,14 +525,6 @@ public class ItemBase {
this.offHandAnimations = offHandAnimations; this.offHandAnimations = offHandAnimations;
} }
public boolean isAutoID() {
return autoID;
}
public void setAutoID(boolean autoID) {
this.autoID = autoID;
}
public boolean isArmor() { public boolean isArmor() {
if (this.isHeavyArmor()) if (this.isHeavyArmor())

1
src/engine/objects/MobLoot.java

@ -76,7 +76,6 @@ public final class MobLoot extends Item {
this.setNumOfItems(quantity); this.setNumOfItems(quantity);
this.noSteal = noSteal; this.noSteal = noSteal;
this.setIsID(this.getItemBase().isAutoID());
// Class is 'final'; passing 'this' should be okay at the end of the constructor // Class is 'final'; passing 'this' should be okay at the end of the constructor

Loading…
Cancel
Save