forked from MagicBane/Server
Enchantment Exploring
This commit is contained in:
@@ -155,7 +155,9 @@ public class ItemBase {
|
||||
}
|
||||
initBakedInStats();
|
||||
initializeHashes();
|
||||
|
||||
if (this.isVorg()) {
|
||||
removeBakedInStats();
|
||||
}
|
||||
}
|
||||
|
||||
public static void addToCache(ItemBase itemBase) {
|
||||
@@ -347,6 +349,10 @@ public class ItemBase {
|
||||
return this.bakedInStats;
|
||||
}
|
||||
|
||||
public void removeBakedInStats(){
|
||||
this.bakedInStats.clear();
|
||||
}
|
||||
|
||||
//returns power tokens granted when using item, such as scrolls and potions
|
||||
public HashMap<Integer, Integer> getUsedStats() {
|
||||
return this.usedStats;
|
||||
@@ -919,4 +925,101 @@ public class ItemBase {
|
||||
public boolean isVorg(){
|
||||
return LootManager.vorg_ha_uuids.contains(this.uuid) || LootManager.vorg_ma_uuids.contains(this.uuid) || LootManager.vorg_la_uuids.contains(this.uuid) || LootManager.vorg_cloth_uuids.contains(this.uuid);
|
||||
}
|
||||
public ArrayList<String> getCustomEnchants(){
|
||||
ArrayList<String> enchants = new ArrayList<>();
|
||||
switch(this.uuid){
|
||||
case 27550:// "Vorgrim Auxiliary's Bow"
|
||||
|
||||
break;
|
||||
case 27560:// "Vorgrim Auxiliary's Dagger"
|
||||
|
||||
break;
|
||||
case 27570: // "Bellugh Nuathal Hammer"
|
||||
|
||||
break;
|
||||
case 27580:// "Vorgrim Legionnaire's Axe"
|
||||
|
||||
break;
|
||||
case 27590:// "Vorgrim Legionnaire's Sword"
|
||||
|
||||
break;
|
||||
case 27600:// "Staff of the Crimson Circle"
|
||||
|
||||
break;
|
||||
case 188500:// "Vorgrim Legionnaire's Breastplate"
|
||||
|
||||
break;
|
||||
case 188510:// "Vorgrim Legionnaire's Armguards"
|
||||
|
||||
break;
|
||||
case 188520:// "Vorgrim Legionnaire's Legguards"
|
||||
|
||||
break;
|
||||
case 188530:// "Vorgrim Legionnaire's Gauntlets"
|
||||
|
||||
break;
|
||||
case 188540:// "Vorgrim Legionnaire's Boots"
|
||||
|
||||
break;
|
||||
case 188550:// "Vorgrim Legionnaire's Helm"
|
||||
|
||||
break;
|
||||
case 188700:// "Robe of the Crimson Circle"
|
||||
|
||||
break;
|
||||
case 188720:// "Hood of the Crimson Circle"
|
||||
|
||||
break;
|
||||
case 188900:// "Bellugh Nuathal Hauberk"
|
||||
|
||||
break;
|
||||
case 188910:// "Bellugh Nuathal Sleeves"
|
||||
|
||||
break;
|
||||
case 188920:// "Bellugh Nuathal Leggings"
|
||||
|
||||
break;
|
||||
case 188930:// "Bellugh Nuathal Gauntlets"
|
||||
|
||||
break;
|
||||
case 188940:// "Bellugh Nuathal Boots"
|
||||
|
||||
break;
|
||||
case 188950:// "Bellugh Nuathal Helmet"
|
||||
|
||||
break;
|
||||
case 189100:// "Vorgrim Auxiliary's Vest"
|
||||
|
||||
break;
|
||||
case 189110:// "Vorgrim Auxiliary's Sleeves"
|
||||
|
||||
break;
|
||||
case 189120:// "Vorgrim Auxiliary's Leggings"
|
||||
|
||||
break;
|
||||
case 189130:// "Vorgrim Auxiliary's Gloves"
|
||||
|
||||
break;
|
||||
case 189140:// "Vorgrim Auxiliary's Boots"
|
||||
|
||||
break;
|
||||
case 189150:// "Vorgrim Auxiliary's Hood"
|
||||
|
||||
break;
|
||||
case 189500:// "Bellugh Nuathal Shield"
|
||||
|
||||
break;
|
||||
case 189510:// "Vorgrim Legionnaire's Shield"
|
||||
|
||||
break;
|
||||
case 189550:// "Gloves of the Crimson Circle"
|
||||
|
||||
break;
|
||||
case 189560:// "Boots of the Crimson Circle"
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return enchants;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user