added compact enchant
This commit is contained in:
parent
6ad8a7a484
commit
42dc328562
|
@ -173,6 +173,51 @@ public class OverlayRenderer {
|
|||
EnchantLevel = "X";
|
||||
}
|
||||
}
|
||||
else if (extraAttributes.contains("compact_blocks")) {
|
||||
EnchantName = "Compact";
|
||||
ItemExp = extraAttributes.getDouble("compact_blocks");
|
||||
|
||||
if (ItemExp < 100) {
|
||||
ItemExpRequired = 100;
|
||||
EnchantLevel = "I";
|
||||
} else if (ItemExp < 500) {
|
||||
ItemExpRequired = 500;
|
||||
ItemExpPrevious = 100;
|
||||
EnchantLevel = "II";
|
||||
} else if (ItemExp < 1500) {
|
||||
ItemExpRequired = 1500;
|
||||
ItemExpPrevious = 500;
|
||||
EnchantLevel = "III";
|
||||
} else if (ItemExp < 5000) {
|
||||
ItemExpRequired = 5000;
|
||||
ItemExpPrevious = 1500;
|
||||
EnchantLevel = "IV";
|
||||
} else if (ItemExp < 15000) {
|
||||
ItemExpRequired = 15000;
|
||||
ItemExpPrevious = 5000;
|
||||
EnchantLevel = "V";
|
||||
} else if (ItemExp < 50000) {
|
||||
ItemExpRequired = 50000;
|
||||
ItemExpPrevious = 15000;
|
||||
EnchantLevel = "VI";
|
||||
} else if (ItemExp < 150000) {
|
||||
ItemExpRequired = 150000;
|
||||
ItemExpPrevious = 50000;
|
||||
EnchantLevel = "VII";
|
||||
} else if (ItemExp < 500000) {
|
||||
ItemExpRequired = 500000;
|
||||
ItemExpPrevious = 150000;
|
||||
EnchantLevel = "VIII";
|
||||
} else if (ItemExp < 1000000) {
|
||||
ItemExpRequired = 1000000;
|
||||
ItemExpPrevious = 500000;
|
||||
EnchantLevel = "IX";
|
||||
} else if (ItemExp > 1000000) {
|
||||
ItemExpRequired = -1;
|
||||
ItemExpPrevious = 15000;
|
||||
EnchantLevel = "X";
|
||||
}
|
||||
}
|
||||
/*else {
|
||||
System.out.println(extraAttributes);
|
||||
}*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user